File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
main/resources/schema/switchconditions Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 6
6
],
7
7
"description" : " Switch state data based condition" ,
8
8
"properties" : {
9
+ "name" : {
10
+ "type" : " string" ,
11
+ "description" : " Data condition name"
12
+ },
9
13
"condition" : {
10
14
"type" : " string" ,
11
15
"description" : " JsonPath expression evaluated against state data. True if results are not empty"
Original file line number Diff line number Diff line change 4
4
"javaInterfaces" : [" io.serverlessworkflow.api.interfaces.SwitchCondition" ],
5
5
"description" : " Switch state data event condition" ,
6
6
"properties" : {
7
+ "name" : {
8
+ "type" : " string" ,
9
+ "description" : " Event condition name"
10
+ },
7
11
"eventRef" : {
8
12
"type" : " string" ,
9
13
"description" : " References an unique event name in the defined workflow events"
Original file line number Diff line number Diff line change 52
52
"type" : " switch" ,
53
53
"dataConditions" : [
54
54
{
55
+ "name" : " Approved" ,
55
56
"condition" : " {{ $.creditCheck[?(@.decision == 'Approved')] }}" ,
56
57
"transition" : {
57
58
"nextState" : " StartApplication"
58
59
}
59
60
},
60
61
{
62
+ "name" : " Denied" ,
61
63
"condition" : " {{ $.creditCheck[?(@.decision == 'Denied')] }}" ,
62
64
"transition" : {
63
65
"nextState" : " RejectApplication"
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ states:
32
32
- name : EvaluateDecision
33
33
type : switch
34
34
dataConditions :
35
- - condition : " {{ $.creditCheck[?(@.decision == 'Approved')] }}"
35
+ - name : Approved
36
+ condition : " {{ $.creditCheck[?(@.decision == 'Approved')] }}"
36
37
transition :
37
38
nextState : StartApplication
38
- - condition : " {{ $.creditCheck[?(@.decision == 'Denied')] }}"
39
+ - name : Denied
40
+ condition : " {{ $.creditCheck[?(@.decision == 'Denied')] }}"
39
41
transition :
40
42
nextState : RejectApplication
41
43
default :
You can’t perform that action at this time.
0 commit comments