Mapping local variables to instance variable in Camunda

2.1k views Asked by At

I have a local variable being set by my application in camunda.

I would like to map this to an instance variable "foo: after the task is complete, however I get an error when setting the value of an outputParameter "bar" to be ${foo}, the data types for both are string.

I cannot seem to find anything in the docs specifically stating ways to map localvariables to instance variables without writing custom java classes and using them as execution listeners(we are not trying to code any custom java within the camunda instance itself due to product requirements passed down from above), am I missing something or is this not existing functionality?

1

There are 1 answers

0
mjalil On BEST ANSWER

You should set the local variable in the context of the execution of the task in order to be mapped to process variables. So instead of calling REST method Update/Delete Local Task Variables you should call Update/Delete Local Execution Variables