How to execute to next step, and how to query the workflow statues
if a workflow has many step. when start the workflow ,then ofter some time. i want to let it go to next step. for example, a task workflow have open, doing, review ,done steps. when opened as start workflow. then how to execute the next step.
https://workflow-core.readthedocs.io/en/latest/external-events/
@danielgerlag Thanks for your reply, but i still have a question. I did use the Events, but how did the process know worked on which instance. I mean when start the workflow and created many instances, i think should use the instance ID to trigger the waiting event, is it right?
When you publish an event with a particular key, it will trigger any workflows that are waiting for that key... so if you use the workflow instance ID as the key, it will be unique to that workflow.
Oooh,Clean. that it means ,I need to store the instance id to my data. then i use the key to trigger the event. can event to do some business logic, just have a cancel condition?
I think the biggest mistake in the design of this workflow is not taking into account that there are multiple instances of the workflow initiated by the host. Unable to locate workflow instances is the biggest drawback of the system.
@shao200 I'm not sure which library you are using, but workflow core returns a GUID when you start a workflow that you can use to track it... you can also specify your own reference string.
Is there a good solution? I also need to solve this problem