|
楼主 |
发表于 2015-11-30 16:45:19
|
显示全部楼层
在流程结束和流程终止的事件中添加修改流程状态的代码
- public static void signatureProcessBeforeAbort() {
- //流程终止时,将流程状态设置为“已终止”
- try{
- String key=com.justep.system.process.ProcessUtils.getProcessData1();
- String kSql="update JT_Signature JT_Signature set JT_Signature.fBizState='aborted', JT_Signature.fBizStateName='已终止' "+
- "where JT_Signature='"+key+"'";
- KSQL.executeUpdate(kSql, null, "/JTNS/JTOA/data", null);
-
- }catch(Exception e){
- throw new RuntimeException (e.getMessage());
- }
- }
- public static void signatureProcessBeforeFinish() {
- //流程结束时,将流程状态设置为“已结束”
- try{
- String key=com.justep.system.process.ProcessUtils.getProcessData1();
- String kSql="update JT_Signature JT_Signature set JT_Signature.fBizState='finished', JT_Signature.fBizStateName='已结束' "+
- "where JT_Signature='"+key+"'";
- KSQL.executeUpdate(kSql, null, "/JTNS/JTOA/data", null);
-
- }catch(Exception e){
- throw new RuntimeException (e.getMessage());
- }
- }
复制代码 |
|