Creating an approval process
Approval process defines logic, workflows, and specific steps required for the approval request to get approved. It facilitates the end-to-end execution of events from the time a user makes a request until the request is addressed—either approved, rejected, or cancelled. It defines workflows and logic required to approve your request for a particular record. The workflow can have steps defined to generate the approval flows, approve, reject, reassign the request, or cancel it. You can cancel user-driven approval requests that are in pending state. To generate approval flows for your approval request, you must first define the approval process. Typically, for an approval process, a request record is the input and an approval status is the output. An approval process, when triggered, generates signatures, handling all notifications and approval responses.
The following image illustrates the end-to-end process of creating an approval process and approval flows:
Perform the following tasks to create an approval process, to define variables for an approval process that does not require user intervention, and to chain approval processes.
Create a self-approval process for an approval request which does not require user intervention.
To configure process variables for a self-approval process
Follow the same steps for creating self-approval process, except process variables and flow group.
- To add process variables, in the Variables section, click Add/Remove Variables and enter Input/Output Variables:
Input Variables—The input process variables are usually record instances for which the approval process is being defined.
Field
Details
Name
Enter a name for your input variable.
Variable Type
Select Input/Output Variable > Input.
Variable ID
Enter 57000. Since the self approval flow is run as a sub process within the approval process, the variable IDs ensures that the correct information is passed to and from the self approval flow and the approval process.
Data Type
Select Record.
Record Name
Select record instance for which you want to create the approval process.
Output Variables—The output process variables define outcome of the approval process, for example status of the request. These are usually text fields.
Field
Details
Variable Type
Select Input/Output Variable > Output
Variable ID
Enter 57120. Since the self approval flow is run as a sub process within the approval process, the variable IDs ensures that the correct information is passed to and from the self approval flow and the approval process.
Data Type
Select Text.
To configure process variables for chaining
When you chain a process, another process is triggered based on the outcome of the first process. To configure chaining in an approval process, follow the same steps for creating an approval process, except the process variables. You must define more than one input process variables.
- To add process variables, in the Variables section, click Add/Remove Variables and enter Input/Output Variables:
Input Variables—The input process variables are usually record instances for which the approval process is being defined.
Field
Details
Name
Enter a name for your input variable.
Variable Type
Select Input/Output Variable > Input.
Variable ID
Enter 57000.
Data Type
Select Record.
Record Name
Select record instance for which you want to create the approval process.
Add another input variable with the following parameters:
Field
Details
Name
Enter a name for your input variable.
Variable Type
Select Input/Output Variable > Input.
Variable ID
Enter 57020.
Data Type
Select Text.
Output Variables—The output process variables define outcome of the approval process, for example status of the request. These are usually text fields.
Field
Details
Name
Enter a name for your input variable.
Variable Type
Select Input/Output Variable > Output
Variable ID
Enter 57030.
Data Type
Select Text.
To cancel an approval request
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application or a bundle where you have created approval processes and for which you want to initiate a cancellation process.
- In the application, click the Processes tab, and select New.
- To configure the process properties such as the name, description, and variables associated with the process, on the Properties panel, click the
icon and perform the following actions:
- Enter a Name and Description for the cancellation service task.
- To add process variables, in the Variables section, click Add/Remove Variables and enter Input/Output Variables:
Input Variables—The cancellation process requires you to input two process variables—Record Definition and Record Display ID:
Field
Details
Name
Enter a name for your input variable.
Variable Type
Select Input/Output Variable > Input.
Data Type
Select Text.
Add another input variable with the following parameters:
Field
Details
Name
Enter a name for your input variable.
Variable Type
Select Input/Output Variable > Input.
Data Type
Select Text.
- To configure the Cancel Approvals element properties, perform the following actions and click Save:
Select the Cancel Approvals service task element as shown in the following image, and then click the
icon.
In Input Map, configure the fields as shown in the following image, and click Save:
- Record Definition: select the first process input variable as shown in the following image:
- Record Display ID: select the second process input variable as shown in the following image:
- Record Definition: select the first process input variable as shown in the following image:
Where to go from here
Action | Reference |
---|---|
Register the record definitions for which you want to create the approval flows. |
Related topic