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 1414 "type" : " object" ,
1515 "$ref" : " ../actions/action.json"
1616 }
17- },
18- "workflowId" : {
19- "type" : " string" ,
20- "description" : " Unique Id of a workflow to be executed in this branch"
2117 }
2218 },
2319 "oneOf" : [
2925 },
3026 {
3127 "required" : [
32- " name" ,
33- " workflowId "
28+ " name"
3429 ]
3530 }
3631 ]
Original file line number Diff line number Diff line change 3535 "$ref" : " ../actions/action.json"
3636 }
3737 },
38- "workflowId" : {
39- "type" : " string" ,
40- "description" : " Unique Id of a workflow to be executed for each of the elements of inputCollection"
41- },
4238 "usedForCompensation" : {
4339 "type" : " boolean" ,
4440 "default" : false ,
5248 " type" ,
5349 " inputCollection" ,
5450 " inputParameter" ,
55- " workflowId" ,
5651 " end"
5752 ]
5853 },
6257 " type" ,
6358 " inputCollection" ,
6459 " inputParameter" ,
65- " workflowId" ,
6660 " transition"
6761 ]
6862 },
7367 " type" ,
7468 " inputCollection" ,
7569 " inputParameter" ,
76- " workflowId" ,
7770 " end"
7871 ]
7972 },
8477 " type" ,
8578 " inputCollection" ,
8679 " inputParameter" ,
87- " workflowId" ,
8880 " transition"
8981 ]
9082 },
Original file line number Diff line number Diff line change 1111 "completionType" : " allOf" ,
1212 "branches" : [
1313 {
14- "name" : " ShortDelayBranch" ,
15- "workflowId" : " shortdelayworkflowid"
14+ "name" : " ShortDelayBranch"
1615 },
1716 {
18- "name" : " LongDelayBranch" ,
19- "workflowId" : " longdelayworkflowid"
17+ "name" : " LongDelayBranch"
2018 }
2119 ],
2220 "end" : true
Original file line number Diff line number Diff line change 99 completionType : allOf
1010 branches :
1111 - name : ShortDelayBranch
12- workflowId : shortdelayworkflowid
1312 - name : LongDelayBranch
14- workflowId : longdelayworkflowid
1513 end : true
Original file line number Diff line number Diff line change @@ -331,10 +331,6 @@ private void inspectStatesInfo(Workflow workflow) {
331331 if (forEachState .getActions () != null && forEachState .getActions ().size () > 0 ) {
332332 modelState .addInfo ("Num. of actions: " + forEachState .getActions ().size ());
333333 }
334-
335- if (forEachState .getWorkflowId () != null && forEachState .getWorkflowId ().length () > 0 ) {
336- modelState .addInfo ("Workflow ID: " + forEachState .getWorkflowId ());
337- }
338334 }
339335
340336 if (state instanceof CallbackState ) {
Original file line number Diff line number Diff line change 1111 "completionType" : " allOf" ,
1212 "branches" : [
1313 {
14- "name" : " ShortDelayBranch" ,
15- "workflowId" : " shortdelayworkflowid"
14+ "name" : " ShortDelayBranch"
1615 },
1716 {
18- "name" : " LongDelayBranch" ,
19- "workflowId" : " longdelayworkflowid"
17+ "name" : " LongDelayBranch"
2018 }
2119 ],
2220 "end" : true
Original file line number Diff line number Diff line change 99 completionType : allOf
1010 branches :
1111 - name : ShortDelayBranch
12- workflowId : shortdelayworkflowid
1312 - name : LongDelayBranch
14- workflowId : longdelayworkflowid
1513 end : true
Original file line number Diff line number Diff line change @@ -314,14 +314,6 @@ public List<ValidationError> validate() {
314314 ValidationError .WORKFLOW_VALIDATION );
315315 }
316316
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- }
325317 }
326318
327319 if (s instanceof InjectState ) {
@@ -343,11 +335,6 @@ public List<ValidationError> validate() {
343335 addValidationError ("ForEach state should have a valid iteration parameter" ,
344336 ValidationError .WORKFLOW_VALIDATION );
345337 }
346-
347- if (forEachState .getWorkflowId () == null || forEachState .getWorkflowId ().length () < 1 ) {
348- addValidationError ("ForEach state should define a workflow id" ,
349- ValidationError .WORKFLOW_VALIDATION );
350- }
351338 }
352339
353340 if (s instanceof CallbackState ) {
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ public void testOperationStateNoFunctionRef() {
124124 " \" type\" : \" foreach\" ,\n " +
125125 " \" inputCollection\" : \" ${ .message }\" ,\n " +
126126 " \" iterationParam\" : \" ${ .singlemessage }\" ,\n " +
127- " \" workflowId\" : \" sendMessageWorkflowId\" ,\n " +
128127 " \" end\" : {\n " +
129128 " \" kind\" : \" default\" \n " +
130129 " }\n " +
You can’t perform that action at this time.
0 commit comments