[jboss-user] [jBPM] - getting the task name from ProcessEventListener
Odelya Holiday
do-not-reply at jboss.com
Sun Mar 13 05:20:19 EDT 2011
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"getting the task name from ProcessEventListener"
To view the discussion, visit: http://community.jboss.org/message/592901#592901
--------------------------------------------------------------
Hi!
I am trying to retrieve the human task TaskName property from ProcessEventListener afterNodeTriggered method
public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {
Node node = event.getNodeInstance().getNode();
if (node instanceof HumanTaskNode) {
HumanTaskNode htNode = (HumanTaskNode)node;
String taskName = (String) htNode.getWork().getParameter("TaskName");
}
}
However the taskName returns with the EL expression. For instance: Waiting for #{user.Name}.
The variable user is defined as the process variable.
If I try a similar code in myHumanTaskHanlder (custom one):
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
String taskName = (String) workItem.getParameter("TaskName");
}
The taskName returns witout the EL experssion. For insance: Waiting for Rick.
How can I retrieve the taskname property of human task with parsed EL expression?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592901#592901]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110313/212bcba5/attachment.html
More information about the jboss-user
mailing list