Workflow_use dialog participant step data in or split
Hello everyone!
I’m using a DIALOG PARTICIPANT STEP in a workflow I’m implementing in CQ 5.6.1.
The Dialog consists in various checkboxes and the executor of the step will select some or none, depending on the situation.
After the DIALOG STEP, there’s NO OPERATION STEP and then an OR SPLIT. In the script of this OR SPLIT I’d like to retrieve the data from the Dialog and use it for the logic implementation.
I’ve tried the two approaches listed in the Workflow Step Reference (http://dev.day.com/docs/en/cq/current/workflows/wf-ref.html#Dialog Participant Step):
- Storing data in the Workitem: the data of this dialog was stored in some variables in the workflow metadata.
The path I found them was: /etc/workflow/instances/<date>/<model>/<history>/xxx/propertyname
I’ve tried several ways of accessing their values through the OR SPLIT script but I didn’t succeeded.
- Storing data in the Payload: the data of this dialog was stored in some variables in the payload metadata.
The path I found them was: /content/<website>/<page>/jcr:content/<nodename>/propertyname
I’ve also tried several ways of accessing their values through the OR SPLIT script but I didn’t succeeded:
- Through the PERSISTING DATA FOR SUBSEQUENT WORKFLOW STEPS (http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html#Persisting%20Data%20for%20Subsequent%20Workflow%20Steps)
- Through the example given inside the workflow editor:
function check() {
if (workflowData.getPayloadType() == "JCR_PATH") {
var path = workflowData.getPayload().toString();
var node = workflowSession.getSession().getItem(path);
if (node.getProperty("propertyname").getString().equals("on")) {
return true;
}
}
return false;
}
I’ve also added this code to the .jsp file of the component where the dialog is located.
String criacaook = properties.get("criacaook", String.class);
String seook = properties.get("seook", String.class);
String waok = properties.get("waok", String.class);
String h2wok = properties.get("h2wok", String.class);
String ofertaok = properties.get("ofertaok", String.class);
String midiaok = properties.get("midiaok", String.class);
Does anyone know some documents/tutorials/guidelines that could help me? Or even how to do it?
Thanks in advance!