Create a workflow with dynamic forms

This tutorial guides you through creating a Workflow Designer example workflow with dynamic forms.

Create a new app

Access the Workflow Designer and create a new app:

  1. In the navigation bar, select Apps.
  2. In the top left corner of the Apps tab, click ✚ Create app.
  3. Enter the required information:
    • App name: HR verification process
    • App key: The app key is automatically generated based on the App name value.
    • Description: Although optional, the descriptions allow you to see an overview of the workflow purpose, for example This workflow demonstrates the use of dynamic forms through a process that versifies if an candidate can apply for a particular position.
  4. Click Create new app.

Your newly created app appears in the App models list on the Apps tab and you are redirected to the app editor page.

Add a process to your app

  1. In the app editor page, click ✚ Add model.
  2. In the What would you like to do? dialog box, select Create a new model for the appProcess.
  3. Enter the required information:
    • Model name: HR process
    • Model key: The model key is automatically generated based on the Model name value.
    • Description: Although optional, the descriptions allow you to provide an overview of the workflow purpose.
  4. Click Create new model.

Your newly created process appears in the Business process models on the Processes tab and you are redirected to the process editor page.

Edit the process of your workflow

Your process already contains a start event.

  1. From the Shape repository, drag three User tasks to the canvas and place them to the right of the start event.

    User tasks on the process canvas in Collibra Workflow Designer.

  2. For each user task, provide a name in the attribute bar, such as:
    • Basic information
    • Verification process
    • Success confirmation
  3. From the Shape repository, drag an End event to the canvas and place it to the right of the last user task.
  4. Click the start event and then drag and drop a Sequence flow over the first user task.
  5. Use a Sequence flow to connect all the remaining components on the canvas.

    A complete workflow diagram with three user tasks in Collibra Workflow Designer.

  6. Save your work.

Use the Validate Validate function for real-time form validation of your process to ensure its correctness without the need to deploy it first to Collibra. Any errors are displayed at the bottom of the canvas. Once addressed, you have the option to re-validate.

Add forms to user tasks

Basic information

The purpose of this task is to collect the candidate name and the submission date.

To create a form:

  1. Select the task on the canvas.
  2. In the Details section of the attribute bar, click Form reference to expand the properties.
  3. In the New tab, enter the required information:
    • Name: BasicInformation
    • Key: The key is automatically generated based on the name value.
  4. Click Create.

Your newly created form appears in the Form models list on the Forms tab and you are redirected to the form editor page.

You add fields to your form by dragging and dropping components from the Shape repository on the left to the canvas and editing their properties in the attribute bar on the right:

  1. From the Display section, add a Text display component.
  2. In the Value dialog box, enter a welcome message, for example Welcome to the recruitment verification process!
  3. Use the rich text editor to style your message.
  4. Click OK to close the dialog box.
  5. From the Data entry section, add a Text component.
  6. In the attribute bar, enter the required information:
    • LabelCandidate name
    • Value: {{candidateName}}
    • Required:
  7. From the Data entry section, add a Date component to the right of the Text component.

    The form canvas consists of multiple rows, each of them divided into twelve columns. All columns are equal in size. You can lengthen or shorten a component to fit into any number of columns and place more than one component on a row.

  8. In the attribute bar, enter the required information:
    • LabelApplication date
    • Value: {{applicationDate}}
    • Required:
  9. Save your changes.

Use the Preview function to view and test your forms while you create them: to check required fields behavior, dependencies between form components, and how they look.

A dynamic workflow form preview with a welcome text, an input field, and a date selector in Collibra Workflow Designer.

Verification process

This task allows candidates to select a department and a job that department and checks whether they have enough experience.

  1. Create a new form for the second user task:

    • Name: VerificationProcess
    • Key: The key is automatically generated based on the name value.

      If a form that you require already exists, you don't need to duplicate it. The Workflow Designer allows you to share forms between workflows. You can select an existing form in the Form reference properties in the Reference tab.

  2. From the Collibra data entry section, add a Domain component.
  3. In the attribute bar, enter the required information:
    • LabelDepartment
    • Value: {{department}}
  4. From the Collibra data entry section, add an Asset component.
  5. In the attribute bar, enter the required information:
    • LabelJob position
    • Value: {{jobPosition}}
  6. To restrict the list of job positions to the assets contained by the selected domain, add a dependency between the domain and asset components:
    1. In the attribute bar of the asset component, in the Filters section, select the runtime expression next to the Domain IDs attribute.
    2. Enter the variable you defined for the domain component: {{department}}
  7. From the Selection section, add a Radio buttons component.
  8. In the attribute bar, enter the required information:
    • LabelDo you have any previous experience in a similar job?
    • Value: {{previousExperience}}
    • Items: Click the items properties and enter the required information:
      TextValue
      Yesyes
      Nono
    • Required:
  9. From the Data entry section, add a Text component.
  10. In the attribute bar, enter the required information:
    • LabelHow many years of experience do you have?
    • Value: {{experience}}
  11. To make this field visible and mandatory only if a candidate has any previous experience, add the following dependencies between the radio buttons and text components:
    1. In the attribute bar of the text component, in the General section, select the runtime expression next to the Visible attribute.
    2. Enter the following expression: {{previousExperience=="yes"}}
    3. In the Validation section, select the runtime expression next to the Required attribute.
    4. Enter the following expression: {{previousExperience=="yes"}}
  12. To allow only numbers as an input for this field, add a regular expression validation:
    1. In the attribute bar of the text component, in the Validation section, select the Validation regex attribute.
    2. Enter the following expression: \d*
  13. Provide an error message for the text filed:
    1. In the attribute bar of the text component, in the Error message section, select the Validation regex attribute.
    2. Enter an error message, for example Please enter a value that is a whole number.
  14.  To accept only candidates that have more than two years of experience, add a custom validation:
    1. In the attribute bar of the text component, in the Validation section, click the items properties next to the Custom validations attribute.
    2. In the Custom validations dialog box, click ✚ Add item.
    3. Enter the required information:
      • Expression: {{experience>2}}
      • Error message: Unfortunately, your experience is not enough to proceed with the application.
    4. Click OK to close the dialog box.
  15. Save your changes.

Use the Preview function to view and test your forms while you create them: to check required fields behavior, dependencies between form components, and how they look. Since the preview is connected to your Collibra environment, you can see live data in the Collibra data entry components.

A dynamic workflow form preview with a domain selector, an asset selector, two radio buttons, and an input field in Collibra Workflow Designer.

Success confirmation

The confirmation task shows a success image of your choice.

  1. Create a new form for the third user task:

    • Name: SuccessConfirmation
    • Key: The key is automatically generated based on the name value.
  2. From the Display section, add an Image component.
  3. In the attribute bar, enter the required information:
    • LabelYou have successfully submitted our application.
    • Source URL: Enter the link to an image of your choice.
  4. Save your changes.

About versioning

Throughout this tutorial, every time you modified and saved your process or forms, the Workflow Designer created a new version of that model. To access the history of a model:

  1. In the navigation bar, select Apps.
  2. In the App models list, select your app.
  3. For any process or form that the app contains, select Details.
  4. On the details page, click to see the history of the model.
  5. Select any version to preview it.
  6. If required, you can use that version as a new version of the model.

Deploy your workflow

You can deploy workflows from the Workflow Designer to the corresponding Collibra environment with the push of a button:

  1. In the navigation bar, select Apps.
  2. In the App models list, select your app.
  3. From the app editor, click the Deploy button.
  4. In the Ready to Deploy dialog box, check the target environment.
  5. Click Deploy App to confirm and upload the workflow to the target environment.

Click the View in Collibra link from the success message to go directly to the workflow definition page where you can configure and enable it.