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

📄 preparegoodsbean.java

📁 Fire-Workflow-Engine-All-In-One-20090208 包含全部文档
💻 JAVA
字号:
package org.fireflow.example.mbeans;

import java.util.List;
import java.util.Map;

import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

import org.fireflow.engine.EngineException;
import org.fireflow.engine.IWorkItem;
import org.fireflow.engine.IWorkflowSession;
import org.fireflow.engine.RuntimeContext;
import org.fireflow.example.data.TradeInfo;
import org.fireflow.example.data.TradeInfoDAO;
import org.fireflow.example.ou.User;
import org.fireflow.example.workflow_ext.MyTaskInstance;
import org.fireflow.kenel.KenelException;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;
import org.springframework.transaction.support.TransactionTemplate;

public class PrepareGoodsBean {

	TradeInfoDAO tradeInfoDao = null;
	TransactionTemplate transactionTemplate = null;

	public PrepareGoodsBean() {
	}

	public void setTransactionManager(
			PlatformTransactionManager transactionManager) {
		this.transactionTemplate = new TransactionTemplate(transactionManager);
	}

	public TradeInfoDAO getTradeInfoDao() {
		return tradeInfoDao;
	}

	public void setTradeInfoDao(TradeInfoDAO demoDao) {
		this.tradeInfoDao = demoDao;
	}

	/**
	 * 保存业务数据。 在设个demo中,备货操作实际上没有什么数据需要保存,所以没有具体的逻辑代码。
	 * 此方法只是说明逻辑操作和流程操作(例如completeWorkItem)一般情况下是分开的。
	 * 
	 * @return
	 */
	public String save() {
		return "SELF";
	}

}

⌨️ 快捷键说明

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