0 Replies Latest reply on Mar 13, 2011 5:20 AM by Odelya Holiday

    getting the task name from ProcessEventListener

    Odelya Holiday Novice



      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?