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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to