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

📄 sendmailactionhandler.java

📁 一个简单但功能齐备的Jbpm申请借款的实例工程
💻 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.SendMailActionHandler
 * Mar 24, 2008
 */
public class SendMailActionHandler implements ActionHandler {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7172623105597672362L;

	/* (non-Javadoc)
	 * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
	 */
	@Override
	public void execute(ExecutionContext executionContext) throws Exception {
		/*
		 * 借款审批完成,Mail通知申请人
		 */
		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 + -