This documentation supports the 22.1 version of BMC Helix Digital Workplace Basic and BMC Helix Digital Workplace Advanced. Icons distinguish capabilities available only for the Advanced and External license levels. For more information, see License types and features.

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 Open link .

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 Open link .


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.  

  1. Log in to the Catalog console and add a new workflow.
  2. In the Workflow designer, drag and drop the Create Work Order with Identifiers element on to the canvas.
  3. Create the following three process input variables:
    1. 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.

    2. sbcontext (Optional): Service broker context data type 
    3. instance: Object data type, local variable. Represents one instance of answers to the group of questions.
  4. Add a Sub-Process and configure the following properties:
    1. Loop Type: Parallel
    2. Loop Data Input: all-instances (the object type variable you created earlier)
    3. Input Data Item: instance (the object type local variable you created earlier)
  5. Add a Create Work Order with Identifiers element inside the Sub-Process.
  6. In the Input Map section for Create Work Order with Identifiers, fill in the following fields:

    Input Map parameter Field valueNotes
    Connection ID (required)RemedyInformation is available from the service broker context. 
    Company NameCompanyInformation is available from the service broker context.
    Customer login IDCustom Instance Property

    User who requires the service. The user must exist in BMC Helix Innovation Suite.

    1. From the Process variables list, select Instance > Custom Property

    2. 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 variable instance references one set of answers to the repeatable group of questions. An alias 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}. 

    SummaryService NameNA
    Correlation IDProcess Correlation IDNA
    Description

    Service name

    NA

  7. Save the workflow.

Where to go from here

Creating a repeatable group of questions

Was this page helpful? Yes No Submitting... Thank you

Comments