Asking a question in a case
You can use the Question shape to collect a single response from a user who is processing a case. By isolating individual questions, you can selectively capture user input without the formal structure of a survey.
-
Add the Question shape to the life cycle of your case.
- On the Workflow tab, click Life cycle.
-
Hover over a process in a stage, and then click + Step > More > Utilities > Question.
Tip: For advanced processes, click Configure process to add the shape to the flow canvas.
- Click Select.
-
Choose a question to ask the user.
- To reuse an existing question:
-
In the Question type list, select Rule.
-
In the Question rule field, press the Down Arrow key and select the name of a question.
Complex questions are excluded from the list because they are supported in surveys only.
-
Review the information in the Question info section to verify that the question text and answer format are relevant to the case.
-
- To create a virtual question:
Use this approach when you are collecting a text response and the question is specific only to the process that contains the Question shape, because virtual questions are not reusable.
-
In the Question type list, select Text.
-
In the Question text field, enter the text of the question that is displayed at run time.
-
In the Map answer to property field, press the Down Arrow key and select a property to store the value of the answer that the user provides.
-
- To create a reusable question:
Use this approach when you are collecting a response in a different format, such as a check box, or plan to reuse the question in another process or survey.
-
Create a stand-alone question.
-
In the Question type list, select Rule.
-
In the Question rule field, press the Down Arrow key and select the name of your question.
-
- To reuse an existing question:
- Optional:
To ensure that the user provides an answer to the question, select the
Required check box.
Some formats, such as read-only text, do not support this option.
- Optional:
To validate the answer that the user provides, define pre and post processing.
-
In the Pre-question processing activity and
Post-question processing activity fields, press the Down
Arrow key and select the name of an activity.
These activities are called when the user is online.
-
In the Pre-question javascript function and
Post-question javascript function fields, enter the names of
functions that are bundled and attached to the harness of the case.
These functions are called when the user is offline.
-
In the Pre-question processing activity and
Post-question processing activity fields, press the Down
Arrow key and select the name of an activity.
- Click Save.