Create new workflow entry for a given application number(businessId).
POST
/process/_transitionLast modified: 6 months ago
To create new workflow applicationin the system. API supports bulk creation with max limit as defined in the Trade License Request. Please note that either whole batch succeeds or fails, there's no partial batch success. To create one workflow(ProcessInstance) instance, please pass array with one workflow(ProcessInstance) object.
Following Conditions are applied -
- Valid action is send according to workflow configuration defined
- supportDocuments to perform workflow action will created. In case of not attaching the Mandatory Supported Documents creation of workflow Fails.
- Application will move to next state if valid action is passes.
Request
Header Params
Content-Type
string
optional
Example:
application/json
Body Params text/plain
Example:{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"authToken": "50b80fa6-bec2-438e-a168-ce5ad53770b5"
},
"ProcessInstances": [
{
"tenantId": "pg",
"businessService": "WaterManegament3",
"businessId": "pgrmnkm001x1iMmmA",
"action": "APPLY",
"comment": null,
"assignee": null,
"previousStatus": null
}
]
}
Request samples
Responses
ReponseInfo with Workflow(s) created successfully(201)
Workflow(s) creation failed(400)
ReponseInfo with Workflow(s) created successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 6 months ago