使用成员变量功能要求AWS平台版本不低于6.2.12.0925版本。
package com.actionsoft.FlowStepBiz;
import java.util.Date;
import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext;
import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener;
public class Form006AfterSave extends ExecuteListener {
@Override
public String getDescription() {
// TODO Auto-generated method stub
return "测试用例";
}
@Override
public String getProvider() {
// TODO Auto-generated method stub
return "ActionSoft";
}
@Override
public String getVersion() {
// TODO Auto-generated method stub
return "1.0";
}
//事件触发器类的成员变量定义开始----------
private int num = 0;
private Date date = new Date();
private long long1 = (long) 12;
private double double1 = 12.2;
private boolean flag = true;
private String name = "";
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public long getLong1() {
return long1;
}
public void setLong1(long long1) {
this.long1 = long1;
}
public double getDouble1() {
return double1;
}
public void setDouble1(double double1) {
this.double1 = double1;
}
public boolean isFlag() {
return flag;
}
public void setFlag(boolean flag) {
this.flag = flag;
}
//事件触发器类的成员变量定义结束----------
@Override
public void execute(ProcessExecutionContext ctx) throws Exception {
info("事件被触发-->" + ctx.getProcessInstance());
}
}