shiqian 4 жил өмнө
parent
commit
4ec33581f3

+ 22 - 0
boman-api/boman-api-jflow/pom.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>boman-api</artifactId>
+        <groupId>com.boman</groupId>
+        <version>2.5.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>boman-api-jflow</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.boman</groupId>
+            <artifactId>boman-domain</artifactId>
+            <version>2.5.0-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+
+</project>

+ 19 - 0
boman-api/boman-api-jflow/src/main/java/com/boman/jflow/api/RemoteJflowService.java

@@ -0,0 +1,19 @@
+package com.boman.jflow.api;
+
+import com.alibaba.fastjson.JSONObject;
+import com.boman.common.core.constant.ServiceNameConstants;
+import com.boman.domain.dto.ProcessDto;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+/**
+ * @author shiqian
+ * @date 2021年05月26日 15:09
+ **/
+@FeignClient(contextId = "remoteJflowService", value = ServiceNameConstants.JFLOW_SERVICE)
+public interface RemoteJflowService {
+
+    @PostMapping(name = "/jflow/p/cs/process/launch")
+    JSONObject createProcess(@RequestBody ProcessDto dto);
+}