I try to write a custom action class to read the variables of a task and also the task instance id. So basicly I did that:
<task-node name="INDEX_DATA">
<task name="enterIndexData">
<controller>
<variable access="read,write,required" name="title"></variable>
<variable access="read,write" name="agentNumber"></variable>
<variable access="read,write,required" name="type"></variable>
<variable access="read,write,required"
</controller>
</task>
<transition to="process_end" name="next">
<action class="de.firstdata.jbpm.action.LogTimesAction">/action>
</transition>
</task-node>
In my action class I can read the variables with:
executionCtx.getContextInstance().getVariable("title");
But I also need the task instance id, but when I call:
TaskInstance taskInstance = executionCtx.getTaskInstance();
the TaskInstance is already null.
Is there a way to find out the task instance id?