Purpose of the document

In this document we would be discussing the “Manager Role Approval” Workflow, which is one of the out of the box workflow provided by IDHub.

Manager Role Approval Workflow Description

In this section we would describe the steps and flows which is taken by IDHub in executing the Manager Role Approval workflow.

  • The first step is a “State Node”. A state is one of the several states/statuses that is there in IDHub. So this basically represents a request state in the workflow. This node does not perform any function. A flow is stopped when this node is reached. When a request is submitted, then by default the state is “Request Submitted”. So the first step in this workflow is “Request Submitted” state node.

  • In the next step, we have the action node. Action note denotes a task action or a workflow action. It is present immediately after the state node and is used to trigger a flow. In our case, the action node would be “Start”.

  • After the 2nd step, we have the Operation node. This node is used to perform small atomic operation required to complete a transition. Operation nodes are custom developed nodes to perform a particular function.

    • In our case the 3rd step is Manager Approval Task operation node. This means that the request is submitted to the Manager of the beneficiary user.
      Next we have the state node, and the state of the request workflow is Waiting for Manager Approval.

At this point, manager of the beneficiary user would take a decision, whether he would like to either Reject or Approve the task. Depending on that, system would take the flow accordingly. Below we are describing the flow steps in each case.

Flow Steps in case of Rejection of task by the manager of the beneficiary user.

  • In this case, we have the Manager Reject action node, which denotes that the task has been rejected by the manager.

  • Then the request is deemed completed and we have the state node, with state being ‘request completed

Flow Steps in case of Approval of task by the manager of the beneficiary user.

  • In this case we have the Manager Approve action node, which denotes that the task has been approved by the manager.

  • After that we have the Complete Approval operation node. This is a JSON object which completes the approval. Next go to complete request operation node. So then the request is deemed completed and we have the state node, with state being ‘request completed