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>
executionCtx.getContextInstance().getVariable("title");
TaskInstance taskInstance = executionCtx.getTaskInstance();
I found a solution for my problem. Here it comes:
<event type="task-end"> <action class="de.firstdata.jbpm.action.LogTimesAction"></action> </event>
taskInstance.getVariable("title");