activiti中juel表达式的写法

juel表达式的写法:

public class ManagerTask implements ExecutionListener{
	
	public ManagerTask(){
		System.out.println("你好啊但是JFK的历史飞机打瞌睡了附近的考试零分");
	}
	
	@Override
	public void notify(DelegateExecution execution) throws Exception {
		// TODO Auto-generated method stub
		
	}
	
	public Boolean test(DelegateExecution execution,String code){
	String s="1";
	System.out.println(s);
	// 获取流程变量
	List list = (List) execution.getVariable("expenseTypeCodes");
	if(list != null){
		for (int i = 0; i < list.size(); i++) {
			if(list.get(i).equals(code)){
				return true;
			}
		}
	}
	return false;
	}
	
}
对应的juel表达式

${managerTask.test()}

${checkAmt<=30000}

${billType!=‘travel’}

managerTask.contain(execution,‘fgcwzdld’,‘travelRoles’)
不包含怎么写:
!managerTask.contain(execution,‘fgcwzdld’,‘travelRoles’)

第三个 和第二个变量都要加引号

${departmentCode==‘12356’}





你可能感兴趣的:(activiti)