Free cookie consent management tool by TermsFeed

Set Up the Surveys and Questions Add-On Module

On This Page
This content applies solely to Connected Claims, which must be purchased separately from the Appian base platform. This content was written for Appian 26.6 and may not reflect the interfaces or functionality of other Appian versions.

Set up the Surveys and Questions module

After installing the Surveys and Questions add-on module, you need to set it up before using it with Connected Claims. This guide walks you through the recommended setup steps, which include:

System prerequisites

Before setting up the Surveys and Questions module, ensure your environment meets the following requirements:

  • Appian platform running version 26.6 or greater.
  • A supported web browser.
  • Imported Connected Claims Base Application version 2.0 or higher, which includes the following application containers:
    • Connected Claims Management Base (CCM)
    • CCM Studio Generated Objects
  • Imported Survey Task Framework v1.2 application.

Step 1: Adding the runtimeSurvey relationship to Task record

This step establishes the data relationship between tasks and survey runtime data, enabling tasks to be associated with dynamic surveys.

To set up the Surveys and Questions module with Connected Claims you need to first update the Task record type by adding a new relationship for the Survey Runtime:

To update the record type:

  1. In the target environment, log in as the deployment user.
  2. Navigate to Appian Designer.
  3. Navigate to Connected Claims Management Base application.
  4. Search for and open the CCM_Task record type.
    1. Add a new relationship to the record type called stfRuntimeSurvey.
    2. Set up the relationship as shown:

      Runtime survey relationship setup on the Task record type

Step 2: Configure the Survey pages in the Control Panel

This step adds the Questionnaire page to the Control Panel, allowing users to create and manage surveys and questions within Connected Claims.

Next, you need to configure the Questionnaire page in the Control Panel.

To configure the Questionnaire page:

  1. Open the CCM_ControlPanel control panel object.
  2. Under the Custom Configurations section of the object, click the add custom configuration button.
  3. Set up the Questionnaire page in the following way:
    • Display Name: Use an expression and select Questionnaire from the CCM_STF_Translations translation set.
    • Icon: globe
    • Description: Displays list of surveys and questions
    • Web Address Identifier: questionnaire
    • Claims Location: Global
    • Interface: CCM_STF_ControlPanel_Questionnaire

    Questionnaire custom configuration in the CCM_ControlPanel object

  4. Click SUBMIT.

Step 3: Enabling dynamic display when creating Runtime Survey tasks on a claim

This configuration enables the survey creation interface to display dynamically when users create Runtime Survey tasks, allowing them to configure survey-specific settings.

Next, you need to enable dynamic display to occur when creating Runtime Survey tasks on a claim.

To enable dynamic display:

  1. Open the CCM_Task_Sub_TaskBehaviorTypeCreateDynamicDisplay interface.
    1. Add the following code to the existing a!match() in the interface:

      Task behavior interface updated with Survey task type code

      1
      2
      3
      4
      5
      6
      7
      8
      9
      
      /*Survey*/
            equals: cons!CCM_STF_REFID_TASK_BEHAVIOR_TYPE_SURVEY,
            then: {
              rule!CCM_STF_SurveyTaskBehaviorType_CreateDynamicDisplay(
                brandingMap: ri!brandingMap,
                targetRecord: ri!task,
                contextJsonRecordField: 'recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.fields.{664672b3-911e-425a-a1b1-99917f4c255e-ccm}contextJson'
              )
            }
      

Step 4: Enabling dynamic display when creating Reference Survey tasks

Similar to Runtime Survey tasks, this step enables the dynamic display interface for Reference Survey tasks, allowing users to configure reusable survey templates in the Control Panel.

In this step, you will enable dynamic display when creating a Reference Survey task in the Control Panel.

To enable dynamic display:

  1. Open the CCM_ReferenceTask_Sub_TaskBehaviorTypeCreateDynamicDisplay interface.
    1. Add the following code to the existing a!match() within this interface:

      Reference survey task interface updated with Survey code

      1
      2
      3
      4
      5
      6
      7
      8
      9
      
      /*Survey*/
          equals: cons!CCM_STF_REFID_TASK_BEHAVIOR_TYPE_SURVEY,
          then: {
            rule!CCM_STF_SurveyTaskBehaviorType_CreateDynamicDisplay(
              brandingMap: ri!brandingMap,
              targetRecord: ri!referenceTask,
              contextJsonRecordField: 'recordType!{3dbe5fed-28bf-4f27-aa59-eb2c940289b4-ccm}CCM_WFL_CFG_ReferenceTask.fields.{c634a732-7506-42e0-b52a-9d1a48df3999}contextJsonDefault'
            )
          }
      

Step 5: Enabling additional relationships when creating Survey tasks

This step configures the task behavior system to properly initialize and manage survey-related data when Survey tasks are created, ensuring all necessary relationships are established.

In this step, you need to update the Task Behavior expression rules to enable additional relationships when Survey tasks are created.

  1. Open the CCM_Task_TaskBehaviorTypeCreateDynamicInitialValues expression rule.
    1. Add the following code to the existing a!match() in this rule:

      Task behavior expression rule with Survey initial values

  2. Open the CCM_Task_TaskBehaviorTypeSetDynamicValuesNewOccurrence expression rule.
    1. Add the following code to the existing a!match() in this rule:

      New occurrence expression rule updated for Survey tasks

This configuration ensures that when users complete survey tasks, the system can access and display all related survey data including questions and answers.

Next, you will update the CCM_TaskBehaviorType_returnCompleteActionDynamicQueryFields expression rule to allow users to query survey-related relationships when completing a task.

To update the expression rule:

  1. Open the CCM_TaskBehaviorType_returnCompleteActionDynamicQueryFields expression rule.
    1. Add the following code to the existing a!match() in this rule:

      Complete action query fields rule with Survey relationships

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      
      /*STF Add ON: Survey*/
        equals: cons!CCM_STF_REFID_TASK_BEHAVIOR_TYPE_SURVEY,
        then: a!map(
          fields: {
            'recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.relationships.{c45e9bb7-71f1-430d-bd28-ee138bba8dab}stfRuntimeSurvey'
          },
          relatedRecordData: {
            a!relatedRecordData(
              relationship: 'recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.relationships.{c45e9bb7-71f1-430d-bd28-ee138bba8dab}stfRuntimeSurvey.relationships.{43d501cc-ad5a-4a92-9edf-64ddca9fcfe1}runtimeQuestions',
              limit: 100,
              sort: a!sortInfo(
                field: 'recordType!{04daddea-2f84-4d5a-ba7b-cfe048fb6199}CCM_STF_RuntimeQuestion.fields.{e3ceccf7-c375-447a-888f-68b0ef8cb283}positionOrder',
                ascending: true
              )
            ),
            a!relatedRecordData(
              relationship: 'recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.relationships.{c45e9bb7-71f1-430d-bd28-ee138bba8dab}stfRuntimeSurvey.relationships.{43d501cc-ad5a-4a92-9edf-64ddca9fcfe1}runtimeQuestions.relationships.{c52a4351-2dd6-4926-b01c-d2c95c0c58e3}runtimeAnswers',
              limit: 100
            )
          }
        )
      

Step 7: Enabling dynamic display when completing Runtime Survey tasks on a claim

This step configures the task completion interface to display survey questions and capture responses when users complete Runtime Survey tasks.

Next, you need to enable dynamic display to occur when completing Runtime Survey tasks on a claim.

To enable dynamic display:

  1. Open the CCM_Task_Sub_TaskBehaviorTypeCompleteDynamicDisplay interface.
    1. Add the following code to the existing a!match() in this interface:

      Complete Runtime Survey interface with dynamic display code

      1
      2
      3
      4
      5
      6
      7
      8
      
      /*STF Add On: Survey*/
        equals: cons!CCM_STF_REFID_TASK_BEHAVIOR_TYPE_SURVEY,
        then: {
          rule!CCM_STF_RuntimeSurvey_Sub_Complete(
            brandingMap: ri!brandingMap,
            runtimeSurvey: ri!task['recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.relationships.{c45e9bb7-71f1-430d-bd28-ee138bba8dab}stfRuntimeSurvey']
          )
        }
      

Step 8: Enabling dynamic display when viewing Survey Task records

This configuration enables users to view completed survey responses and survey details when viewing Survey Task records in the system.

In this step, you will update the CCM_Task_Sub_TaskBehaviorTypeSummaryDynamicDisplay interface to enable dynamic display to occur when viewing Survey Task records.

To enable dynamic display:

  1. Open the CCM_Task_Sub_TaskBehaviorTypeSummaryDynamicDisplay interface.
    1. Add the following code to the existing a!match() in this interface:

      Survey task records interface with dynamic display code

      1
      2
      3
      4
      5
      6
      7
      8
      
      /*STF Add On: Survey*/
        equals: cons!CCM_STF_REFID_TASK_BEHAVIOR_TYPE_SURVEY,
        then: {
          rule!CCM_STF_SurveyTaskBehaviorType_SummaryDynamicDisplay(
            task: ri!task,
            brandingMap: ri!brandingMap
          )
        }
      

Step 9: Setting additional survey relationships in the Task SetMetadata rule

The final step ensures that survey-related metadata and relationships are properly maintained when tasks are updated or modified.

Finally, in this step you will update the CCM_Task_SetMetadata expression rule to enable users to set additional survey relationships.

  1. Open the expression rule CCM_Task_SetMetadata.
    1. Around line 379, add the following code to the list of maps in the childRelationships input of the call to CCM_UTIL_SetRecordFields:

      Task SetMetadata rule updated with survey relationships

      1
      2
      3
      4
      5
      6
      7
      8
      
      /*STF Add-on: RuntimeSurvey*/
      a!map(
        field: 'recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.relationships.{c45e9bb7-71f1-430d-bd28-ee138bba8dab}stfRuntimeSurvey',
        value: rule!CCM_STF_RuntimeSurvey_SetMetaData(
          runtimeSurveys: fv!item['recordType!{ee5aa46d-0228-430f-a794-1134a11fbcc0-ccm}CCM_Task.relationships.{c45e9bb7-71f1-430d-bd28-ee138bba8dab}stfRuntimeSurvey'],
          initiator: ri!initiator
        )
      )
      

      Note:  The CCM_Task.stfRuntimeSurvey relationship reference is environment-specific. Update it to reference the relationship created in your target environment.

Step 10: Updating the Task.stfRuntimeSurvey relationship in add-on rules

A few objects within the Survey Task Framework add-on application must refer to the new stfRuntimeSurvey relationship created in Step 1.

  1. Open the expression rule CCM_STF_SurveyTaskBehaviorType_CreateInitialTaskRuntimeData.
    1. In line 12, ensure that the commented relationship is replaced with recordType!CCM_Task.stfRuntimeSurvey.
  2. Open the expression rule CCM_STF_SurveyTaskBehaviorType_SetDynamicValuesNewOccurance.
    1. In line 36, ensure that the commented relationship is replaced with field: recordType!CCM_Task.stfRuntimeSurvey.

Next steps

Now that you have set up the Surveys and Questions module, you can create dynamic surveys and questionnaires within Connected Claims, configure survey tasks in the Control Panel, and collect structured data through customizable survey forms integrated with your claims workflow.

Feedback