Start Activity
-
Purpose: This is the entry point of the workflow.
-
Trigger Condition: The workflow begins when the deposit status is "DP".
-
Initial Actions: Initializes the workflow but performs no specific action.
Main Activities
-
Creator Approval
-
Description: The request requires approval from the creator of the deposit request.
-
Responsible Party: The creator (referred to as _CREATOR).
-
Timeout Setting: Waits for a response for up to two days. If no response is received, it retries indefinitely.
-
Possible Outcomes:
-
If the activity status indicates "N" (Not Accepted), the process moves to "Move Status to DE".
-
If the status indicates "Y" (Accepted) or "A" (Approved), the process moves to "Submit Deposit Request".
-
-
Move Status to DE
-
Description: Changes the deposit status back to "DE" if the request is rejected.
-
Execution Details:
-
Utilizes a script to update the database, setting the deposit status column to "DE".
-
The script monitors and handles any errors during execution.
-
-
Responsible Party: Automated activity.
-
Submit Deposit Request
-
Description: Proceeds with submitting the deposit request if it is approved.
-
Execution Details:
-
A script reads the deposit request details and calls the SubmitDeposit function.
-
Logs success or issues in the operation.
-
-
Responsible Party: Automated activity.
-
Not Accepted (Rejected) Handler
-
Description: Manages rejected requests.
-
Responsible Party: Notifies the creator when a request is rejected.
-
Follow-up: Return to previous status or end the process.
Workflow End
End Activity
-
Purpose: This is the final endpoint of the entire workflow.
-
Connected Transitions:
-
From "Move Status to DE".
-
From "Submit Deposit Request".
-
From "Not Accepted (Rejected) Handler".
-
From error handling if issues arise.
-
-
Overall: Marks the conclusion of the workflow process.
Error Handling
-
Error Activity: Handles any errors encountered in the workflow.
-
Recovery: Attempts to retry or log the error and end the workflow.