接口调试
示例:流程调用
pom添加依赖
xml
<dependency>
<groupId>com.wings.tiny</groupId>
<artifactId>swing-flow-sdk</artifactId>
</dependency>启用feign客户端
yaml
@EnableFeignClients(clients = {
FlowInstanceClient.class,
})业务中使用
java
@Resource
private FlowInstanceClient flowInstanceClient;
// 创建流程实例
RestResponse<Long> response = this.flowInstanceClient.createInstance(TronSecurityHelper.token(), instanceVO);
// 查询工作流当前登录人所涉及的审批流程
RestResponse<List<Instance>> resp = this.flowInstanceClient.listInstance(TronSecurityHelper.token(), new InstanceQuery().setIsMe(true));
