cancel
Showing results for 
Search instead for 
Did you mean: 

Async CallActiviti not working after version 5.11

lars1
Champ in-the-making
Champ in-the-making
I have a flow that calls another activiti flow (callActiviti), using async=true.
In version 5.11 this works as expected (and as documented)
After upgrading to version 5.14 (also in 5.12, 5.13), the async property is ignored (?) and the subprocess is called, no job is created.

In attachment a simple flow & unit test demonstrating this behaviour.
If you run the test in 5.11, the test will pass
in 5.14 it will fail
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
I checked it in the another jUnit test.
org.activiti.engine.test.bpmn.async.AsyncTaskTest#testAsycCallActivity


  protected void executeParse(BpmnParse bpmnParse, CallActivity callActivity) {
   
    ActivityImpl activity = createActivityOnCurrentScope(bpmnParse, callActivity, BpmnXMLConstants.ELEMENT_CALL_ACTIVITY);
    activity.setScope(true);
    activity.setActivityBehavior(bpmnParse.getActivityBehaviorFactory().createCallActivityBehavior(callActivity));
  }

does not set async behavior.
    activity.setAsync(callActivity.isAsynchronous());

I will try to test it with your test.

Regards
Martin

martin_grofcik
Confirmed Champ
Confirmed Champ
I create pull request for it.