0 Replies Latest reply on Aug 13, 2009 2:06 PM by lucio piccoli

    JBPM ActionHandler replacement in SEAM

    lucio piccoli Newbie

      hi all,

      i want to replace my existing JBPM ActionHandler with a Seam compoment. However it is not clear how to get access to the ExecutionContext from the Seam component.

      I require the ExecutionContext to access the variables and to be able to leave the node.

      public void execute(ExecutionContext context) throws Exception {
           String templateName = (String) context.getContextInstance().getVariable(TEMPLATE_NAME);
      do stuff...

      So far my Seam component code is not retrieving the variable that has been set (i checked the tables and it is persisted correctly ) and i am unable to leave the node.

      public class MyACtionHandler{
       TaskInstance taskInstance;
      public void execute() throws Exception {
      String templateName = (String) taskInstance.getContextInstance().getVariable(TEMPLATE_NAME); <-- returns null
      //how to leave node ???

      any help is appreciated