...
As we can see, if an employee does not have the role that is being checked in the workflow, then the workflow will end without any action calls.
Creation Process
Steps for Requester
Initiating a Creation Request
Providing Necessary Information
Steps for Approver
Reviewing the Request
Approving or Rejecting the Request
Update Configurations
Steps for Requester
Initiating an Update Request
Providing Details of Configuration Changes
Steps for Approver
Reviewing the Update Request
Approving or Rejecting the Changes
Operations Approval
Steps for Requester
Requesting Approval for Operations
Providing Context and Details
Steps for Approver
Reviewing the Operation Request
Approving or Rejecting the Operation
Best Practices
...
Tips for Effective Request Submission
...
In this part of Workflow creation, we will review the model with the Requester who makes a request to update currency, and the Approver who will review the request and make a decision. For this flow, there should be a connection between the Requester and Approver employees through task creation in Workspace mode.
Therefore, both the Requester and the Approver should be granted the permission "useWorkspace" and "manageTasks".
This allows the Requester to observe the status of created tasks.
Additionally, the Approver requires additional permission, "acceptCurrency", which enables one to view task details and make decisions. Without this permission, there is no option to review task details and make a decision.
In this example, employee businessanalyst@marionette.dev will act as the Requester, while employee qa@tunex.io will serve as the Approver.
To enable task creation for the Requester and decision-making for the Approver, the workflow model should include "set" and "user decision" nodes.
...
As observed, if the Role checks result in a "false" outcome, the subsequent node will be "set", where there is an opportunity to input the main details for the task title and description.
...
After the "set" node, there will be a "user decision" node with the following main conditions:
Component: Within the framework of workflow construction, the “user decision” element plays a crucial role, allowing the administrator to decide whether to confirm or cancel changes to the data. This element includes a Component attribute, used to visually represent changes to the administrator. Visual representation may include added, modified, created, or deleted data. The Params Key attribute is utilized to pass this data to the Component, enabling the administrator to visually evaluate changes before approving or rejecting them.
Assignee User: The Approver can be assigned by email.
Assignee Role: The Approver can be assigned by role.
Assignee Permission: The Approver can be assigned by permission.
Out port "Approve": This port has a primary color for the button in task details (positive).
Out port "Reject": This port has a danger color for the button in task details (negative).
As observed in this flow, if the Approver makes an "Approve" decision, the next step will be an "action call" with currencies.updateCurrency. Conversely, if the decision is "Reject", the workflow will proceed to the "end" node.
Workflow Process for updating Currency configurations
Steps for Requester. Login to Puppeteer with the credentials businessanalyst@marionette.dev and navigate to the Configurations page. Once there, locate the "Currencies" sub-menu.
Initiating a creation request with updating currency configurations for the "platform payout fee".
...
The requester can view their created open task in the Workspace and monitor its status.
...
Steps for Approver
Reviewing the request: The approver can observe the new task created by the requester and its details. The fields that are requested to be changed are marked with a different background color.
...
If the Approver decides to reject the request, it will be declined without any changes to the Currency configuration. The task status will be set to 'resolved', and it will be removed from the open tasks list for both the Approver and the Requester in the Workspace.
...
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
Troubleshooting
Common Issues and Solutions
Error Messages and Their Meanings
...