cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke call activities one after another

raja_activiti
Champ in-the-making
Champ in-the-making
Hi,
In my bpmn there are couple of call activity tasks, I want execute one after another. After completion of first call activity , the second one is not starting automatically.
And I have created end listener to the first call activity to start next one explicitly, the listener not get invoked.

Can any please help me on this.

My objective is to invoke the series of call activities one after another.

Thanks in advance.

Regards,
Raja.
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Raja,

Could you create jUnit test for it please?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin

raja_activiti
Champ in-the-making
Champ in-the-making
Hi Martin,

Thanks for your response.

I have generated test case to my scenario, but I could not solved my problem.

Let me explain my scenario.

I have a main workflow A, and I have another workflow B. I have used  B as call activity in A.

I have started work flow A, it triggers workflow B(Call Activity). But I have the process instance id of the workflow A.

My problem is how to get the workflow instance id of the B.

Can you please tell me the how to solve this.

Thanks&Regards,
Raja.


    

martin_grofcik
Confirmed Champ
Confirmed Champ

    ProcessInstance subProcessInstanceB = runtimeService.createProcessInstanceQuery().superProcessInstanceId(processInstanceA.getId()).singleResult();

Regards
Martin

raja_activiti
Champ in-the-making
Champ in-the-making
Thanks for your kind help and support.