[jboss-user] [jBPM Users] - Action for reading the task variables and the task instance
aroeder
do-not-reply at jboss.com
Fri Aug 28 04:04:49 EDT 2009
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?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252206#4252206
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252206
More information about the jboss-user
mailing list