Advertisement

ACTIVITIES流程 reject handling for request processing logic.

阅读量:

项目地址:activiti-workflow

通用审批流程通常会包含驳回机制,在Activiti现有的接口并未内置此功能。本文通过增强Activiti接口的功能实现流程中的驳回处理,并附上相关代码如下

复制代码
    		String processInstanceId = taskCurrent.getProcessInstanceId();
        FlowElement targetFlowElement = null;
        if (StringUtil.isNotEmpty(processRejectParam.getTargetNodeId())) {
            //找到目标节点元素
            targetFlowElement = bpmnModel.getMainProcess().getFlowElement(processRejectParam.getTargetNodeId());
        } else {
        	//开始节点的下一个节点
            targetFlowElement = BpmnUtil.startEventNextTaskId(bpmnModel);

全部评论 (0)

还没有任何评论哟~