Designing workflows for a repeatable group of questions
Design a workflow that collects answers to a repeatable group of questions in Comma Separated Values (CSV) or an object file format and send the answers for service fulfillment. Elements and actions available in the workflow designer depend on the connectors you have configured.
See a tutorial on how to create a workflow and a repeatable group of questions for a use case where people nominate fellow employees for a spot bonus, at
Using the Repeatable Group of Questions feature
.
See a tutorial on how to create a workflow and a repeatable group of questions for a use case where the HR representative responsible for onboarding requests laptops for four new employees, at
Service fulfillment using a repeatable group of questions with CSV output
.
To design a workflow to create multiple work orders, one for each set of responses to a repeatable group of questions
For a scenario where you need to provide laptops for new employees, design a workflow that uses the responses to a repeatable group of questions and creates multiple work orders for the procurement of laptops for these employees. When an Object output format is used, the workflow creates multiple work orders, one for each laptop requested.
- Log in to the Catalog console and add a new workflow.
- In the Workflow designer, drag and drop the Create Work Order with Identifiers element on to the canvas.
- Create the following three process input variables:
all-instances: Object data type.
From the Document Definition list, select the document definition for a repeatable group of questions.
You configure this document definition in BMC Helix Innovation Studio.- sbcontext (Optional): Service broker context data type
- instance: Object data type, local variable. Represents one instance of answers to the group of questions.
- Add a Sub-Process and configure the following properties:
- Loop Type: Parallel
- Loop Data Input: all-instances (the object type variable you created earlier)
- Input Data Item: instance (the object type local variable you created earlier)
- Add a Create Work Order with Identifiers element inside the Sub-Process.
In the Input Map section for Create Work Order with Identifiers, fill in the following fields:
Input Map parameter Field value Notes Connection ID (required) Remedy Information is available from the service broker context. Company Name Company Information is available from the service broker context. Customer login ID Custom Instance Property User who requires the service. The user must exist in BMC Helix Innovation Suite.
From the Process variables list, select Instance > Custom Property.
- In ${processContext.instance.custom}, replace custom with login.value (where login is an alias). For example,
${processContext.instance.login.value}
.
Note: A JSONPath expression specifies a path to an element in a JSON structure. An
alias
is used in the JSONPath expression to access the answer to a question within an instance of a repeatable group of questions. The local variableinstance
references one set of answers to the repeatable group of questions. Analias
references one of the questions within the group and.value
gives access to the answer to the question. When you create a repeatable group of questions for this workflow in the Question Designer, you map an alias to a question in the repeatable group of questions.Contact login ID (required) Custom Instance Property User who submitted the request. The user must exist in BMC Helix Innovation Suite.
${processContext.instance.custom}—Update custom with contactlogin.value (where login is an alias). For example,
${processContext.instance.login.value}.
Summary Service Name NA Correlation ID Process Correlation ID NA Description Service name
NA
Save the workflow.
Comments
Log in or register to comment.