Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Dialog value not getting stored in Workflow

Avatar

Community Advisor

Hi,

I've create a dialog and using that dialog in dialog participant step. During run time, when I enter values in dialog fields, I'm not getting values neither in next process step or nor in workflow instance.

This is the dialog and touch ui dialog I've created:

<?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="Properties" sling:resourceType="cq/gui/components/authoring/dialog"> <content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/tabs"/> <items jcr:primaryType="nt:unstructured"> <multiuser jcr:primaryType="nt:unstructured" jcr:title="Properties" sling:resourceType="granite/ui/components/foundation/container"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <environment jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/select" fieldLabel="Choose Environment" name="./environment"> <items jcr:primaryType="nt:unstructured"> <it jcr:primaryType="nt:unstructured" text="IT" value="it"/> <uat jcr:primaryType="nt:unstructured" text="UAT" value="uat"/> <prod jcr:primaryType="nt:unstructured" text="Prod" value="prod"/> </items> </environment> <action jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/select" fieldLabel="Choose Action" name="./action"> <items jcr:primaryType="nt:unstructured"> <upload jcr:primaryType="nt:unstructured" text="Upload" value="upload"/> <install jcr:primaryType="nt:unstructured" text="Install" value="install"/> <replicate jcr:primaryType="nt:unstructured" text="Install and Replicate" value="installReplicate"/> </items> </action> <requestnumber jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/textfield" fieldLabel="Request Number" name="./requestNumber"/> <emerid jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/authselection" fieldLabel="User ID" name="./userId"/> <password jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/password" fieldLabel="Password" name="./password"/> </items> </column> </items> </multiuser> </items> </content> </jcr:root>
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Dialog" title="Multiple User" touchUiDialogPath="/etc/workflow/dialogs/multiuser/cq:dialog" xtype="dialog"> <items jcr:primaryType="cq:Widget" xtype="tabpanel"> <items jcr:primaryType="cq:WidgetCollection"> <tab1 jcr:primaryType="cq:Panel" title="Multiple User"> <items jcr:primaryType="cq:WidgetCollection"> <environment jcr:primaryType="cq:Widget" fieldLabel="Mobile BG Color" name="./environment" type="select" xtype="selection"> <options jcr:primaryType="cq:WidgetCollection"> <it jcr:primaryType="nt:unstructured" text="IT" value="it"/> <uat jcr:primaryType="nt:unstructured" text="UAT" value="uat"/> <prod jcr:primaryType="nt:unstructured" text="Prod" value="prod"/> </options> </environment> <action jcr:primaryType="cq:Widget" fieldLabel="Mobile BG Color" name="./action" type="select" xtype="selection"> <options jcr:primaryType="cq:WidgetCollection"> <upload jcr:primaryType="nt:unstructured" text="Upload" value="upload"/> <install jcr:primaryType="nt:unstructured" text="Install" value="install"/> <replicate jcr:primaryType="nt:unstructured" text="Install and Replicate" value="installReplicate"/> </options> </action> <requestnumber jcr:primaryType="cq:Widget" fieldLabel="Request Number" name="./requestNumber" xtype="textfield"/> <emerid jcr:primaryType="cq:Widget" fieldLabel="User ID" name="./User ID" xtype="authselection" displayField="id"/> <password jcr:primaryType="cq:Widget" fieldLabel="Password" name="./password" xtype="password"/> </items> </tab1> </items> </items> </jcr:root>

I've also tried changing property name value to ./metaData/<property-name> but that also not working.

2 Replies

Avatar

Community Advisor

Yes, dialog is coming properly when I try to complete notification. I'm able to add properties values.