Right permission to write property on workflow instance (WF_model_instance/data/metaData)
Dear community,
I use the code (in WorkflowProcess) below to write a value on the workflow instance.
if (!filePath.isBlank()) {
workItem.getWorkflowData().getMetaDataMap().put("filePath", filePath);
}
It seems that the permission of previous participant matters here.
If I use admin on previous participant step, the code works, but not for other custom users.
I've tried adding "jcr:write", "rep:write" permissions on the custom user, but they don't work in this case.
Could anyone told me what's the right permission to set, or I should includ the custom user into certain group?
Thanks!