⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expressiondecisionhandler.java

📁 一个java工作流引擎
💻 JAVA
字号:
package org.jbpm.delegation.decision;

import org.jbpm.delegation.*;

/**
 * TODO : create an expression decision handler with ANTLR (http://www.antlr.org) or 
 * apache BSF (http://jakarta.apache.org/bsf/) that interprets expressions like e.g.
 *   <decision name="only decision" >
 *     <delegation class="">
 *       <configuration>
 *         <![CDATA[
 *           if ( ${route description} == "take a left" ) {
 *             takeTransition( "left" );
 *           } else if ( ${route description} == "straight ahead" ) {
 *             takeTransition( "middle" );
 *           } else if ( ${route description} == "take a right" ) {
 *             takeTransition( "right" );
 *           } else {
 *             takeTransition( "ask someone else" );
 *           }
 *         ]]>
 *       </configuration>
 *     </delegation>
 *     <transition name="left"   to="inside the left street" />
 *     <transition name="middle" to="after the crossroad" />
 *     <transition name="right"  to="inside the right street" />
 *     <transition name="ask someone else" to="end" />
 *   </decision>
 */
public class ExpressionDecisionHandler implements DecisionHandler, Configurable {

	public String decide(ExecutionContext executionContext) {
		return null;
	}

	public void configure(String configuration) {
	}
}

⌨️ 快捷键说明

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