-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from spolti/addKey
Key property is missing in the Workflow
- Loading branch information
Showing
10 changed files
with
276 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
api/src/test/resources/features/applicantrequest-with-id-and-key.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"id": "applicant-with-key-and-id", | ||
"key": "applicant-key-request", | ||
"version": "1.0", | ||
"specVersion": "0.8", | ||
"name": "Applicant Request Decision Workflow", | ||
"description": "Determine if applicant request is valid", | ||
"start": "CheckApplication", | ||
"functions": [ | ||
{ | ||
"name": "sendRejectionEmailFunction", | ||
"operation": "http://myapis.org/applicationapi.json#emailRejection" | ||
} | ||
], | ||
"states":[ | ||
{ | ||
"name":"CheckApplication", | ||
"type":"switch", | ||
"dataConditions": [ | ||
{ | ||
"condition": "${ .applicants | .age >= 18 }", | ||
"transition": "StartApplication" | ||
}, | ||
{ | ||
"condition": "${ .applicants | .age < 18 }", | ||
"transition": "RejectApplication" | ||
} | ||
], | ||
"defaultCondition": { | ||
"transition": "RejectApplication" | ||
} | ||
}, | ||
{ | ||
"name": "StartApplication", | ||
"type": "operation", | ||
"actions": [ | ||
{ | ||
"subFlowRef": "startApplicationWorkflowId" | ||
} | ||
], | ||
"end": true | ||
}, | ||
{ | ||
"name":"RejectApplication", | ||
"type":"operation", | ||
"actionMode":"sequential", | ||
"actions":[ | ||
{ | ||
"functionRef": { | ||
"refName": "sendRejectionEmailFunction", | ||
"arguments": { | ||
"applicant": "${ .applicant }" | ||
} | ||
} | ||
} | ||
], | ||
"end": true | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
api/src/test/resources/features/applicantrequest-with-id-and-key.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
id: applicant-with-key-and-id | ||
key: applicant-key-request | ||
version: '1.0' | ||
specVersion: '0.8' | ||
name: Applicant Request Decision Workflow | ||
description: Determine if applicant request is valid | ||
start: CheckApplication | ||
functions: | ||
- name: sendRejectionEmailFunction | ||
operation: http://myapis.org/applicationapi.json#emailRejection | ||
states: | ||
- name: CheckApplication | ||
type: switch | ||
dataConditions: | ||
- condition: "${ .applicants | .age >= 18 }" | ||
transition: StartApplication | ||
- condition: "${ .applicants | .age < 18 }" | ||
transition: RejectApplication | ||
defaultCondition: | ||
transition: RejectApplication | ||
- name: StartApplication | ||
type: operation | ||
actions: | ||
- subFlowRef: startApplicationWorkflowId | ||
end: true | ||
- name: RejectApplication | ||
type: operation | ||
actionMode: sequential | ||
actions: | ||
- functionRef: | ||
refName: sendRejectionEmailFunction | ||
arguments: | ||
applicant: "${ .applicant }" | ||
end: true |
59 changes: 59 additions & 0 deletions
59
api/src/test/resources/features/applicantrequest-with-key.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"key": "applicant-key-request", | ||
"version": "1.0", | ||
"specVersion": "0.8", | ||
"name": "Applicant Request Decision Workflow", | ||
"description": "Determine if applicant request is valid", | ||
"start": "CheckApplication", | ||
"functions": [ | ||
{ | ||
"name": "sendRejectionEmailFunction", | ||
"operation": "http://myapis.org/applicationapi.json#emailRejection" | ||
} | ||
], | ||
"states":[ | ||
{ | ||
"name":"CheckApplication", | ||
"type":"switch", | ||
"dataConditions": [ | ||
{ | ||
"condition": "${ .applicants | .age >= 18 }", | ||
"transition": "StartApplication" | ||
}, | ||
{ | ||
"condition": "${ .applicants | .age < 18 }", | ||
"transition": "RejectApplication" | ||
} | ||
], | ||
"defaultCondition": { | ||
"transition": "RejectApplication" | ||
} | ||
}, | ||
{ | ||
"name": "StartApplication", | ||
"type": "operation", | ||
"actions": [ | ||
{ | ||
"subFlowRef": "startApplicationWorkflowId" | ||
} | ||
], | ||
"end": true | ||
}, | ||
{ | ||
"name":"RejectApplication", | ||
"type":"operation", | ||
"actionMode":"sequential", | ||
"actions":[ | ||
{ | ||
"functionRef": { | ||
"refName": "sendRejectionEmailFunction", | ||
"arguments": { | ||
"applicant": "${ .applicant }" | ||
} | ||
} | ||
} | ||
], | ||
"end": true | ||
} | ||
] | ||
} |
33 changes: 33 additions & 0 deletions
33
api/src/test/resources/features/applicantrequest-with-key.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
key: applicant-key-request | ||
version: '1.0' | ||
specVersion: '0.8' | ||
name: Applicant Request Decision Workflow | ||
description: Determine if applicant request is valid | ||
start: CheckApplication | ||
functions: | ||
- name: sendRejectionEmailFunction | ||
operation: http://myapis.org/applicationapi.json#emailRejection | ||
states: | ||
- name: CheckApplication | ||
type: switch | ||
dataConditions: | ||
- condition: "${ .applicants | .age >= 18 }" | ||
transition: StartApplication | ||
- condition: "${ .applicants | .age < 18 }" | ||
transition: RejectApplication | ||
defaultCondition: | ||
transition: RejectApplication | ||
- name: StartApplication | ||
type: operation | ||
actions: | ||
- subFlowRef: startApplicationWorkflowId | ||
end: true | ||
- name: RejectApplication | ||
type: operation | ||
actionMode: sequential | ||
actions: | ||
- functionRef: | ||
refName: sendRejectionEmailFunction | ||
arguments: | ||
applicant: "${ .applicant }" | ||
end: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters