Run a process with files via Call API
How to run a process via Call API:
1. Create a process in PROCESIO - Process Designer.
For this demo I created a process - Demo, with 2 input variables: a file and a string.
2. Create a API key in Automation - API Key.
https://webapi.procesio.app/api/projects/{projectID}/instances/publish
Follow the instructions below to replace the highlighted text.
Headers:
Key | Value |
---|---|
workspaceId | {worspaceID value} |
key | {API key name} |
value | {API key value} |
- The project ID is displayed in the Process Designer under the name of the process.
- The workspace ID is displayed in Dashboard:
Body:
- In the body, the input variables must be initialized by ID with their values.
- Navigate to Process Designer, open developer tools and go to Network, then Run the process.
- In the Publish request you can find the variables IDs for your process. ( In my case I have a file and a string ):
https://webapi.procesio.app/api/file/upload/flow
Follow the instructions below to replace the highlighted text.
Headers:
Key | Value |
---|---|
workspaceId | {worspaceID value} |
key | {API key name} |
value | {API key value} |
fileId | {file Id value} |
projectID | {project Id value} |
FlowInstanceID | {Flow Instance Id value} |
Variablename | {Variable name value} |
- File ID and Flow Instance ID are displayed in the response from the Publish api Call:
File ID: $.variables[?(@.name == 'filename')].defaultValue.id
Flow InstanceID: $.id
Body:
key | Value | |
---|---|---|
package | {file} | |
https://webapi.procesio.app/api/Projects/instances/instanceID
Params:
Key | Value |
---|---|
runSynchronous | true |
secondsTimeOut | 300 |
Headers:
Key | Value |
---|---|
workspaceId | {worspaceID value} |
key | {API key name} |
value | {API key value} |
Body:
5. Check Project Instances and verify if the process was completed: