Dialog Participant Step

In this blog, I will discuss about dialog participant step:

What is the use of dialog participant step?
How can we create the dialog?
How can we save the value of dialog?
Where the value of dialog will be saved?

Use of dialog participant step:

Use of dialog participant Step to collect information from the user who is assigned the work item. This step is useful for collecting the small amounts of data that is used later in the workflow.

Creating the dialog:

Dialogs for participant Step are similar to dialogs that you create for authoring components. The node structure of the dialog which I will use in my dialog Participant Step will be like this:

You can store widget data in the workflow payload or in the work item metadata. The format of the name property of the widget will determines where the data is stored.

Store data with the payload:

To store widget data as a property of the workflow payload, use the following format for the value of the name property of the cq:widget node:

./jcr:content/nodename

The data is stored in the nodename property of the payload node.
When stored with the payload, subsequent uses of the dialog with the same payload overwrites the value of the property.

Store data with the Work Item:

To store widget data as a property of the work item metedata, use the following format for the value of the name property of the cq:widget node:

nodename

The data is stored in the nodename property of the work item metadata.
The data is preserved if the dialog subsequently used with the same payload.

In my case, I stored the data with the work item.

To know How we will use this step click here:

Be Happy