I am wondering if anyone knows or used AEM api to dynamically update currently running workflow instance payload value.
We have a workflow which is started via workflow launcher with a payload "path A" and in next workflow step we modify path A value to path B (after applying some logic ) and now we want to set/update payload to path B which will be consumed by subsequent steps of same workflow instance.
I looked around but couldn't find a method like setPayload() or updatePayload() in WorkflowData like it has for getPayload().
Alternatively, I can walk through crx node of running workflow instance (var/workflow/instances/server0/xxxx/data/payload) and update payload property value but I would prefer any inbuilt method or API to do the same.
Thanks