04-07-2014 06:45 PM
I was able to start a workflow using Automation url in a REST client and got a response. However I don't get the workflowInstanceId in the context variable. Why am I not getting the instance id in the response. If I don't have the instance id, how can I then subsequently cancel or suspend a workflow?
This is the request and response I put in - POST http://host:8080/vdms/site/automation/Context.StartWorkflow Content-Type: application/json+nxrequest; charset=UTF-8 {"input":"doc:/CustomerB/workspaces/Assets/Sintel_poster.jpg","params":{"id":"TestWF"},"context":{}}
Output I received: {"entity-type":"document","repository":"default","uid":"01f617fc-703b-455b-8613-273b805e7069","path":"/CustomerB/workspaces/Assets/Sintel_poster.jpg","type":"Picture","state":"project","versionLabel":"0.0","isCheckedOut":true,"title":"Sintel_poster.jpg","lastModified":"2014-03-31T17:40:52.00Z","facets":["Picture","Commentable","Asset","MultiviewPicture","Versionable","Publishable","HasRelatedText"],"changeToken":"1396287652000","contextParameters":{}}
02-15-2016 07:02 AM
Hi, Starting a workflow through Automation is well explained in this link https://doc.nuxeo.com/display/NXDOC/Workflow+APIs . Please refer and revert for clarifications. Its working for me. Happy Development 🙂
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.