Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to get the value from the custom widget in custom workflow step?

Avatar

Level 4

Hi All,

I am creating the custom workflow for activate/ Deactivte later workflow.

so i have created a custom workflow step, which added datetime widget to get the value from the author.

Now authors can select the date and time from the widget, but the value is not save in workflow metadata node.

could you please tell me how to save the value in metadata?  

in addition

i have added NAME property in the dialog still the value is not save in metadata node

thanks in advance!!!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

It depends how you have specified the xtype in the dialog of workflow step.

If it is name property of widget in dialog is like ./jcr:content/propname then it gets stored on payload itself with the propname mentioned.

If you want to store it as part of metadata node of workitem then the name property of widget should be simply like - propname

for more reference see http://docs.adobe.com/docs/en/cq/5-5/workflows/wf-ref.html#Dialog%20Participant%20Step

- Runal

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

It depends how you have specified the xtype in the dialog of workflow step.

If it is name property of widget in dialog is like ./jcr:content/propname then it gets stored on payload itself with the propname mentioned.

If you want to store it as part of metadata node of workitem then the name property of widget should be simply like - propname

for more reference see http://docs.adobe.com/docs/en/cq/5-5/workflows/wf-ref.html#Dialog%20Participant%20Step

- Runal