cancel
Showing results for 
Search instead for 
Did you mean: 

Multi task with signal

marcantoine
Champ in-the-making
Champ in-the-making
Hi,

I currently test to do some work to test capabilities of Activiti.
My current problem is to design a workflow based on multiple service task who will wait a signal to ending the task.

It work fine using a single task, using a call with the execution of an action [http://www.activiti.org/userguide/index.html#N142E7]
But is it possible to refers to a specific task during this execution ?
Something like:
<javascript>PUT runtime/executions/{executionId}</javascript>
with the body message:
<javascript>
{
  "action":"signal",
  "task": "servicetask1"
}
</javascript>

If it isn't possible to do that, the best way is to define a signalName which can be filtered on each caller of the signal() method ?
Do you have to requirements to define signal names ? Is it okay to use a named based on the id of the current task (like serviceTask1) ?

Regards,
3 REPLIES 3

marcantoine
Champ in-the-making
Champ in-the-making
I tried to used the URI:
<javascript>
/activiti-rest/service/process-instance/44/event/servicetask1
</javascript>

But I use AbstractBpmnActivityBehavior class and the signal method was not called with that.
Is it normal ?

marcantoine
Champ in-the-making
Champ in-the-making
I think I have found the full process with the call of <javascript>/runtime/executions/{executionId}</javascript> where the executionId is an unique ID per task.

Is it correct ?

jbarrez
Star Contributor
Star Contributor
Yes - you need to know which executions are currently waiting there and signal them to continue the process.