流程互斥
This commit is contained in:
parent
12832bc22e
commit
53369fdd1f
@ -59,7 +59,7 @@
|
||||
else
|
||||
{
|
||||
var mes=sReturnInfos[1];
|
||||
alert(mes);
|
||||
alert(sReturnInfos);
|
||||
}
|
||||
reloadSelf();
|
||||
},"请选择发起编号");
|
||||
|
||||
@ -148,7 +148,7 @@ public class BaseFlowStartAction extends FlowBussionAction {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
tx.rollback();
|
||||
sReturn = error_message;
|
||||
sReturn = e.getMessage();
|
||||
}
|
||||
return sReturn;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ public class FlowController extends HttpServlet {
|
||||
ASUser CurUser = ASUser.getUser(curUserID, null );
|
||||
sResult = JavaMethod.runTrans( sClassName, sMethodName, sArgs, CurUser ).getReturnText();
|
||||
if (sResult.indexOf("success")==-1) {
|
||||
throw new Exception( "发起流程失败" );
|
||||
throw new Exception(sResult);
|
||||
}
|
||||
}else if("alter".equals(type)){
|
||||
BaseFlowStartAction baseFlowStartAction = new BaseFlowStartAction();
|
||||
@ -81,7 +81,7 @@ public class FlowController extends HttpServlet {
|
||||
result = sResult==null?"SUCCESS":sResult;
|
||||
} catch ( Exception e ) {
|
||||
e.printStackTrace();
|
||||
result = "ERR-9999";
|
||||
result = "ERR-9999,"+e.getMessage();
|
||||
}
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
out.print(objectMapper.writeValueAsString(result));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user