TSK-1759: Demo-App now contains routing documentation
This commit is contained in:
parent
49183fea79
commit
315637c534
|
@ -430,9 +430,9 @@ jobs:
|
|||
- name: Generate Javadoc
|
||||
run: ./mvnw -B clean javadoc:jar -pl :taskana-core,:taskana-cdi,:taskana-spring
|
||||
- name: Generate Rest Documentation
|
||||
run: ./mvnw -B test asciidoctor:process-asciidoc -Dtest=*DocTest -pl :taskana-rest-spring,:taskana-simplehistory-rest-spring -Dcheckstyle.skip -Djacoco.skip
|
||||
run: ./mvnw -B test asciidoctor:process-asciidoc -Dtest=*DocTest -pl :taskana-rest-spring,:taskana-simplehistory-rest-spring,:taskana-routing-rest -Dcheckstyle.skip -Djacoco.skip
|
||||
- name: Build Example Application
|
||||
run: ./mvnw -B install -P history.plugin -pl :taskana-rest-spring-example-boot -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip -Djacoco.skip
|
||||
run: ./mvnw -B install -P history.plugin -P dmn-routing.plugin -pl :taskana-rest-spring-example-boot -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip -Djacoco.skip
|
||||
- name: Verify Example Application contains documentation
|
||||
run: ci/verify_docs_jar.sh
|
||||
- name: Deploy to IBM Cloud Foundry
|
||||
|
|
|
@ -4,5 +4,5 @@ applications:
|
|||
path: ../rest/taskana-rest-spring-example-boot/target/taskana-rest-spring-example-boot.jar
|
||||
buildpacks:
|
||||
- https://github.com/cloudfoundry/java-buildpack.git
|
||||
memory: 640M
|
||||
disk_quota: 256M
|
||||
memory: 1G
|
||||
disk_quota: 512M
|
||||
|
|
|
@ -128,6 +128,51 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>dmn-routing.plugin</id>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>pro.taskana</groupId>
|
||||
<artifactId>taskana-spi-routing-dmn-router</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>pro.taskana</groupId>
|
||||
<artifactId>taskana-routing-rest</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>${version.maven.resources}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-routing-rest-documentation-to-static-folder</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>
|
||||
${project.build.outputDirectory}/static/docs/rest
|
||||
</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>
|
||||
../../routing/taskana-routing-rest/target/generated-docs
|
||||
</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -3,6 +3,8 @@ logging.level.org.springframework.security=INFO
|
|||
|
||||
server.servlet.context-path=/taskana
|
||||
|
||||
taskana.routing.dmn.upload.path=/tmp/routing.dmn
|
||||
|
||||
######## Taskana DB #######
|
||||
######## h2 configuration ########
|
||||
spring.datasource.url=jdbc:h2:mem:taskana;IGNORECASE=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=0
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" id="definitions" name="definitions" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="4.9.0">
|
||||
<decision id="workbasketRouting" name="workbasketRouting">
|
||||
<decisionTable id="decisionTable" hitPolicy="FIRST">
|
||||
<input id="input1" label="POR">
|
||||
<inputExpression id="InputExpression1816276523" typeRef="string">
|
||||
<text>task.primaryObjRef.value</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<input id="input2" label="ClassificationKey">
|
||||
<inputExpression id="InputExpression475650354" typeRef="string" expressionLanguage="javascript">
|
||||
<text>task.classificationSummary.key + task.note</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output1" label="workbasketKey" name="workbasketKey" typeRef="string" />
|
||||
<output id="output2" label="domain" name="domain" typeRef="string" />
|
||||
</decisionTable>
|
||||
</decision>
|
||||
</definitions>
|
|
@ -23,3 +23,5 @@ taskana.jobs.user.refresh.firstRunAt=2018-07-25T23:00:00Z
|
|||
taskana.german.holidays.enabled=true
|
||||
taskana.german.holidays.corpus-christi.enabled=true
|
||||
taskana.historylogger.name=AUDIT
|
||||
|
||||
taskana.routing.dmn=/dmn-table.dmn
|
||||
|
|
|
@ -13,7 +13,6 @@ import org.springframework.web.multipart.MultipartFile;
|
|||
|
||||
import pro.taskana.common.api.exceptions.NotAuthorizedException;
|
||||
import pro.taskana.routing.dmn.service.DmnConverterService;
|
||||
import pro.taskana.routing.dmn.spi.internal.DmnValidatorManager;
|
||||
|
||||
/** Controller for all DMN upload related endpoints. */
|
||||
@RestController
|
||||
|
@ -59,6 +58,6 @@ public class DmnUploadController {
|
|||
*/
|
||||
@GetMapping(path = RoutingRestEndpoints.ROUTING_REST_ENABLED)
|
||||
public ResponseEntity<Boolean> getIsRoutingRestEnabled() {
|
||||
return ResponseEntity.ok(DmnValidatorManager.isDmnUploadProviderEnabled());
|
||||
return ResponseEntity.ok(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ public class RoutingRestEndpoints {
|
|||
|
||||
public static final String URL_ROUTING_RULES = API_V1 + "routing-rules";
|
||||
public static final String URL_ROUTING_RULES_DEFAULT = URL_ROUTING_RULES + "/default";
|
||||
public static final String ROUTING_REST_ENABLED = URL_ROUTING_RULES + "routing-rest-enabled";
|
||||
public static final String ROUTING_REST_ENABLED = URL_ROUTING_RULES + "/routing-rest-enabled";
|
||||
|
||||
private RoutingRestEndpoints() {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue