Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retract a tuple inserted via flogo ruleaction? #44

Open
jpark800 opened this issue Apr 13, 2019 · 2 comments
Open

How to retract a tuple inserted via flogo ruleaction? #44

jpark800 opened this issue Apr 13, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jpark800
Copy link
Contributor

Does flogo ruleaction support retracting a tuple after a rtc completion?

For example, when running the app built from examples/flogo/simple, if the same tuples are injected via two identical curl requests(i.e. invoke 'curl localhost:7777/test/n1?name=Bob' twice), it returns with the message

"Tuple with key [n1:name:Bob] already asserted"

Retracting a tuple is supported via api. Is there way to achieve it in functions.go or flogo action's json configuration?

@balamg
Copy link
Collaborator

balamg commented Apr 13, 2019

You can convert this to an enhancement if you want to do it via HTTP. The workaround is to assert another event and write a rule to retract it.

@jpark800 jpark800 added the enhancement New feature or request label Apr 16, 2019
@jpark800
Copy link
Contributor Author

Turned the issue to an enhancement. In addition to an ability to inject tuples, Flogo ruleaction should add an ability to retract a tuple.

@jpark800 jpark800 self-assigned this Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants