AnsweredAssumed Answered

Adding a variable while sending a signal to a ReceiveTask !

Question asked by meditel on Oct 14, 2011
Latest reply on Oct 14, 2011 by meditel
Hi,

Is it possible to add a new variable to the execution while sending a signal to a ReceiveTask ? and how ?


ProcessInstanceQuery piq = runtimeService.createProcessInstanceQuery().processInstanceBusinessKey("bkey2");
ProcessInstance pi = piq.singleResult();
        Execution execution = runtimeService.createExecutionQuery().processInstanceId(pi.getId())
              .activityId("myReceiveTask")
              .singleResult();
       
        runtimeService.signal(execution.getId());

Till here the signal is working well, but we need to add a variable 'result' to the execution ! and can't find how to do it !

Any hints are welcome !

BR,
Meditel

Outcomes