AnsweredAssumed Answered

Pass process variables at Activiti call

Question asked by wuboy_2000 on Jun 5, 2013
Latest reply on Jun 17, 2013 by wuboy_2000
Hi.

I am new to Activiti Forum.

I want to programmatically called another process from the current process. I define a ServiceTask class that implements ActivityBehavior interface. It will create an CallActivityBehavior  object and pass process variables to the sub process and vice versa.
Code is as follows:

   public void execute(ActivityExecution execution) throws Exception {            
      CallActivityBehavior cab = new CallActivityBehavior("otherProcess");
      
      MessageImplicitDataInputAssociation midia = new MessageImplicitDataInputAssociation("k1",  "uk1");
      cab.addDataInputAssociation(midia);
      
      MessageImplicitDataOutputAssociation midoa = new MessageImplicitDataOutputAssociation("k2", "uk2");
      cab.addDataOutputAssociation(midoa);
      
      cab.execute(execution);
                   cab.completed(execution);
   }

Now, I can't get subprocess variable from parent process.


Any help !!!

Thanks in advance !




Thanks,

Outcomes