I have a simple work flow I want to implement:
Rest API receives an acces request and launches an approval workflow.
First step is gather the list of approvers for the request
Second step is wait for approvals from the approvers (assuming manual here)
When an approval is received determine whether the minimum set of approvals has been received and shift to approved (normal state), do something when the request is approved and shift workflow to end state.
When a dental is received, do something and then shift to the end state.
My question is the part about how to handle receiving approvals. (Assume I am using a Rest API to expose the approval submission).
How does one inject this approval into the sleeping workflow and trigger some sort of evaluation on the current state for further automatic processing?