I want to execute a decision tree that is like the following:
Trigger based on kafka events (destructive high winds reported by user)
Check nearby sensors and see if it is likely true.
a) If the sensors indicate that it is likely true then call an endpoint
b) if the sensors indicate that it is not likely true send an email to that user and ask one question with three answers (x,y,z). The user would click on the answer and then distinct branches of the workflow would be executed for each option.
I realize that you can trigger a work flow from kafka as well as wait for a webhook url to be called (say from an email) but I want to know if you can offer choices which can then be set into the state and then perform if/switch type decisions in the workflow based on responses.
So basically the question comes down to can resumeWebhookUrl carry state back to the app based on the choice of a user.