I need to create parallel running service tasks in my process.
Try to create the simplest flow with async property usage:
With loop cardinality = 5 (for example)
I found that in activiti.xml
configuration it's required to add this property:
<property name="asyncExecutorActivate" value="true" />
But flow still runs in one thread.
What i'm missing?
How to activate async correctly?
to activate async parallel execution in the example above - need to set async on
Call Service
and not onSub Process
as soon as we use
async
we have to configure process engine to be asyncotherwise you will meet this king of exception:
the parameters of activiti engine on wso2bps stored here:
conf/activiti.xml
just add the following properties to bean id="processEngineConfiguration"
after those changes, the process from question works great in multithread mode.