Hi All
What I want to achieve is to somehow store “static” key value pairs in tasks. I then want to be able to get those values from within the Javacode (preferably using the processInstanceId). The goal is to be able to easily change some values in Camunda Modeler which influences for example in which page the task is displayed without having to hardcode Task X goes into page1, Task Y into page2, etc.
I thought I could maybe do this using the camunda:inputOutput
> camunda:inputParameter
. But as those are inside bpmn:extensionElements
. And as far as I understand, I would have to get the bytes of the XML from the ACT_GE_BYTEARRAY
table, parse the XML and get the values. I don’t want to do something like that.
I found in the Rest API the following: GET /execution/{id}/localVariables
I think I would need something like that but without Rest.
TL;DR: Is it possible to set (in the Modeler) “constants” or lets say task attributes and read them from either the RuntimeService or from the Database?