?? presidentapprovedactionhandler.java
字號:
/**
*
*/
package com.firstflow.action;
import java.util.Date;
import org.jbpm.context.exe.ContextInstance;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;
/**
* @author linly
* com.firstflow.action.PresidentApprovedActionHandler
* Mar 24, 2008
*/
public class PresidentApprovedActionHandler implements ActionHandler {
/**
*
*/
private static final long serialVersionUID = 6432105342800281464L;
/* (non-Javadoc)
* @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
*/
//@Override
public void execute(ExecutionContext executionContext) throws Exception {
/*
* 通過總經理審批
*/
ContextInstance ci = executionContext.getContextInstance();
String user = (String)ci.getVariable("initiator");
Integer money = (Integer)ci.getVariable("money");
System.out.println(new Date() + " 員工 " + user + " 借款 " + money + " 元, 通過總經理審批");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -