mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-10 21:19:00 +08:00
✨ 流程引擎模块提供外部API 方便其他模块调用
(cherry picked from commit 0e3e4f8d6cbb624d58fdd65a99cf043a3576fbba)
This commit is contained in:
1 parent
e6672c0af7
commit
2fe78b99b6
3 files changed
+70
-24
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
package com.pig4cloud.pigx.flow.task.api.feign;
|
||||
|
||||
import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants;
|
||||
import com.pig4cloud.pigx.common.core.util.R;
|
||||
import com.pig4cloud.pigx.flow.task.dto.ProcessInstanceParamDto;
|
||||
import com.pig4cloud.pigx.flow.task.vo.FormGroupVo;
|
||||
import com.pig4cloud.pigx.flow.task.vo.ProcessVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
* @date 2023/7/14
|
||||
*/
|
||||
@FeignClient(contextId = "remoteFlowTaskService", value = ServiceNameConstants.FLOW_TASK_SERVER)
|
||||
public interface RemoteAiFlowService {
|
||||
|
||||
/**
|
||||
* 查询所有我可以发起的表单
|
||||
*
|
||||
* @return R
|
||||
*/
|
||||
@GetMapping("/combination/group/listCurrentUserStartGroup")
|
||||
R<List<FormGroupVo>> listCurrentUserStartGroup();
|
||||
|
||||
/**
|
||||
* 获取流程详情
|
||||
*
|
||||
* @param flowId 流程id
|
||||
* @return R
|
||||
*/
|
||||
@GetMapping("/process/getDetail")
|
||||
R<ProcessVO> getDetail(@RequestParam("flowId") String flowId);
|
||||
|
||||
|
||||
@PostMapping("/process-instance/startProcessInstance")
|
||||
R startProcessInstance(@RequestBody ProcessInstanceParamDto paramDto);
|
||||
|
||||
}
|
||||
+25
-24
@@ -18,40 +18,41 @@ import java.util.List;
|
||||
@AllArgsConstructor
|
||||
public class FormGroupVo {
|
||||
|
||||
private Long id;
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 流程名字
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 流程名字
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 流程
|
||||
*/
|
||||
private List<FlowVo> items;
|
||||
/**
|
||||
* 流程
|
||||
*/
|
||||
private List<FlowVo> items;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
public static class FlowVo {
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class FlowVo {
|
||||
|
||||
private String flowId;
|
||||
private String flowId;
|
||||
|
||||
/**
|
||||
* 发起范围
|
||||
*/
|
||||
private String rangeShow;
|
||||
/**
|
||||
* 发起范围
|
||||
*/
|
||||
private String rangeShow;
|
||||
|
||||
private String name;
|
||||
private String name;
|
||||
|
||||
private String logo;
|
||||
private String logo;
|
||||
|
||||
private String stop;
|
||||
private String stop;
|
||||
|
||||
private String remark;
|
||||
private String remark;
|
||||
|
||||
private LocalDateTime updated;
|
||||
private LocalDateTime updated;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -1,2 +1,3 @@
|
||||
com.pig4cloud.pigx.flow.task.api.feign.RemoteFlowTaskService
|
||||
com.pig4cloud.pigx.flow.task.api.feign.RemoteFlowEngineService
|
||||
com.pig4cloud.pigx.flow.task.api.feign.RemoteAiFlowService
|
||||
Reference in new issue
Block a user