Latest release of Guflow will now let you easily implement support for manual approvals using serverless lambda functions. Here is a very simple example showing "WaitForAnySignal" API:
Other APIs that you can use for waiting for signals are: WaitForAllSignals and WaitForSignal. These APIs will help you to move your workers from activities to serverless lambda functions.
You can call these APIs anywhere in workflow branch e.g. in the following example "ApproveExpense" is a child workflow:
As explained here not only can you customise the signal handling, but you can also use signals for different purposes.
Other interesting examples of manual approvals using lambda functions can be found here
No comments:
Post a Comment