File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
utils/src/main/java/io/serverlessworkflow/utils Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ With the SDK you can:
11
11
* Programmatically build workflow definitions
12
12
* Validate workflow definitions (both schema and workflow integrity validation)
13
13
* Generate workflow diagram (SVG)
14
+ * Set of utilities to help runtimes interpret the Serverless Workflow object model
14
15
15
16
Serverless Workflow Java SDK is ** not** a workflow runtime implementation but can be used by Java runtime implementations
16
17
to parse and validate workflow definitions as well as generate the workflow diagram (SVG).
@@ -82,6 +83,12 @@ b) Add the following dependencies to your pom.xml `dependencies` section:
82
83
<artifactId >serverlessworkflow-diagram</artifactId >
83
84
<version >4.0.0-SNAPSHOT</version >
84
85
</dependency >
86
+
87
+ <dependency >
88
+ <groupId >io.serverlessworkflow</groupId >
89
+ <artifactId >serverlessworkflow-util</artifactId >
90
+ <version >4.0.0-SNAPSHOT</version >
91
+ </dependency >
85
92
```
86
93
87
94
#### Gradle projects:
@@ -99,6 +106,7 @@ implementation("io.serverlessworkflow:serverlessworkflow-api:4.0.0-SNAPSHOT")
99
106
implementation("io.serverlessworkflow:serverlessworkflow-spi:4.0.0-SNAPSHOT")
100
107
implementation("io.serverlessworkflow:serverlessworkflow-validation:4.0.0-SNAPSHOT")
101
108
implementation("io.serverlessworkflow:serverlessworkflow-diagram:4.0.0-SNAPSHOT")
109
+ implementation("io.serverlessworkflow:serverlessworkflow-util:4.0.0-SNAPSHOT")
102
110
```
103
111
104
112
### How to Use
Original file line number Diff line number Diff line change 21
21
22
22
/** Provides common utility methods to provide most often needed answers from a workflow */
23
23
public final class WorkflowUtils {
24
- private static int DEFAULT_STARTING_STATE_POSITION = 0 ;
24
+ private static final int DEFAULT_STARTING_STATE_POSITION = 0 ;
25
25
/**
26
26
* Gets State matching Start state.If start is not present returns first state otherwise returns
27
27
* null
You can’t perform that action at this time.
0 commit comments