Parallel Gateway
Overview
A parallel gateway is a control structure used to create parallel branches and merge parallel paths in business processes. It ensures that all branch paths execute in parallel rather than sequentially. Parallel gateways are typically used to represent parallel tasks or activities in a workflow.
Flowchart
Example flowchart is as follows:

Data Table
Data table structure is as follows:
| Field | Type | Description |
|---|---|---|
| user | User Selection | Leave Applicant |
| leaveType | List Selection | Leave type, options include: Annual Leave, Sick Leave, Personal Leave, Compensatory Time Off |
| startDate | Date | Leave start time |
| endDate | Date | Leave end time |
| reason | Multi-line Text | Leave reason |
| durations | Function | Number of leave days. Configuration content: DATE(endDate) - DATE(startDate) + 1 |
durations configuration content:
DATE(endDate) - DATE(startDate) + 1Workflow Configuration
The first parallel gateway distributes tasks to both Department Head and HRD simultaneously after supervisor approval. The second parallel gateway waits for both Department Head Approval and HRD Approval to be completed before the workflow ends.
Global Settings
Add startup form for initiator to fill in application information. 
Supervisor Approval Node
Configure handler as supervisor role
Department Head Node
HRD Approval Node
Parallel Gateway
Gateway functionality is determined by gateway type, no configuration needed. Reference Documentation
Effect Diagram
Process Information:














