Custom Participant Step with multiple users / groups selection
I have requirement where I am trying to create custom Participant step which should allow multiple groups to be displayed in the drop down while advancing workflow. I was able to overlay Participant Step using following this guide (https://docs.adobe.com/docs/en/aem/6-0/develop/extending/workflows/wf-extending.html) and I have used multifield widget which includes pathbrowser to choose the group multiple times. But when I save the workflow and re-open, it does not display the groups selected previously. Also, in the log I am getting below exception ( I have pasted only few lines). So it is not storing it correctly under workflow model /etc/workflow/models/POC/jcr:content/model/nodes/node3/metaData where it should create PARTICIPANT property with value.
javax.jcr.ValueFormatException: PARTICIPANT = [/home/groups/test/rollout_notifications1, /home/groups/test/rollout_notifications2,] is multi-valued.
at org.apache.jackrabbit.oak.jcr.delegate.PropertyDelegate.getSingleState(PropertyDelegate.java:112) at org.apache.jackrabbit.oak.jcr.session.PropertyImpl$5.perform(PropertyImpl.java:238) at org.apache.jackrabbit.oak.jcr.session.PropertyImpl$5.perform(PropertyImpl.java:235) at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:293) at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:113) at org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getValue(PropertyImpl.java:235) at org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getString(PropertyImpl.java:259) at com.adobe.granite.workflow.console.servlet.ModelGenerateServlet$ContentVisitor.copyMetaData(ModelGenerateServlet.java:399) at com.adobe.granite.workflow.console.servlet.ModelGenerateServlet$ContentVisitor.handleStep(ModelGenerateServlet.java:332) at com.adobe.granite.workflow.console.servlet.ModelGenerateServlet$ContentVisitor.entering(ModelGenerateServlet.java:287) at javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:182)
Any clue on this ?
