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

📄 startprocessaction.java

📁 java实现的可配置的工作流引擎,采用jsp+javabean实现
💻 JAVA
字号:
/*
 * Created on 2004-11-10 TODO To change the template for this generated file go to Window - Preferences - Java - Code
 * Style - Code Templates
 */
package com.hongsoft.agile.action;

import com.hongsoft.agile.Agile;
import com.hongsoft.agile.AgileConnection;
import com.hongsoft.agile.AgileFlow;
import com.opensymphony.xwork.Action;
import com.opensymphony.xwork.ModelDriven;

/**
 * @author hongsoft.com TODO To change the template for this generated type comment go to Window - Preferences - Java -
 *         Code Style - Code Templates
 */
public class StartProcessAction implements Action, ModelDriven {

    private static final long serialVersionUID = -1050142022650789938L;

    String processDefId = new String();

    public String execute() throws Exception {
        AgileConnection ac = Agile.connectToServer();
        AgileFlow.startProcess(ac, processDefId);
        Agile.disConnectServer(ac, true);
        return SUCCESS;
    }

    public Object getModel() {
        return processDefId;
    }

    /**
     * @return Returns the processDefId.
     */
    public String getProcessDefId() {
        return processDefId;
    }

    /**
     * @param processDefId The processDefId to set.
     */
    public void setProcessDefId(String processDefId) {
        this.processDefId = processDefId;
    }
}

⌨️ 快捷键说明

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