天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 1241|回复: 2

BUG....请解决

[复制链接]
victor_mamj 发表于 2012-1-5 13:41:15 | 显示全部楼层 |阅读模式
本帖最后由 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();
        }
 楼主| victor_mamj 发表于 2012-1-6 12:22:39 | 显示全部楼层
:@:@:@:@:@:@:@:@:@:@:@:@:@:@:@:@:@:@:@:@
admin 发表于 2012-1-9 20:09:27 | 显示全部楼层
您好,技术支持跟进的主要是开发交流模块,发帖请在开发交流求助模块,给您带来不便,敬请见谅。

您的问题,我这边本地测试,没有问题的。今天下午也跟您沟通过的,您再检查一下您的配置,有问题,我们再沟通。

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 19:54

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表