Preparation
Before you start, create a YiDA app.Step 1: Create a Workflow Form from a Template
- Sign in to the YiDA workbench. Select the target app and go to the Page Management page.
- Click the + icon in the upper-left corner and select Create workflow form.
- Select Create from template, choose the Leave Request template, and click Use.
Step 2: Design the Leave Flow
On the form design page, click Workflow design at the top
Click Create new flow in the upper-right corner
Hover over the connection line at the approval node to display the + button, then click + and select the Approver node
Step 4
Hover over the next-level approval node, click Delete in the upper-right corner of the node to remove it
Hover below the Manager approval node, click +, and select Branch node > Conditional branch
Select Condition 1, rename it to Leave over 30 days, and set the condition rule to Leave days greater than or equal to 30
Under the Leave over 30 days branch, add an approver node and set the approver to Director
Step 3: Test the Approval Flow
After configuring the flow, follow the steps below to test it.Click Test in the upper-right corner
Submit a leave request within 30 days, then click Start test
- Submit a leave request for more than 30 days, then click Start test.
Step 4: Publish the Approval Flow
After the flow design is complete and the test passes, return to the workflow design page and click Publish flow in the upper-right corner to enable the flow. You have now finished building the leave approval process.Notes
- The End node cannot be deleted.
- An approval process must contain at least one approval or execution node; otherwise, it will fail to save.