Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Persisting and Accessing Data via dialog participant step

Avatar

Avatar
Level 1
prathik-sm
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
prathik-sm
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
prathik-sm
Level 1

02-11-2020

Hello All,

 

As part of dialog participant step - We have designed custom touch ui dialog which gets triggered when participant tries to complete the step. In the custom dialog - we are capturing inputs from the workflow participant. We need this input data in later steps of the workflow so we are trying to save property like ./metaData/jcr:title and ./metaData/jcr:description by following the below link:

 

https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/extending-work...

 

However, values are neither getting stored under /var/workflow/instances/server0/2020-11-02/new-wf_30/metaData nor under /var/workflow/instances/server0/2020-11-02/new-wf_30/data/metaData

If we save the property like jcr:title and jcr:description - values are getting stored but under particular workitem(/var/workflow/instances/server0/2020-11-02/new-wf_30/history/1604331030298/workItem/metaData). This won't solve the purpose as we will not be able to leverage Workflow metadata stored in a MetaDataMap object.

 

Let us know if we are missing something.

 

Below is the content.xml of the custom dialog:

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Custom step"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs">
<items jcr:primaryType="nt:unstructured">
<common
jcr:primaryType="nt:unstructured"
jcr:title="Common"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<basic
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Title"
name="./metaData/jcr:title"/>
<description
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
fieldLabel="Description"
name="./metaData/jcr:description"/>
</items>
</basic>
</items>
</columns>
</items>
</common>
</items>
</content>
</jcr:root>

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
debasis-swain
Level 2

Likes

12 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
debasis-swain
Level 2

Likes

12 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 5
Boost 3
View profile
debasis-swain
Level 2

02-11-2020

Hi Prathik,

 

This is as per adobe document and verified in one of the usecase created by me.

Dialog Participant Step - Storing Data in the Payload

You can store widget data in the workflow payload or in the work item metadata. The format of the name property of the widget node 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 widget node:
      ./jcr:content/nodename
    • The data is stored in the nodename property of the payload node. If the node does not contain that property, the property is created.
    • 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 metadata, use the following format for the value of the name property:
      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.

You can find a similar discussion in the below thread.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dialog-participant-step-no...

 

Let me know if you need more help.

 

Thanks,

Debasis

Answers (0)