Import Workflow
Imports a workflow in a given category. The workflow binary content should be available as multi-part content (see RFC-2387 for details).
Details of working with multi-part resources depend on the used client HTTP/REST library. For example, in Spring it will look like:
Sample client code:-------------------String url = "https://localhost:8281/vco/api/workflows/";MultiValueMapparts = new LinkedMultiValueMap ();Resource r = new FileSystemResource("D:/path/to/some.workflow");parts.put("file", Arrays.asList(r));parts.put("categoryId", "");new RestTemplate().postForLocation(url, parts); -------------------
Request
URI
POST
https://{api_host}/vco/api/workflows
COPY
Path Parameters
string
categoryId
Required
categoryId
Request Body
importAction of mimetype application/x-www-form-urlencoded
Optional
Responses
200
The request is successful
Operation doesn't return any data structure
401
The user is not authorized
Operation doesn't return any data structure
404
Cannot find a category with the specified ID.
Operation doesn't return any data structure
Workflow Service Operations
DELETE
Delete Permission Rule
DELETE
Delete Permissions For Object
DELETE
Delete Workflow
GET
Download Workflow Icon
GET
Download Workflow Schema
GET
Get All Tasks For Workflow
GET
Get All User Interactions For Workflow
GET
Get All Workflows
GET
Get Permission Rule
GET
Get Permissions For Object
GET
Get Workflow
POST
Import Workflow
POST
Insert Permissions For Object
PUT
Update Permission Rule