File tree Expand file tree Collapse file tree 9 files changed +5
-44
lines changed
main/java/io/serverlessworkflow/diagram/model
main/java/io/serverlessworkflow/validation
test/java/io/serverlessworkflow/validation/test Expand file tree Collapse file tree 9 files changed +5
-44
lines changed Original file line number Diff line number Diff line change 14
14
"type" : " object" ,
15
15
"$ref" : " ../actions/action.json"
16
16
}
17
- },
18
- "workflowId" : {
19
- "type" : " string" ,
20
- "description" : " Unique Id of a workflow to be executed in this branch"
21
17
}
22
18
},
23
19
"oneOf" : [
29
25
},
30
26
{
31
27
"required" : [
32
- " name" ,
33
- " workflowId "
28
+ " name"
34
29
]
35
30
}
36
31
]
Original file line number Diff line number Diff line change 35
35
"$ref" : " ../actions/action.json"
36
36
}
37
37
},
38
- "workflowId" : {
39
- "type" : " string" ,
40
- "description" : " Unique Id of a workflow to be executed for each of the elements of inputCollection"
41
- },
42
38
"usedForCompensation" : {
43
39
"type" : " boolean" ,
44
40
"default" : false ,
52
48
" type" ,
53
49
" inputCollection" ,
54
50
" inputParameter" ,
55
- " workflowId" ,
56
51
" end"
57
52
]
58
53
},
62
57
" type" ,
63
58
" inputCollection" ,
64
59
" inputParameter" ,
65
- " workflowId" ,
66
60
" transition"
67
61
]
68
62
},
73
67
" type" ,
74
68
" inputCollection" ,
75
69
" inputParameter" ,
76
- " workflowId" ,
77
70
" end"
78
71
]
79
72
},
84
77
" type" ,
85
78
" inputCollection" ,
86
79
" inputParameter" ,
87
- " workflowId" ,
88
80
" transition"
89
81
]
90
82
},
Original file line number Diff line number Diff line change 11
11
"completionType" : " allOf" ,
12
12
"branches" : [
13
13
{
14
- "name" : " ShortDelayBranch" ,
15
- "workflowId" : " shortdelayworkflowid"
14
+ "name" : " ShortDelayBranch"
16
15
},
17
16
{
18
- "name" : " LongDelayBranch" ,
19
- "workflowId" : " longdelayworkflowid"
17
+ "name" : " LongDelayBranch"
20
18
}
21
19
],
22
20
"end" : true
Original file line number Diff line number Diff line change 9
9
completionType : allOf
10
10
branches :
11
11
- name : ShortDelayBranch
12
- workflowId : shortdelayworkflowid
13
12
- name : LongDelayBranch
14
- workflowId : longdelayworkflowid
15
13
end : true
Original file line number Diff line number Diff line change @@ -331,10 +331,6 @@ private void inspectStatesInfo(Workflow workflow) {
331
331
if (forEachState .getActions () != null && forEachState .getActions ().size () > 0 ) {
332
332
modelState .addInfo ("Num. of actions: " + forEachState .getActions ().size ());
333
333
}
334
-
335
- if (forEachState .getWorkflowId () != null && forEachState .getWorkflowId ().length () > 0 ) {
336
- modelState .addInfo ("Workflow ID: " + forEachState .getWorkflowId ());
337
- }
338
334
}
339
335
340
336
if (state instanceof CallbackState ) {
Original file line number Diff line number Diff line change 11
11
"completionType" : " allOf" ,
12
12
"branches" : [
13
13
{
14
- "name" : " ShortDelayBranch" ,
15
- "workflowId" : " shortdelayworkflowid"
14
+ "name" : " ShortDelayBranch"
16
15
},
17
16
{
18
- "name" : " LongDelayBranch" ,
19
- "workflowId" : " longdelayworkflowid"
17
+ "name" : " LongDelayBranch"
20
18
}
21
19
],
22
20
"end" : true
Original file line number Diff line number Diff line change 9
9
completionType : allOf
10
10
branches :
11
11
- name : ShortDelayBranch
12
- workflowId : shortdelayworkflowid
13
12
- name : LongDelayBranch
14
- workflowId : longdelayworkflowid
15
13
end : true
Original file line number Diff line number Diff line change @@ -314,14 +314,6 @@ public List<ValidationError> validate() {
314
314
ValidationError .WORKFLOW_VALIDATION );
315
315
}
316
316
317
-
318
- List <Branch > branches = parallelState .getBranches ();
319
- for (Branch branch : branches ) {
320
- if (branch .getWorkflowId () == null || branch .getWorkflowId ().length () < 1 ) {
321
- addValidationError ("Parallel state should define workflow id" ,
322
- ValidationError .WORKFLOW_VALIDATION );
323
- }
324
- }
325
317
}
326
318
327
319
if (s instanceof InjectState ) {
@@ -343,11 +335,6 @@ public List<ValidationError> validate() {
343
335
addValidationError ("ForEach state should have a valid iteration parameter" ,
344
336
ValidationError .WORKFLOW_VALIDATION );
345
337
}
346
-
347
- if (forEachState .getWorkflowId () == null || forEachState .getWorkflowId ().length () < 1 ) {
348
- addValidationError ("ForEach state should define a workflow id" ,
349
- ValidationError .WORKFLOW_VALIDATION );
350
- }
351
338
}
352
339
353
340
if (s instanceof CallbackState ) {
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ public void testOperationStateNoFunctionRef() {
124
124
" \" type\" : \" foreach\" ,\n " +
125
125
" \" inputCollection\" : \" ${ .message }\" ,\n " +
126
126
" \" iterationParam\" : \" ${ .singlemessage }\" ,\n " +
127
- " \" workflowId\" : \" sendMessageWorkflowId\" ,\n " +
128
127
" \" end\" : {\n " +
129
128
" \" kind\" : \" default\" \n " +
130
129
" }\n " +
You can’t perform that action at this time.
0 commit comments