All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.flowable.business.service.FlowService Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.flowable.business.service;

import java.util.Map;

import org.zodiac.flowable.core.model.PlatformProcessFlow;

/**
 * 工作流调用接口。
 *
 */
public interface FlowService {

    /**
     * 开启流程。
     *
     * @param processDefinitionId 流程id
     * @param businessKey 业务key
     * @param variables 参数
     * @return PlatformProcessFlow
     */
    PlatformProcessFlow startProcessInstanceById(String processDefinitionId, String businessKey, Map variables);

    /**
     * 开启流程。
     *
     * @param processDefinitionKey 流程标识
     * @param businessKey 业务key
     * @param variables 参数
     * @return PlatformProcessFlow
     */
    PlatformProcessFlow startProcessInstanceByKey(String processDefinitionKey, String businessKey, Map variables);

    /**
     * 完成任务。
     *
     * @param taskId 任务id
     * @param processInstanceId 流程实例id
     * @param comment 评论
     * @param variables 参数
     * @return R
     */
    boolean completeTask(String taskId, String processInstanceId, String comment, Map variables);

    /**
     * 获取流程变量。
     *
     * @param taskId 任务id
     * @param variableName 变量名
     * @return R
     */
    Object taskVariable(String taskId, String variableName);

    /**
     * 获取流程变量集合。
     *
     * @param taskId 任务id
     * @return R
     */
    Map taskVariables(String taskId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy