Configure activities for the case definition

Configure the activities for the Incident case.

Set Case Ref

This activity uses an expression to create a case reference from the data passed to the case on start-up.

While kept simple within this tutorial, this activity can be as complex as interacting with third-party systems if required.

In this case, you add the current day to the postcode.

The case reference must be unique; otherwise, an error is displayed as the reference is used against the case processing.

  1. On the Type list, select Expression.
  2. Under Configuration, click to add a new expression.
  3. On the Target variable list, select the CaseRef process variable.
  4. In the Expression box, create an expression as shown below.
    1. Right-click and select the Postcode process variable.
    2. Enter +.
    3. Right-click and select Functions.
    4. Click Date and select Day(date).
    5. Place the cursor inside the ( ) next to Day, and then right-click and select Functions.
    6. Click Date and select Now(). The case reference is set as the postcode plus the day of the week.
      Expression dialog box
    7. Click Add.
  5. Set the initial state of the case.
    1. Click the Advanced tab on the activity properties.
    2. On the State list, select the New process state.
  6. Set the activity to fire the metric related to the cases being opened.
    1. Click the After processing tab on the activity properties.
    2. Click for Business events.
    3. On the Event list, select Cases Raised.
    4. Map the Customer Username process variable to the Customer User Name field.
      Fire business event dialog box
    5. Click Add. This event fires the case-raised metric that you will be monitoring.

Update Case Ref

Use this activity to set the case reference of the running case to the value created in the Set Case Ref node. It uses a TotalAgility .Net SDK to update the case with the newly created case reference.

  1. On the Type list, select .Net.
  2. Under Configuration, click Configure.
  3. On the Assembly file path list, select TotalAgility.Sdk.Dll (available in local.Net > System category).
  4. On the Class list, select TotalAgility.Sdk.CaseService and on the Method list, select UpdateCaseReference.
  5. Map the parameters as shown below.

    Parameter

    Variable

    Description

    sessionid

    SPP_SYSTEM_SESSION_ID server variable

    This variable is available under the System category and contains the system session ID that permits SDK calls without logging in.

    caseIdentity>CaseId

    JOBID process variable

    This variable uniquely identifies the running job.

    newCaseReference

    CaseRef process variable

    This variable updates the running job to the case reference passed.

    Configure .Net activity dialog box
  6. Click OK.

    Next, configure the Update Role and Triage activities.

    Both activities originate from the Update Case Ref activity; they become pending in parallel, and you can execute them in parallel.

Update Role

Use the update role activity to add the occupant's username (entered on case creation) to the floating role created as part of the case; the occupant can participate in the process and take activities when assigned.

  1. On the Type list, select .Net.
  2. Under Configuration, click Configure.
  3. On the Assembly file path list, select TotalAgility.Sdk.Dll (available in Local.Net > System category).
  4. On the Class list, select TotalAgility.Sdk.CaseService and on the Method list, select AddCaseRoleMember.
  5. Map the parameters as shown below.

    Parameter

    Variable

    Description

    sessionid

    SPP_SYSTEM_SESSION_ID server variable

    This variable contains the system session ID that permits SDK calls without logging in.

    caseIdentity>CaseId

    JobID process variable

    This variable uniquely identifies the running job.

    roleIdentity>Name

    Enter the static value as Occupant

    Name of the floating role created earlier.

    resourceIdentity>Name

    Customer Username process variable

    The resourceIdentifity parameter uses the name and maps the Customer Username created earlier with a type of 0 (resource).

    resourceIdentity>ResourceType

    0

    Resource type.

    Configure .Net activity dialog box
  6. Click OK.

    For more information on .Net APIs referenced in this tutorial, see the TotalAgility SDK documentation.

Triage

The Triage activity is an ordinary activity (manual task) where the Customer Service Team reviews the incident notes and contacts the occupant if needed. The team then decides how to proceed, by either raising issues that need resolution or setting the criticality of the case ensuring that everything is moving forward as designed.

  1. On the Type list, select Ordinary activity.
  2. For Input variables and Output variables, click Add and select the following process variables in the given sequence.
    Input variables Output variables
    • CaseRef

    • First Line of Address

    • PostCode

    • Surname

    • Issue Description

    • Severity

    • Type

    Triage activity input and output variables
  3. Assign the resource to the Customer Services group created earlier (see Create groups).
    1. Click the Resource assignment tab.
    2. On the Type list, select Resourcing.
    3. Click Add.
      The Add resources dialog box appears.
    4. On the Groups tab, under the Incident Management category, select the Customer Services group.
    5. Click Done.
      Triage activity Resource assignment tab
  4. Use the Triage milestone as the due date for this activity.
    1. Click the Time and cost tab.
    2. On the Target due date list, select Milestone, and then select the Triage milestone from the list.
      Triage activity Time and cost tab
  5. To automatically set the Triage milestone as being met when the Triage task is completed, do the following:
    1. Click the After processing tab.
    2. On the Set milestone list, select the Triage milestone.
  6. Associate the Triage Case form with this activity so that you can start the associated jobs from this activity.

    The TriageCase form was imported as a part of the initial setup. See Import forms.

    1. Click the Configuration tab on the activity properties.
    2. Under User interface, on the Associated file path list, select Triage Case form.

    Next, configure the Internal Review and Resolved activities. Both these activities originate from the Triage activity.

Internal Review

As some incidents may have multiple issues and take time to resolve, add an activity for internal review to monitor progress and ensure that everything is progressing as it should. If the case is resolved before taking this activity, then this activity is removed automatically.

  1. Click the Configuration tab on the activity properties.
    1. On the Type list, select Ordinary activity.
    2. For Input variables, click Add and select the following process variables in the given sequence.
      • CaseRef

      • Surname

      • First Line of Address

      • PostCode

      • Contact Number

      • Issue Description

      • Severity

      • Type

  2. Assign the activity to the Customer Services group.
    1. Click the Resource assignment tab.
    2. On the Type list, select Resourcing.
    3. For Resources, click Add.
    4. On the Group tab, under the Incident Management category, select the Customer Services group.
    5. Click Done.
  3. On the Advanced tab, set the State to Triaged.

Resolved

The Resolved activity only becomes active when all the jobs created in the Triage activity are completed. These jobs run independently but notify the case when they are complete. The case only allows the Resolve step to be assigned to a work queue when all jobs are complete.

  1. Click the Configuration tab on the activity properties.
    1. Select Ordinary activity as the Type.
    2. For Input variables, click Add and select the following process variables in the given sequence.
      • CaseRef

      • Contact Number

      • First Line of Address

      • Issue Description

      • Issue Raised

      • PostCode

      • Severity

      • Surname

      • Type

  2. Assign the activity to the Customer Services group.
    1. Click the Resource assignment tab.
    2. On the Type list, select Resourcing.
    3. For Resources, click Add.
    4. On the Group tab, under the Incident Management category, select the Customer Services group.
    5. Click Done.
  3. On the Time and cost tab, for Target due date, select Milestone, and then select the Resolved milestone.
    Resloved activity Time and cost tab
  4. Set up the precondition:

    A precondition allows the case to be synchronized with other processes or external systems that might be running. Using the process event created earlier (see Set up process events called IssuesAddressed), you indicate how many events are completed (regardless of where) before the activity becomes pending and appears on someone’s work queue.

    1. Click the Dependents tab to create a precondition where the IssuesAddressed process event is greater than or equal to the Issues Raised process variable (which will be incremented by each associated job created in the Triage task).
    2. Right-click the rule editor, click Process event, and select IssuesAddressed.
      Resolved activity Dependents tab
    3. Enter >=.
    4. Right-click the rule editor, click Process variable, and select Issues Raised.

Close

Assign the Close activity to the occupant who raised the case. This is to ensure that everything is done to their satisfaction. This activity highlights the use of external users and floating roles defined earlier. You had previously added the occupant username to the occupant floating role. Now you assign this activity to a role so that each instance of the case can be fulfilled by a different person.

  1. Click the Configuration tab on the activity properties.
    1. Select Ordinary activity as the Type.
    2. For Input variables and Output variables, click Add and select the following process variables in the given sequence.
      Input variables Output variables

      • CaseRef

      • Contact Number

      • Customer Username

      • First Line of Address

      • Issue Description

      • PostCode

      • Surname

      Satisfied
  2. Assign the activity to the floating role you defined earlier.
    1. Click the Resource assignment tab.
    2. On the Type list, select Resourcing.
    3. For Resources, click Add.
    4. On the Process role tab, under the Incident Management category, select the Occupant process role.
    5. Click Done.
  3. On the Time and cost tab, for Target due date, select Milestone, and then select the Close milestone.
  4. On the Advanced tab, set the State to Resolved.
  5. On the After processing tab, set the Set milestone to Close.

Satisfied

This decision indicates the flow of the case based on whether the occupant is satisfied with the resolution of the case. If the occupant is satisfied with the resolution of the case, then the case is completed. Otherwise, the case is followed up by the Incident Management team.

  1. Click the Configuration tab of the decision, right-click the rule editor, and select the Satisfied process variable.
  2. Under Outcome, on the True path list, select End.
    Satisfied activity Configuration tab

    Configure the second path from the decision, that is, the path the flow will follow if the occupant is not satisfied.

Follow up

The Follow up activity lets the Incident Management team review the case if the occupant is not satisfied with the resolution. This activity uses the fixed role defined within the case.

  1. Click the Configuration tab of the activity properties.
  2. On the Type list, select Ordinary activity.
  3. For Input variables, click Add and select the following process variables in the given sequence.
    • CaseRef

    • Contact Number

    • Customer Username

    • First Line of Address

    • Issue Description

    • PostCode

    • Satisfied

  4. Assign the activity to the process role, Incident Management Team.
    1. Click the Resource assignment tab.
    2. On the Type list, select Resourcing.
    3. For Resources, click Add.
    4. On the Process role tab, under the Incident Management category, select Incident Management Team process role.
    5. Click Done.