Designing the Process Template

Use

To be able to make use of the activities you created in the previous steps of the tutorial, you have to assemble them in a process template. You also need to configure the process flow, consolidate parameters and process roles.

Prerequisites

Procedure

Creating the Process and the Main Process Block

  1. Navigate to GP design time and from the contextual navigation panel, choose Create Process.

  2. From the Original Language dropdown box, select English and choose Create.

  3. Provide the following basic data:

    • Name –My First Composite Form Process

    • Description –Process for social benefits distribution

    • Folder – select the folder created for the tutorial, for example, My First Composite Form

  4. Make sure you select Block from the Item dropdown box and choose (New).

  5. In the Block Type Selection dialog box, select Sequential Block and choose Select.

  6. Select the block and enter the following basic data for it:

    • Name –My First Composite Form Block

    • Description –Block for social benefits distribution

  7. Make sure you select Action from the Item dropdown box and choose (Insert).

    Insert the actions in the following order:

    • Generate and Send Form

    • Approve Social Benefits

    • Approval Notification

    • Rejection Notification

Configuring the Process Flow

  1. In the design time of the process, expand the Start of the navigation pathApprove Social Benefits Next navigation step Result StatesEnd of the navigation path node:

    • Select the Document approved result state.

    • From the dropdown box in the Target column, select Approval Notification.

    • Select the Document rejected result state.

    • For its target, select Rejection Notification.

  2. Expand the Start of the navigation pathApproval Notification Next navigation step Result StatesEnd of the navigation path node.

    • Select The notification(s) have been successfully sent result state.

    • From the dropdown box in the Target column, select Terminal.

  3. Repeat step 2 for the Rejection Notification result state.

Consolidating Parameters

  1. Open the Parameters tab page of the block and make the following consolidations:

    • Group automatically the identical structures Interactive Form in actions Generate and Send Form and Approve Social Benefits.

    • Group parameters First Name and Last Name from Approval Notification, Rejection Notification and Start of the navigation pathGenerate and Send Form Next navigation step InteractiveFormFields  Next navigation step Read User Info  Next navigation step User DataEnd of the navigation path.

    • Group the Recipient E-Mail Address parameters in Approval Notification and Rejection Notification with the E-Mail parameter in Start of the navigation pathGenerate and Send Form Next navigation step InteractiveFormFields  Next navigation step Read User Info  Next navigation step User DataEnd of the navigation path.

  2. Open the Parameters tab page of the process and disable the Exposed in Input indicator for all input parameters.

Configuring Roles

  1. Open the Roles tab page of the process and consolidate the existing roles.

    1. Set the role type of all standard roles (Administrator, Overseer, Owner) to Initiator.

    2. Consolidate the custom roles and set their role type to Initiation Defined, so that the approver and the employees can be selected at runtime.

  2. Finally, choose (Save All) and (Activate) .

Result

You can now initiate and test the process in GP runtime.

  1. On the Edit Roles screen of the initiation wizard, enable Mass Initiation.

  2. From the dropdown box, select Employee.

  3. Select the Employee role from the list of roles below and add as many users as you need.