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

SOLVED

Issue while setting custom metadata

ani_rvce
Level 1
Level 1

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

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

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. 

View solution in original post

1 Reply
smacdonald2008
Correct answer by
Level 10
Level 10

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. 

View solution in original post