Class InterfaceUtilService


  • @Service("interfaceUtilService")
    public class InterfaceUtilService
    extends Object
    Author:
    zhangchongjie
    Date:
    2024/05/29
    • Constructor Detail

      • InterfaceUtilService

        public InterfaceUtilService()
    • Method Detail

      • interfaceCallByProcess

        public void interfaceCallByProcess​(org.flowable.engine.impl.persistence.entity.ExecutionEntityImpl executionEntity,
                                           Map<String,​Object> variables,
                                           String condition)
                                    throws Exception
        流程启动,办结接口调用
        Parameters:
        executionEntity -
        variables -
        condition -
        Throws:
        Exception
      • interfaceCallBySequenceFlow

        public void interfaceCallBySequenceFlow​(org.flowable.engine.delegate.event.impl.FlowableSequenceFlowTakenEventImpl flow,
                                                String condition)
                                         throws Exception
        路由经过接口调用
        Parameters:
        flow -
        condition -
        Throws:
        Exception
      • interfaceCallByTask

        public void interfaceCallByTask​(org.flowable.task.service.delegate.DelegateTask task,
                                        Map<String,​Object> variables,
                                        String condition)
                                 throws Exception
        任务创建,完成接口调用
        Parameters:
        task -
        variables -
        condition -
        Throws:
        Exception
      • syncInterface

        public void syncInterface​(String processSerialNumber,
                                  String itemId,
                                  net.risesoft.model.itemadmin.InterfaceModel info,
                                  String processInstanceId,
                                  String processDefinitionId,
                                  String taskId,
                                  String taskKey,
                                  Integer loopCounter)
                           throws Exception
        同步调用接口
        Parameters:
        processSerialNumber - 流程编号
        itemId - 事项id
        info - 接口信息
        processInstanceId - 流程实例id
        processDefinitionId - 流程定义id
        taskId - 任务id
        taskKey - 任务key
        loopCounter - 循环次数
        Throws:
        Exception