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... context.leaveNode();
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.
@Name("MyActionhandler) public class MyACtionHandler{ @In(required=true,value="taskInstance") 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
-lp