查看工作流

    public void actionViewDoProccess_actionPerformed(ActionEvent e) throws Exception
    {
       	checkSelected();
    	String fieldName = getQueryFieldNameBindingWf();
    	List valList = getSelectedFDCFieldValues(fieldName);
    	if(valList==null || valList.size()<1)
    	{
    		MsgBox.showInfo("请选择答疑澄清记录行!");
    		SysUtil.abort();
    	}
        String id = (String)getSelectedFDCFieldValues(fieldName).get(0);
        IEnactmentService service = EnactmentServiceFactory.createRemoteEnactService();
        ProcessInstInfo processInstInfo = null;
        ProcessInstInfo[] procInsts = service.getProcessInstanceByHoldedObjectId(id);
        for (int i = 0, n = procInsts.length; i < n; i++) {
            if (procInsts[i].getState().startsWith("open")) {
            	processInstInfo = procInsts[i];
            }
        }
        if (processInstInfo == null) {
        	//如果没有运行时流程,判断是否有可以展现的流程图并展现
        	procInsts = service.getAllProcessInstancesByBizobjId(id);
        	if(procInsts== null || procInsts.length <=0)
        		MsgBox.showInfo(this ,EASResource.getString(FrameWorkClientUtils.strResource+ "Msg_WFHasNotInstance"));
        	else if(procInsts.length ==1){
	        	showWorkflowDiagram(procInsts[0]);
        	}else{
        		UIContext uiContext = new UIContext(this);
                 uiContext.put("procInsts",procInsts);
                 String className = ProcessRunningListUI.class.getName();
                 IUIWindow uiWindow = UIFactory.createUIFactory(UIFactoryName.MODEL).create(className,uiContext);
                 uiWindow.show();
        	}
		} else {
			showWorkflowDiagram(processInstInfo);
        }
    }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值