startprocessaction.java

来自「java实现的可配置的工作流引擎,采用jsp+javabean实现」· Java 代码 · 共 48 行

JAVA
48
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?