AnsweredAssumed Answered

Complete task with variables

Question asked by magnus.nils.hellstrom@gmail.com on Feb 16, 2017
Latest reply on Feb 21, 2017 by magnus.nils.hellstrom@gmail.com

Hi, 

 

I'am using the Rest API in the Community edition and would like to achieve the following:

 

Complete a task and pass along variables which should be stored in local scope (task scope).

 

I use the runtime/tasks/{taskId}

 

with action=complete.

 

The doc says that a variable passed with the request is stored in global scope unless it exists a local variable which in that case is overriden. So, I first create a local variable on the task with same name and then pass along a variable with that name with the complete request.

 

Anyhow, the variable in the complete request is stored in global scope for some reason.

 

Have I misunderstood the API? How can I add local variables when completing a task?

Outcomes