You are here: Designer Studio > Landing pages > Pega Survey > How to include a survey in a flow

  How to include a survey in a flow

Surveys are available to those having access to the PegaSurvey RuleSet.. See Understanding surveys.

You can add a survey or a survey group to a flow. PegaSurvey includes a section and sample subflows to handle both individual surveys and survey groups.

Add a survey to a flow

There are three ways to add a survey to a flow:

1. Add the survey to a flow action

You can add a survey, or a specific page of a survey, to a flow action by adding the section SurveySection to the flow action and specifying the survey it is to display. You also need have the flow action reference the activity SetupQuestionnaire and pass it the survey name as a parameter.

2. Add the SurveyDriver flow as a sub-flow

Locate the SurveyDriver flow. When you call it as a sub-flow from your process flow, it requires the following values:

Optionally:

When the survey is complete, the survey driver routes the work item to an Operator or Workbasket for further processing, with an SLA assigned to that step and the status of the work item updated. The sub-flow then hands control back to the main flow.

Add SurveyDriverScrFlow to present the survey in a screen flow

To add a multi-page survey as a screen flow, call the flow SurveyDriverScrFlow. Configure it as for SurveyDriver, above. Each page of the survey appears as a single screen as the user navigates through it.

Add a survey group to a flow

Locate the SurveyGroupDriver flow. When you call it as a sub-flow from your process flow, it requires the following values:

When the surveys are complete, the survey driver routes the work item to an operator or workbasket for further processing, with an SLA assigned to that step and the status of the work item updated. The subflow then hands control back to the main flow.

Definitions Flow
Screen Flow
Related topics Understanding surveys

Up...