Created
September 29, 2020 14:53
-
-
Save tsurdilo/e629ef8713ca8f27873df70093d050c9 to your computer and use it in GitHub Desktop.
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
id: applicantrequest | |
version: '1.0' | |
name: Applicant Request Decision Workflow | |
description: Determine if applicant request is valid | |
functions: features/applicantrequestfunctions.json | |
states: | |
- name: CheckApplication | |
type: switch | |
start: | |
kind: default | |
dataConditions: | |
- condition: "{{ $.applicants[?(@.age >= 18)] }}" | |
transition: | |
nextState: StartApplication | |
- condition: "{{ $.applicants[?(@.age < 18)] }}" | |
transition: | |
nextState: RejectApplication | |
default: | |
transition: | |
nextState: RejectApplication | |
- name: StartApplication | |
type: subflow | |
workflowId: startApplicationWorkflowId | |
end: | |
kind: default | |
- name: RejectApplication | |
type: operation | |
actionMode: sequential | |
actions: | |
- functionRef: | |
refName: sendRejectionEmailFunction | |
parameters: | |
applicant: "{{ $.applicant }}" | |
end: | |
kind: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment