Created
March 25, 2020 14:28
-
-
Save marcus-nl/c0c0f75e3d1a5c028bc8ed5a1c09dde0 to your computer and use it in GitHub Desktop.
Leave of Absence process structure
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
{ | |
"key": "leave_of_absence", | |
"id": "leave_of_absence", | |
"name": "Leave of absence", | |
"graph": { | |
"nodes": [{ | |
"id": "N9", | |
"type": "serviceTask", | |
"name": "Behavior4", | |
"label": "Publish LOB_REQUEST\nCreate MAIL\nUpdate MAIL.body\nUpdate MAIL.subject\nUpdate MAIL.to_address\nPublish MAIL" | |
}, { | |
"id": "N4", | |
"type": "exclusiveGateway", | |
"label": "If \"manual decision needed\"" | |
}, { | |
"id": "N10", | |
"type": "endEvent" | |
}, { | |
"id": "N3", | |
"type": "serviceTask", | |
"name": "Behavior1", | |
"label": "Create LOB_REQUEST\nUpdate LOB_REQUEST.end\nUpdate LOB_REQUEST.REQUESTOR\nUpdate LOB_REQUEST.start\nUpdate LOB_REQUEST.type\nEval \"manual decision needed\"" | |
}, { | |
"id": "N1", | |
"type": "startEvent" | |
}, { | |
"id": "N7", | |
"type": "serviceTask", | |
"name": "Behavior3", | |
"label": "Update LOB_REQUEST.decision\nUpdate LOB_REQUEST.reason" | |
}, { | |
"id": "N6", | |
"type": "serviceTask", | |
"name": "Behavior2", | |
"label": "Update LOB_REQUEST.decision\nUpdate LOB_REQUEST.reason" | |
}, { | |
"id": "N5", | |
"type": "userTask", | |
"name": "Task2", | |
"label": "From MANAGER: LOB_REQUEST.{decision,reason}", | |
"from": "MANAGER", | |
"form": { | |
"items": [{ | |
"input": { | |
"name": "decision", | |
"label": "Decision", | |
"chosenFrom": null, | |
"default": "\"approved\"" | |
} | |
}, { | |
"input": { | |
"name": "reason", | |
"label": "Reason", | |
"chosenFrom": null, | |
"default": null | |
} | |
}] | |
} | |
}, { | |
"id": "N2", | |
"type": "userTask", | |
"name": "Task1", | |
"label": "From EMPLOYEE: LOB_REQUEST.{end,start,type}", | |
"from": "EMPLOYEE", | |
"form": { | |
"items": [{ | |
"input": { | |
"name": "end", | |
"label": "End", | |
"chosenFrom": null, | |
"default": null | |
} | |
}, { | |
"input": { | |
"name": "start", | |
"label": "Start", | |
"chosenFrom": null, | |
"default": null | |
} | |
}, { | |
"input": { | |
"name": "type", | |
"label": "Type", | |
"chosenFrom": null, | |
"default": "\"holiday\"" | |
} | |
}] | |
} | |
}, { | |
"id": "N8", | |
"type": "exclusiveGateway", | |
"label": null | |
}], | |
"edges": [{ | |
"id": "N3_N4", | |
"type": "sequenceFlow", | |
"sourceRef": "N3", | |
"targetRef": "N4", | |
"condition": null | |
}, { | |
"id": "N8_N9", | |
"type": "sequenceFlow", | |
"sourceRef": "N8", | |
"targetRef": "N9", | |
"condition": null | |
}, { | |
"id": "N2_N3", | |
"type": "sequenceFlow", | |
"sourceRef": "N2", | |
"targetRef": "N3", | |
"condition": null | |
}, { | |
"id": "N1_N2", | |
"type": "sequenceFlow", | |
"sourceRef": "N1", | |
"targetRef": "N2", | |
"condition": null | |
}, { | |
"id": "N6_N8", | |
"type": "sequenceFlow", | |
"sourceRef": "N6", | |
"targetRef": "N8", | |
"condition": null | |
}, { | |
"id": "N9_N10", | |
"type": "sequenceFlow", | |
"sourceRef": "N9", | |
"targetRef": "N10", | |
"condition": null | |
}, { | |
"id": "N4_N5", | |
"type": "sequenceFlow", | |
"sourceRef": "N4", | |
"targetRef": "N5", | |
"condition": "true" | |
}, { | |
"id": "N7_N8", | |
"type": "sequenceFlow", | |
"sourceRef": "N7", | |
"targetRef": "N8", | |
"condition": null | |
}, { | |
"id": "N5_N6", | |
"type": "sequenceFlow", | |
"sourceRef": "N5", | |
"targetRef": "N6", | |
"condition": null | |
}, { | |
"id": "N4_N7", | |
"type": "sequenceFlow", | |
"sourceRef": "N4", | |
"targetRef": "N7", | |
"condition": "false" | |
}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment