【代码评审修改】 异步 http 触发器代码评审修改
This commit is contained in:
@@ -19,13 +19,6 @@ public interface BpmProcessInstanceApi {
|
||||
*/
|
||||
String createProcessInstance(Long userId, @Valid BpmProcessInstanceCreateReqDTO reqDTO);
|
||||
|
||||
// TODO @jason:新增 BpmProcessTaskApi 接口,这个要不改成 triggerTask,保持通用性(和 flowable 保持一致)
|
||||
/**
|
||||
* 异步 HTTP 请求触发器回调, 为了唤醒流程继续执行
|
||||
*
|
||||
* @param processInstanceId 流程实例编号
|
||||
* @param callbackId 回调编号, 对应 ReceiveTask Id TODO @jason:改成 taskDefineKey
|
||||
*/
|
||||
void asyncHttpTriggerCallback(String processInstanceId, String callbackId);
|
||||
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,21 @@
|
||||
package cn.iocoder.yudao.module.bpm.api.task;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* 流程任务 Api 接口
|
||||
*
|
||||
* @author jason
|
||||
*/
|
||||
public interface BpmProcessTaskApi {
|
||||
|
||||
|
||||
/**
|
||||
* 触发流程任务的执行
|
||||
*
|
||||
* @param processInstanceId 流程实例编号
|
||||
* @param taskDefineKey 任务 Key
|
||||
*/
|
||||
void triggerTask(@NotEmpty(message = "流程实例的编号不能为空") String processInstanceId,
|
||||
@NotEmpty(message = "任务 Key 不能为空") String taskDefineKey);
|
||||
}
|
@@ -19,7 +19,7 @@ public enum BpmTriggerTypeEnum implements ArrayValuable<Integer> {
|
||||
HTTP_REQUEST(1, "发起 HTTP 请求"),
|
||||
FORM_UPDATE(2, "更新流程表单数据"),
|
||||
FORM_DELETE(3, "删除流程表单数据"),
|
||||
ASYNC_HTTP_REQUEST(4, "发起异步 HTTP 请求"); // TODO @jason:HTTP_REQUEST_ASYNC
|
||||
HTTP_REQUEST_ASYNC(4, "发起异步 HTTP 请求");
|
||||
|
||||
/**
|
||||
* 触发器执行动作类型
|
||||
|
Reference in New Issue
Block a user