Add Workflow Configuration
Overview
Workflow configuration should be created based on the business requirements. More details on extracting workflow in the design guide.
Steps
For our guide, we will configure the following workflow which was the output of the design phase:

We will re-use the workflow service which is deployed in the development/sandbox environment.
In POSTMan, create a new POST request and paste the below content in the body. The URL for the request is
http://yourserver.digit.org/egov-workflow-v2/egov-wf/businessservice/_create
to create the workflow.
Below is the URL and POST body for the business service creation request.
http://yourserver.digit.org/egov-workflow-v2/egov-wf/businessservice/_create
{
"RequestInfo": {
"apiId": "Rainmaker",
"action": "",
"did": 1,
"key": "",
"msgId": "20170310130900|en_IN",
"requesterId": "",
"ts": 1513579888683,
"ver": ".01",
"authToken": "{{devAuth}}"
},
"BusinessServices": [
{
"tenantId": "pb",
"businessService": "BTR",
"business": "birth-registration",
"businessServiceSla": 432000000,
"states": [
{
"sla": null,
"state": null,
"applicationStatus": null,
"docUploadRequired": true,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": true,
"actions": [
{
"action": "APPLY",
"nextState": "APPLIED",
"roles": [
"CITIZEN",
"EMPLOYEE"
]
}
]
},
{
"sla": null,
"state": "APPLIED",
"applicationStatus": "APPLIED",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": false,
"actions": [
{
"action": "APPROVE",
"nextState": "APPROVED",
"roles": [
"EMPLOYEE"
]
},
{
"action": "REJECT",
"nextState": "REJECTED",
"roles": [
"EMPLOYEE"
]
}
]
},
{
"sla": null,
"state": "APPROVED",
"applicationStatus": "APPROVED",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": false,
"isStateUpdatable": false,
"actions": [
{
"action": "PAY",
"nextState": "REGISTRATIONCOMPLETED",
"roles": [
"SYSTEM_PAYMENT",
"CITIZEN",
"EMPLOYEE"
]
}
]
},
{
"sla": null,
"state": "REJECTED",
"applicationStatus": "REJECTED",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": false,
"actions": null
},
{
"sla": null,
"state": "REGISTRATIONCOMPLETED",
"applicationStatus": "REGISTRATIONCOMPLETED",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": false,
"actions": null
}
]
}
]
}
Last updated
Was this helpful?