AEM site setup:
4 sites have been setup in /content.
---------------------------------
So I was reading this guide/example (Creating Workflow Models ) on how to setup path selection on an OR Split.
Using this example, I create 4-branch OR Split and each branch having its own script (see below for code).
My problem is that the path selection is not working properly.
tests I've done:
Any ideas what I could be doing wrong? Thanks
------------
Workflow screenshot showing the Or Split + the participant steps for each branch: https://i.imgur.com/10SUSCX.png
-------------
branch1 script
function check() {
if (workflowData.getPayloadType() == "JCR_PATH") {
var path = workflowData.getPayload().toString();
var node = jcrSession.getItem(path);
if (node.getPath().indexOf("/content/site1/en") != -1) {
return true;
}
}
return false;
}
-------------
branch2 script
function check() {
if (workflowData.getPayloadType() == "JCR_PATH") {
var path = workflowData.getPayload().toString();
var node = jcrSession.getItem(path);
if (node.getPath().indexOf("/content/site2/en") != -1) {
return true;
}
}
return false;
}
-------------
branch3 script
function check() {
if (workflowData.getPayloadType() == "JCR_PATH") {
var path = workflowData.getPayload().toString();
var node = jcrSession.getItem(path);
if (node.getPath().indexOf("/content/site3/en") != -1) {
return true;
}
}
return false;
}
-------------
branch4 script
function check() {
if (workflowData.getPayloadType() == "JCR_PATH") {
var path = workflowData.getPayload().toString();
var node = jcrSession.getItem(path);
if (node.getPath().indexOf("/content/site4/en") != -1) {
return true;
}
}
return false;
}
-------------
Solved! Go to Solution.
We have an article that shows you how to work with OR SPLITS and get them working. See --
This clearly shows use of using an OR Split within AEM Workflows.
We have an article that shows you how to work with OR SPLITS and get them working. See --
This clearly shows use of using an OR Split within AEM Workflows.
Looking at the link, it seems what I want can't be done without custom code?
Views
Replies
Total Likes
Just checking if you were able to address the issue? If so, can you share the details?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies