Defining task flows in a case template
As a case business analyst, you can define a task flow for a case template to specify the required tasks and define the order in which they must be executed. When designing a task flow, you can add tasks, define their execution order, and add conditions for executing tasks. When defining conditions for executing the tasks, you can use dynamic fields and case data fields. While working on a case, a case agent might need to add additional tasks to the task flow. For information about how to work with tasks in a case, see Updating-tasks-and-tracking-progress.
Before you begin
Ensure that you create a case template to associate a task flow to it, and also create a task template to include the tasks in the task flow. For information about creating case templates and task templates, see Creating-case-templates-and-task-templates.
To define a task flow
- Log in to BMC Helix Business Workflows.
- Click My Application Settings
.
The Settings page opens in a new browser tab. - Select Case Management > Case Templates.
- (Version 20.08.01) From the template details page, from the Line of Business list, select the line of business for which you want to update a case template.
- Click the case template in which you want to add a task flow.
- On the Case Templates page, on the Tasks tab, click Task flow.
The Task flow designer is displayed. - From Palette, drag the any of the following element to the canvas:
- Create Task—Use this element to create a task in a case by using the defined task template.
- Create Task Without Template—Use this element to create a task in a case without using a task template.
- In the Element properties pane, enter values in the required fields such as Label.
In the INPUT MAP section, perform the following steps based on the element you use:
Element
Field
Description
Create Task
Task Summary
By default, this field is populated with the task summary details of the task template that you select. You can modify the task summary to specify the details in context to a particular case. To modify the task summary, perform the following steps:
- Click Click to build an expression.
- Enter the description of the task.
- Click Save.
Case ID
This field is automatically populated with the case ID variable.
Task Template ID
- Click Select Template.
- (Version 20.08.01) From the available list of active task templates in the line of business, select the desired task template for the task you want to add in the task flow.
You can add all types of tasks in a task flow, such as manual tasks, automated tasks, and external tasks. - (Version 20.08) From the available list of active task templates, select the desired task template for the task you want to add in the task flow.
You can add all types of tasks in a task flow, such as manual tasks, automated tasks, and external tasks.
- Click Save.
Create Task Without Template
Case ID
This field is automatically populated with the case ID variable.
Task Summary
Perform the following steps:
- Click Click to build an expression.
- Enter the description of the task.
- Click Save.
Dynamic Fields
Perform the following steps:
- Click Click to build an expression.
- Add the dynamic fields.
- Click Save.
(Version 20.08.01)
Line of BusinessThis field is automatically populated with the line of business value of the case template.
Assignment Selection Mode
Select one of the following modes to specify the new assignee:
- View—Displays the Assignment view, which enables you to select an assignee based on a selected combination of company, business unit, and department.
- Expression—Displays the Expression Builder, which enables you to specify an expression to select a support group and an assignee.
Assignee/Assignee Group Name
Perform the following actions based on your assignment selection mode:
- If your assignment selection mode is View, click Change Assignment; specify the support group or the case agent to whom you want to assign a case, task, or knowledge article; and click Assign.
- If your assignment selection mode is Expression, in the Edit Expression window, enter the expressions to specify the support group and agent to whom you want to assign a case, task, or knowledge article. Then, click OK.
As per your requirements, add tasks in the task flow by using the Create Task element, define parallel execution of tasks by using the Parallel element, and define conditional execution of tasks by using the Exclusive element.
The following table describes how to add tasks in a task flow based on the type of task execution:Type of task execution
Elements to use
Example
Sequential
Add Create Task elements one after the other, based on the successive dependency of tasks.
Parallel
Add Create Task elements and a Parallel elements to define the concurrency of tasks.
Conditional
Add Exclusive element to add conditions for task execution.
To add a condition, perform the following steps:- Select the Exclusive element and drag the sequence flow element (arrow) and connect to the element that defines the default path.
- Select the Exclusive element and drag the sequence flow element and connect to the element that defines a path when the condition is true.
- In the Properties pane, click Click to build an expression.
- In the Edit Expression window, specify the condition by using dynamic fields and case data fields, and click OK.
- Click Save.
To use a case template to create cases, you must change the status of the template to Active.
Example: Conditional triggering of a task
Consider the following scenario:
Hannah is a case business analyst in Calbro Services. She wants to create a task flow in a case template for onboarding an employee that consists of a condition for performing a legal review of the employee contract. Hannah wants to add the following tasks in the task flow:
- Verify employee documents
- Add a new user
- Conduct IT induction
- Create a contract
- Perform legal review
She must also add a condition before the task Perform legal review to determine if a standard contract or a custom contract is created for the employee. So that based on the condition, if the contract is a custom contract, a legal review is done.
To create the task flow, Hannah creates a case template and a task flow as shown in the following figures:
The following table explains the elements in the task flow:
Element | Properties |
---|---|
Create Task —Verify employee documents | |
Create Task—Add a new user | |
Create Task—Conduct IT induction | |
Create Task—Create a contract | |
Exclusive—Condition to check if the contract is standard | |
Create Task—Perform legal review |
When Hannah sets the status of the case template to Active, the task flow is ready to use. A case agent can create cases by using the case template and view the task flow.
Example: Defining a task flow to create multiple tasks by using a dynamic field value
Hannah is a case business analyst in Calbro Services. She wants to create a task flow in a case template for providing laptop peripherals. Hannah wants to include the following tasks in the task flow:
- Check laptop details
- Create a report
- Send a notification to the requester
The case template consists of a dynamic field Devices to receive requester response about the required peripherals. The dynamic field consists of a list of peripherals that are comma separated values. Hannah wants to create additional separate tasks for each peripheral in the list. If the dynamic field value is mouse, headphones, and keyboard, Hannah wants to create the following tasks:
- Allocate a mouse
- Allocate a headphone
- Allocate a keyboard
Hannah also wants to add these tasks in parallel so that these tasks are processed concurrently at runtime. To create these multiple tasks, Hannah creates an automated task and then creates a process for the automated task as shown in the following figure. She also adds the Devices dynamic field to the automated task template.
The following table explains the elements in the process:
Element | Properties |
---|---|
Exclusive element condition | This condition checks for the value of dynamic field. If the field value is blank, the sub process is not called. |
Get Records By Query—Get current automated task registry | |
Compute Value—Compute Device List | This element converts the comma separated device values to a list and maps the output to the Device list local variable input. |
Sub-process | The sub-process is runs in a loop for number of times based on the Device List input. As the Device List contains 3 devices, the sub-process runs for 3 times. |
Elements in the sub-process | |
Call Activity—Call process to create adhoc tasks | This element calls the process for adding tasks. The values of the element INPUT MAP fields such as Task Type and Task Execution Status are fixed. The values for the following fields are required:
|
Get Records By Query—Get every adhoc task registry | These properties are used to add the tasks in parallel. |
Update Record—Update task registry sequence to parallel | These properties are used to add the tasks in parallel. |
The process for the automated task calls the following process for adding tasks:
To create this process, Hannah copies the out-of-the-box com.bmc.dsm.task-lib:Task - Save Adhoc Task process in the Task Management Service library. She sets the scope of the copied process to Public so that the Call Activity element in the process for automated task template can use this process.
Hannah then creates the task flow and adds the automated task in the task flow as shown in the following figure:
The following table explains the elements in the task flow:
Element | Properties |
---|---|
Create Task—Check laptop details | |
Create Task—Create adhoc tasks based on dynamic field | |
Create Task—Create report | |
Create Task—Send notification to requester |
When Hannah sets the status of the case template to Active, the task flow is ready to use. When a case agent creates a case by using the case template, the case includes the main tasks that are displayed on the Tasks tab of the case. When the automated task in the case is completed, the tasks based on the dynamic field value in addition to the main tasks are displayed on the Tasks tab as shown in the following figures:
Related topics
Updating-tasks-and-tracking-progressProcess designer elements