wso2 - wso2bps 3.6.0 async tasks -
i need create parallel running service tasks in process.
try create simplest flow async property usage:
with loop cardinality = 5 (for example)
i found in activiti.xml configuration it's required add property:
<property name="asyncexecutoractivate" value="true" /> but flow still runs in 1 thread.
what i'm missing?
how activate async correctly?
to activate async parallel execution in example above - need set async on
call service, not onsub processas use
asynchave configure process engine asyncotherwise meet king of exception:
org.activiti.engine.activitioptimisticlockingexception: variableinstanceentity[id=15317, name=nrofactiveinstances, type=integer, longvalue=1, textvalue=1] updated transaction concurrently
the parameters of activiti engine on wso2bps stored here:
conf/activiti.xmljust add following properties bean id="processengineconfiguration"
<bean id="processengineconfiguration" class="org.activiti.engine.impl.cfg.standaloneprocessengineconfiguration"> ... <property name="asyncexecutoractivate" value="true" /> <property name="asyncexecutorenabled" value="true" /> ... </bean>warn: don't know if it's feature or bug. subprocess catch correctly thread endings if set
asynconend eventsof subprocess...
after changes, process question works great in multithread mode.

Comments
Post a Comment