Create a completion process

A completion process is used when a case is completed. You design a process, for example, to archive documents, remove data, ensure payments are processed, and manage related details.

This is an optional setting on the case definition.

For now, the process will only pass through a synchronous process. Later in the tutorial, it is used to show how the completion process can be linked to the case definition. View "Case completion" under the General tab of the Incident Case.

Create a completion process: Close Work Orders

  1. On the TotalAgility Advanced Studio Home page, navigate to Workflow > Business processes and click New.

    The new process opens on a new browser tab. The Design tab of the process is displayed by default.

  2. In the Name box, enter Close Work Orders as the process name.
  3. Add an activity.
    Close work order activity
  4. In the Name box, enter Close Work Orders as the activity name.
  5. On the Type list, select Synchronization.
  6. Add an End node to the Synchronization node.
  7. Set up CaseRef and JobID initialization variables within the process map.
    1. On the modeling bar, click the Variables tab, and then click New.

      The New variable dialog box appears.

    2. In the Name box, enter CaseRef as the name of the variable.
    3. Select the Initialization check box, on the Type list, select String, and click Add another.
    4. In the Name box, enter JobID as the name of the variable.
    5. Select the Initialization check box, on the Type list, select String, and click Add and close.

    When the case definition closes, it passes the JobID and CaseRef parameters to the completion process. These values are used to interrogate the case for any of the applicable data.

  8. Set the order of initialization.
    1. Click Initialization order on the Variables tab.

      The Initialization variables dialog box appears.

    2. Move the JobID above CaseRef using the arrow.
    3. Click OK.
  9. Release the map.