Package org.jbpm.graph.node

Examples of org.jbpm.graph.node.DecisionHandler.decide()


   */
  public String decide(ExecutionContext executionContext) throws Exception {
    DecisionHandler handler = (DecisionHandler) lookupBean(DecisionHandler.class);
    if (logger.isDebugEnabled())
      logger.debug("using Spring-managed decisionHandler=" + handler);
    return handler.decide(executionContext);
  }

  /**
   * @see org.jbpm.taskmgmt.def.TaskControllerHandler#getTaskFormParameters(org.jbpm.taskmgmt.exe.TaskInstance)
   */
 
View Full Code Here


   */
  public String decide(ExecutionContext executionContext) throws Exception {
    DecisionHandler handler = (DecisionHandler) lookupBean(DecisionHandler.class);
    if (logger.isDebugEnabled())
      logger.debug("using Spring-managed decisionHandler=" + handler);
    return handler.decide(executionContext);
  }

  /**
   * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
   */
 
View Full Code Here

      String transitionName = null;
      try {
        Delegation decisionDelegation = getDecision().getDecisionDelegation();
        if (decisionDelegation != null) {
          DecisionHandler decisionHandler = (DecisionHandler) decisionDelegation.instantiate();
          transitionName = decisionHandler.decide(new JpdlExecutionContext());
        } else if (getDecision().getDecisionExpression() != null) {
          String decisionExpression = getDecision().getDecisionExpression();
          Object result = JbpmExpressionEvaluator.evaluate(
          decisionExpression, new JpdlExecutionContext());
          if (result == null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.