I am starting a workflow instance with the Invoke OpenFlow activity on user X’s nodered agent. Later, I want to use the Assign OpenFlow activity to give user Y permission on that instance. The problem is that a new workflow_instance is being created with an empty payload, and the permissions on the original instance are not changing. How can I fix this? If it is possible to do it directly through nodered, how would that work?
Assign might be a misleading word. It means assign a NEW workflow.
But its easy to update. On an existing workflow instance, just update targetid to match the _id of the user or role, and make sure the user/role has at least update permission on the object
Regarding the payload, I mean that there is no ‘Map Variables’ in the Assign OpenFlow activity.
I need to reassign the workflow instance automatically, so I am using Update One to change the targetid. However, it seems that it’s not possible to modify the _acl in this way.