When you moved your node in a workflow process,how the new payload should be used in the further workflow process steps.
if we use the payload in the further workflow process steps, this will give an error , as the payload which the workflow process is pointing at has been moved now.
Can anybody help me to set the new payload for the workflow process, after the node is moved to a different position.
For example: when I started the workflow my Node is point at sourcepath= /content/usergenerated/mycomments/mycommentpage
If I moved this node path to destination path= /etc/commerce/products/approvedcomments/mycommentpage.
My two questions are
1 Do we need to set the new payload path ?
2. Why there is no method called setPayload() in WorkflowData? is there a specific reason?
Your help in this regard will be much appreciated
To answer your questions
No you cannot set the payload path.
In order to get the payload from the new path. You might be knowing the business logic where the actual node will be moved. Based on that construct new path and use resourceresolver for resolving.