Skip to main content
ani_rvce
Oct 16, 2015 2:28 AM UTC
Solved

Issue while setting custom metadata

Hi All

I am working on CQ workflows to add metadata via dialog participant step. In my dialog I am adding a field with name="mycustomdata". When I submit the workflow step- I do not get it stored in the metaData instead it goes under history. So I can not get this data in the next step. 

I tried to change the name like- name="./metaData/mycustomdata" but this gives constraintViolation error and the data is not stored anywhere.

javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {} mycustomdata

The Adobe documentation reflects that we can store data to workflow node via dialogs and get it in any next subsequent steps. can someone guide me how to achieve this.

Thanks in advance

Anand

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

You can use the JCR API in a custom workflow step to get node props. Write a custom workflow step to get the value of a specific nodes property. 

2 replies

ani_rvce
ani_rvceAuthor
Oct 16, 2015 2:28 AM UTC

Hi,

The issue is , the data is not being stored anywhere in the workflow instance even though the document says so ( http://docs.adobe.com/docs/en/cq/current/workflows/wf-extending.html#Saving Property Values in Workflow Metadata).

Regards,

Anand

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

You can use the JCR API in a custom workflow step to get node props. Write a custom workflow step to get the value of a specific nodes property. 

Translate