Adding a variable while sending a signal to a ReceiveTask !
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2011 05:57 AM
Hi,
Is it possible to add a new variable to the execution while sending a signal to a ReceiveTask ? and how ?
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2011 07:29 AM
My question was a stupid one :
runtimeService.setVariable(execution.getId(), "result", "OK");
BR,
Meditel
runtimeService.setVariable(execution.getId(), "result", "OK");
BR,
Meditel
