Registering and Invoking your Application's Customized Workflow

You can define customized workflows in your application and apply in Questionnaire by registering it. Questionnaire has a workflow definition seeded by AAI, where object type is defined as QTNR. If you choose not to define your workflow, Questionnaire defaults to the workflow defined by AAI.
Perform the following steps in your application to register the customized workflow:
  1. Create a new package in the table aai_wf_app_package_b.

    Note:

    Name OBJECT_TYPE for workflow definition in the convention $APP_CODE_QTNR. For example, if your APP_CODE is OFS_KYC, name the Object Type as OFS_KYC_QTNR.
  2. Register a new object V_OBJECT_TYPE in the table aai_wf_app_registration.
  3. Create a new process or copy it to the PMF application.
  4. Add the entry with the object V_OBJECT_TYPE in the table aai_wf_app_definition_map.
    Questionnaire validates the Object Type before invoking the workflow. If the naming convention of the workflow definition matches with the naming convention defined in the preceding steps, it invokes the registered workflow from your application. However, if the naming convention does not match the registered workflow, Questionnaire invokes the default reference workflow with object type QTNR. To check for the creation of the new process, perform the following steps:
    1. Create a new questionnaire in Draft status.
    2. Check in the Process Monitor that the Questionnaire is running in the new process.