decisionhandler.java

来自「一个java工作流引擎」· Java 代码 · 共 21 行

JAVA
21
字号
package org.jbpm.delegation;

/**
 * decides between multiple alternative paths of execution.
 * A decision must at least have 2 leaving transitions.
 * Note that another mechanism to choose between multiple paths of execution is
 * by specifying multiple transitions leaving a {@link org.jbpm.model.definition.State}.
 * In that case, the client must specify the transitionName in 
 * {@link  org.jbpm.ExecutionService#endOfState(String,Long,Map,String)}.
 */
public interface DecisionHandler {

  /**
   * decides which of the {@link org.jbpm.model.definition.Transition}'s, leaving the 
   * {@link org.jbpm.model.definition.Decision}-node, has to be taken. 
   * @param executionContext provides access to the process context in which this decision is executed.
   * @return the name of the choosen {@link org.jbpm.model.definition.Transition}.
   */
  String decide( ExecutionContext executionContext );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?