New version 0.13.0!



Start A Parallel Method On A Running Workflow

A running workflow instance can have multiple methods running in parallel. When it's the case, those executions share the internal properties of this workflow instance.

This can be used to trigger new actions or to access or update the workflow properties.

Due to some Java syntax constraints, if the return type of the method used is void, we need to use dispatchVoid function instead of dispatch.

Another way to target some running workflows is to used the getWorkflowByTag function that take a workflow interface and a tag as parameter. For example:

In the example above, the "HelloWorldWorkflow::method" will run on all workflows having the provided tag.

When targeting workflows by tag, it's not possible to retrieve or to do deferred.await(), as the deferred can target multiple instances.

Send A Signal