File tree 25 files changed +621
-258
lines changed
java/io/serverlessworkflow/api/workflow
test/java/io/serverlessworkflow/api/test
src/main/java/io/serverlessworkflow/utils
src/test/java/io/serverlessworkflow/validation/test 25 files changed +621
-258
lines changed Original file line number Diff line number Diff line change
1
+ release :
2
+ current-version : 5.0.0
3
+ next-version : 6.0.0-SNAPSHOT
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# This workflow will build a Java project with Maven
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
3
4
- name : Verify JAVA SDK
4
+ name : sdk-java Verify
5
5
6
6
on :
7
7
push :
@@ -14,17 +14,15 @@ jobs:
14
14
build :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - name : Set up JDK 11
19
- uses : actions/setup-java@v1
20
- with :
21
- java-version : 11
22
- - name : Cache Maven packages
23
- uses : actions/cache@v2
24
- with :
25
- path : ~/.m2
26
- key : ${{ runner.os }}-m2-${{ hashFiles('pom.xml') }}
27
- restore-keys : ${{ runner.os }}-m2
28
- - name : Verify with Maven
29
- run : |
30
- mvn -B -f pom.xml clean install verify
17
+ - uses : actions/checkout@v2
18
+
19
+ - name : Set up JDK 11
20
+ uses : actions/setup-java@v3
21
+ with :
22
+ distribution : temurin
23
+ java-version : 11
24
+ cache : ' maven'
25
+
26
+ - name : Verify with Maven
27
+ run : |
28
+ mvn -B -f pom.xml clean install verify
Original file line number Diff line number Diff line change
1
+ name : sdk-java Pre Release
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' .github/project.yml'
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ name : pre release
12
+
13
+ steps :
14
+ - uses : radcortez/project-metadata-action@master
15
+ name : retrieve project metadata
16
+ id : metadata
17
+ with :
18
+ github-token : ${{secrets.GITHUB_TOKEN}}
19
+ metadata-file-path : ' .github/project.yml'
20
+
21
+ - name : Validate version
22
+ if : contains(steps.metadata.outputs.current-version, 'SNAPSHOT')
23
+ run : |
24
+ echo '::error::Cannot release a SNAPSHOT version.'
25
+ exit 1
Original file line number Diff line number Diff line change
1
+ name : sdk-java Release
2
+
3
+ on :
4
+ pull_request :
5
+ types : [closed]
6
+ paths :
7
+ - ' .github/project.yml'
8
+
9
+ jobs :
10
+ release :
11
+ runs-on : ubuntu-latest
12
+ name : release
13
+ if : ${{github.event.pull_request.merged == true}}
14
+
15
+ steps :
16
+ - uses : radcortez/project-metadata-action@main
17
+ name : Retrieve project metadata
18
+ id : metadata
19
+ with :
20
+ github-token : ${{secrets.GITHUB_TOKEN}}
21
+ metadata-file-path : ' .github/project.yml'
22
+
23
+ - uses : actions/checkout@v3
24
+
25
+ - name : Import GPG key
26
+ id : import_gpg
27
+ uses : crazy-max/ghaction-import-gpg@v5
28
+ with :
29
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
30
+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
31
+
32
+ - name : Set up JDK 11
33
+ uses : actions/setup-java@v3
34
+ with :
35
+ distribution : temurin
36
+ java-version : 11
37
+ cache : ' maven'
38
+ server-id : ossrh
39
+ server-username : MAVEN_USERNAME
40
+ server-password : MAVEN_PASSWORD
41
+
42
+ - name : Configure Git author
43
+ run : |
44
+ git config --local user.email "action@github.com"
45
+ git config --local user.name "GitHub Action"
46
+
47
+ - name : Maven release ${{steps.metadata.outputs.current-version}}
48
+ run : |
49
+ git checkout -b release
50
+ mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
51
+ cat release.properties
52
+ git checkout ${{github.base_ref}}
53
+ git rebase release
54
+ mvn -B release:perform -Darguments=-DperformRelease -DperformRelease -Prelease
55
+ env :
56
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
57
+ MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
58
+
59
+ - name : Push tags
60
+ run : git push && git push --tags
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ to parse and validate workflow definitions as well as generate the workflow diag
20
20
21
21
| Latest Releases | Conformance to spec version |
22
22
| :---: | :---: |
23
- | [ 4.0.4.Final] ( https://github.com/serverlessworkflow/sdk-java/releases/tag/4.0.4.Final ) | [ v0.8] ( https://github.com/serverlessworkflow/specification/tree/0.8.x ) |
24
- | [ 4.0.3.Final] ( https://github.com/serverlessworkflow/sdk-java/releases/tag/4.0.3.Final ) | [ v0.8] ( https://github.com/serverlessworkflow/specification/tree/0.8.x ) |
23
+ | [ 4.0.5.Final] ( https://github.com/serverlessworkflow/sdk-java/releases/tag/4.0.5.Final ) | [ v0.8] ( https://github.com/serverlessworkflow/specification/tree/0.8.x ) |
25
24
| [ 3.0.0.Final] ( https://github.com/serverlessworkflow/sdk-java/releases/tag/3.0.0.Final ) | [ v0.7] ( https://github.com/serverlessworkflow/specification/tree/0.7.x ) |
26
25
| [ 2.0.0.Final] ( https://github.com/serverlessworkflow/sdk-java/releases/tag/2.0.0.Final ) | [ v0.6] ( https://github.com/serverlessworkflow/specification/tree/0.6.x ) |
27
26
| [ 1.0.3.Final] ( https://github.com/serverlessworkflow/sdk-java/releases/tag/1.0.3.Final ) | [ v0.5] ( https://github.com/serverlessworkflow/specification/tree/0.5.x ) |
Original file line number Diff line number Diff line change 145
145
</executions >
146
146
</plugin >
147
147
<plugin >
148
- <groupId >com.coveo </groupId >
148
+ <groupId >com.spotify.fmt </groupId >
149
149
<artifactId >fmt-maven-plugin</artifactId >
150
150
<configuration >
151
151
<sourceDirectory >src/main/java</sourceDirectory >
Original file line number Diff line number Diff line change 17
17
package io .serverlessworkflow .api .workflow ;
18
18
19
19
import io .serverlessworkflow .api .auth .AuthDefinition ;
20
+ import java .io .Serializable ;
20
21
import java .util .ArrayList ;
21
22
import java .util .List ;
22
23
23
- public class Auth {
24
+ public class Auth implements Serializable {
24
25
private String refValue ;
25
26
private List <AuthDefinition > authDefs ;
26
27
Original file line number Diff line number Diff line change 16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
18
import com .fasterxml .jackson .databind .JsonNode ;
19
+ import java .io .Serializable ;
19
20
20
- public class Constants {
21
+ public class Constants implements Serializable {
21
22
private String refValue ;
22
23
private JsonNode constantsDef ;
23
24
Original file line number Diff line number Diff line change 16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
18
import com .fasterxml .jackson .databind .JsonNode ;
19
+ import java .io .Serializable ;
19
20
20
- public class DataInputSchema {
21
+ public class DataInputSchema implements Serializable {
21
22
private String refValue ;
22
23
private JsonNode schemaDef ;
23
24
private boolean failOnValidationErrors = true ;
Original file line number Diff line number Diff line change 16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
18
import io .serverlessworkflow .api .error .ErrorDefinition ;
19
+ import java .io .Serializable ;
19
20
import java .util .List ;
20
21
21
- public class Errors {
22
+ public class Errors implements Serializable {
22
23
private String refValue ;
23
24
private List <ErrorDefinition > errorDefs ;
24
25
Original file line number Diff line number Diff line change 16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
18
import io .serverlessworkflow .api .events .EventDefinition ;
19
+ import java .io .Serializable ;
19
20
import java .util .List ;
20
21
21
- public class Events {
22
+ public class Events implements Serializable {
22
23
private String refValue ;
23
24
private List <EventDefinition > eventDefs ;
24
25
Original file line number Diff line number Diff line change 16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
18
import io .serverlessworkflow .api .functions .FunctionDefinition ;
19
+ import java .io .Serializable ;
19
20
import java .util .List ;
20
21
21
- public class Functions {
22
+ public class Functions implements Serializable {
22
23
private String refValue ;
23
24
private List <FunctionDefinition > functionDefs ;
24
25
Original file line number Diff line number Diff line change 16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
18
import io .serverlessworkflow .api .retry .RetryDefinition ;
19
+ import java .io .Serializable ;
19
20
import java .util .List ;
20
21
21
- public class Retries {
22
+ public class Retries implements Serializable {
22
23
private String refValue ;
23
24
private List <RetryDefinition > retryDefs ;
24
25
Original file line number Diff line number Diff line change 15
15
*/
16
16
package io .serverlessworkflow .api .workflow ;
17
17
18
+ import java .io .Serializable ;
18
19
import java .util .List ;
19
20
20
- public class Secrets {
21
+ public class Secrets implements Serializable {
21
22
private String refValue ;
22
23
private List <String > secretDefs ;
23
24
Original file line number Diff line number Diff line change 36
36
}
37
37
},
38
38
"required" : [
39
- " default "
39
+ " defaultCondition "
40
40
]
41
41
}
Original file line number Diff line number Diff line change 11
11
"properties" : {
12
12
"id" : {
13
13
"type" : " string" ,
14
- "description" : " Workflow unique identifier"
14
+ "description" : " Workflow unique identifier" ,
15
+ "minLength" : 1
15
16
},
16
17
"key" : {
17
18
"type" : " string" ,
160
161
}
161
162
},
162
163
"required" : [
164
+ " id" ,
163
165
" name" ,
164
166
" version" ,
165
167
" states"
Original file line number Diff line number Diff line change 41
41
import io .serverlessworkflow .api .workflow .*;
42
42
import java .util .List ;
43
43
import java .util .Map ;
44
-
45
44
import org .junit .jupiter .params .ParameterizedTest ;
46
45
import org .junit .jupiter .params .provider .ValueSource ;
47
46
@@ -263,7 +262,8 @@ public void testTransitions(String workflowLocation) {
263
262
assertNotNull (cond2 .getTransition ().getProduceEvents ());
264
263
assertEquals (1 , cond2 .getTransition ().getProduceEvents ().size ());
265
264
assertNotNull (cond2 .getTransition ().getProduceEvents ().get (0 ).getContextAttributes ());
266
- Map <String , String > contextAttributes = cond2 .getTransition ().getProduceEvents ().get (0 ).getContextAttributes ();
265
+ Map <String , String > contextAttributes =
266
+ cond2 .getTransition ().getProduceEvents ().get (0 ).getContextAttributes ();
267
267
assertEquals (2 , contextAttributes .size ());
268
268
assertEquals ("IN" , contextAttributes .get ("order_location" ));
269
269
assertEquals ("online" , contextAttributes .get ("order_type" ));
Original file line number Diff line number Diff line change 130
130
</executions >
131
131
</plugin >
132
132
<plugin >
133
- <groupId >com.coveo </groupId >
133
+ <groupId >com.spotify.fmt </groupId >
134
134
<artifactId >fmt-maven-plugin</artifactId >
135
135
<configuration >
136
136
<sourceDirectory >src/main/java</sourceDirectory >
You can’t perform that action at this time.
0 commit comments