|
|
本帖最后由 shary 于 2012-1-12 09:34 编辑
如果使用Cookie单点登录,则用户从另外系统切换到MyApps, 无法提交流程到下一个节点.....
类DocumentProcessBean中的会报错,如下方法中instance为null....
public Document doFlow(final Document doc, ParamsTable params, String currNodeId, String[] nextNodeIds,
String flowOption, String comment, WebUser user) throws Exception {
FlowStateRTProcess stateProcess = (FlowStateRTProcess) ProcessFactory.createRuntimeProcess(
FlowStateRTProcess.class, doc.getApplicationid());
// BillDefiVO flowVO = doc.getFlowVO();
FlowStateRT instance = doc.getState();
System.out.println(doc);
System.out.println(currNodeId);
System.out.println(instance);
System.out.println(user);
System.out.println(nextNodeIds);
if (!flowOption.equals(FlowType.RUNNING2RUNNING_RETRACEMENT)
&& !FlowType.RUNNING2RUNNING_INTERVENTION.equals(flowOption))
if (!isInNextNodeList(doc, currNodeId, instance.getFlowVO(), user, nextNodeIds)) {
throw new DocumentException("{*[Could not submit to]*} "
+ StateMachine.getNodeNameListStr(instance.getFlowVO(), nextNodeIds)
+ " {*[please choose again]*}.", doc);
}
stateProcess.doApprove(params, instance, currNodeId, nextNodeIds, flowOption, comment, Environment
.getInstance(), user);
return instance.getDocument();
} |
|