wso2 - wso2bps 3.6.0 async tasks -


i need create parallel running service tasks in process.

try create simplest flow async property usage:

enter image description here

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?

  1. to activate async parallel execution in example above - need set async on call service , not on sub process

  2. as use async have configure process engine async

    otherwise 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.xml

    just 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 async on end events of subprocess...

after changes, process question works great in multithread mode.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -