Package org.jbpm.graph.def

Examples of org.jbpm.graph.def.ActionHandler


    super.onTearDown();
  }

  public void testRetrievalFromSpringContext() throws Exception {
    Action action = processDefinition.getAction("myAction");
    ActionHandler delegate = (ActionHandler) action.getActionDelegation().getInstance();

    // create the context and pass it on to the action
    ProcessInstance instance = processDefinition.createProcessInstance();
    // we have to use transient variables or otherwise HB will get in the way
    instance.getContextInstance().setTransientVariable(DummyActionHandler.TEST_LABEL,
        applicationContext.getBean("jbpmAction"));
    Token token = instance.getRootToken();

    delegate.execute(new ExecutionContext(token));
  }
View Full Code Here


    log.debug("end testJbpmCloseSession");
  }

  public void testJbpmHandler() throws Exception {
    Action action = processDefinition.getAction("myAction");
    ActionHandler delegate = (ActionHandler) action.getActionDelegation().getInstance();

    // create the context and pass it on to the action
    ProcessInstance instance = processDefinition.createProcessInstance();
    // we have to use transient variables or otherwise HB will get in the way
    instance.getContextInstance().setTransientVariable(DummyActionHandler.TEST_LABEL,
        applicationContext.getBean("jbpmAction"));
    Token token = instance.getRootToken();

    delegate.execute(new ExecutionContext(token));
  }
View Full Code Here

  /**
   * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
   */
  public void execute(ExecutionContext executionContext) throws Exception {
    ActionHandler action = (ActionHandler) lookupBean(ActionHandler.class);

    if (logger.isDebugEnabled())
      logger.debug("using Spring-managed actionHandler=" + action);

    action.execute(executionContext);
  }
View Full Code Here

  /**
   * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
   */
  public void execute(ExecutionContext executionContext) throws Exception {
    ActionHandler action = (ActionHandler) lookupBean(ActionHandler.class);

    if (logger.isDebugEnabled())
      logger.debug("using Spring-managed actionHandler=" + action);

    action.execute(executionContext);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.graph.def.ActionHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.