Form Connector Listener
org.camunda.bpm.extension.hooks.listeners.task.FormConnectorListener
This component is used on the CREATE event of a task listener to associate a form with a task. It is required only when switching to a new form during navigation from the initially submitted form.
Type
Task Listener
How It Works
The listener relies on the following parameters:
- formName (Extension Property): The name of the Formio form. Mandatory = Yes
- copyDataIndicator (Listener field, type: expression): Possible values:
YorN. When set toY, it propagates all matching field values from the existingformUrlto the new form. - fields (Listener field, type: expression): Specifies Camunda variables as an array (e.g.,
["pid","applicationId","task_id"]) to populate data into the form. Mandatory = Yes- Note:
pidis the process instance ID,task_idis the task ID, andapplicationIdis the application ID. These are essential for forms associated with tasks.
- Note:
How to Use
The following snapshots illustrate how to configure the FormConnectorListener to a task:
-
Configuration on Task Creation: Shows the listener configured on the
CREATEevent with fields set to populate task details into the form's metadata fields.
-
Optional copyDataIndicator Configuration: Demonstrates the optional
copyDataIndicatorset to copy data from an existing submission to a new one.