Hi Guys,
Is it possible to access and edit a schema element of a workflow by a schema element of another workflow.
If yes, how to do it?
Don't think this is possible using either the Javascript classes or the REST API. Best you could do would be export the binary of a workflow to the vRO temp directory using the REST API, and maybe figure out how to edit the binary file using a workflow (load the file content and muck about with it...). If you got all that to work then you could use the REST API to import the workflow and overwrite the original.
To be honest I think that even if you got this to work it seems like a completely mad thing to do
Can I ask what your use-case is?
Hi,
Unfortunately editing other workflows is not possible by using the scripting API alone.
You can try by using the REST Plugin and the GET and PUT methods of "/vco/api/workflows/{id}/content" API.
The GET method will return the workflow schema json, which you can parse in a Scriptable task.
The PUT method will save the edited workflow, you will have to provide the full json in the body.