FSM V1.4 Workflow Configuration Changes


FSM Vehicle Trip Update Business Service Request

Instructions for Production execution:

  1. Replace the tenant id for production environment

  2. Replace the request info object with production user info details

  3. Fetch the production instance of the FSM_VEHICLE_TRIP business object and add the Vehicle Decline action and state in the Business service definition and then use the _update business service for updating the workflow for vehicle trip.

{ "RequestInfo": { "apiId": "Rainmaker", "authToken": "7880fbab-6858-41a1-86ad-444b7e2e75c7", "userInfo": { "id": 12070, "uuid": "97a111f0-e2fc-40ee-976f-96acfa1d085b", "userName": "QAEE", "name": "Employee Editor", "mobileNumber": "9922999999", "emailId": "", "locale": null, "type": "EMPLOYEE", "roles": [ { "name": "FSM Employee Application Viewer", "code": "FSM_VIEW_EMP", "tenantId": "pg.citya" }, { "name": "Employee", "code": "EMPLOYEE", "tenantId": "pg.citya" }, { "name": "FSM Employee Application Editor", "code": "FSM_EDITOR_EMP", "tenantId": "pg.citya" } ], "active": true, "tenantId": "pg.citya", "permanentCity": null }, "msgId": "1646405030385|en_IN" }, "BusinessServices": [ { "tenantId": "pb.amritsar", "uuid": "22c802e6-5354-43be-979a-8a653753459e", "businessService": "FSM_VEHICLE_TRIP", "business": "vehicle", "businessServiceSla": 172800000, "states": [ { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "61e01ccd-be34-4705-ae82-13ae93200fb3", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": null, "applicationStatus": null, "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1654241412659, "lastModifiedTime": 1654241412659 }, "uuid": "344d60a6-b415-4937-8a20-e1a70d767f01", "tenantId": "pb.amritsar", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "action": "CREATE_FSTPO_VEHICLE_LOG", "nextState": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "roles": [ "FSM_EMP_FSTPO" ], "active": true }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "96e88b11-25d8-4cc1-b35c-6ce5edcb5904", "tenantId": "pb.amritsar", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "action": "SCHEDULE", "nextState": "71f17154-40b8-4595-903a-c8d93c124abe", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true }, { "action": "READY_FOR_DISPOSAL", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "nextState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true } ] }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "71f17154-40b8-4595-903a-c8d93c124abe", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "SCHEDULED", "applicationStatus": "SCHEDULED", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "b82e310e-a519-4ee8-8aaf-550cccbe26b2", "tenantId": "pb.amritsar", "currentState": "71f17154-40b8-4595-903a-c8d93c124abe", "action": "READY_FOR_DISPOSAL", "nextState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true } ] }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "WAITING_FOR_DISPOSAL", "applicationStatus": "WAITING_FOR_DISPOSAL", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1643360911202, "lastModifiedTime": 1654241412659 }, "uuid": "9a8b4fd2-8954-48b4-b593-b5ae273ea33f", "tenantId": "pb.amritsar", "currentState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "action": "DECLINEVEHICLE", "nextState": "15c550df-8369-47fd-816d-c24a07861c5a", "roles": [ "FSM_EMP_FSTPO" ], "active": true }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "c83445e8-c658-4a29-b69d-29f30a8be7ff", "tenantId": "pb.amritsar", "currentState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "action": "DISPOSE", "nextState": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "roles": [ "FSM_EMP_FSTPO" ], "active": true } ] }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "DISPOSED", "applicationStatus": "DISPOSED", "docUploadRequired": false, "isStartState": false, "isTerminateState": true, "isStateUpdatable": true, "actions": null }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1643360911202, "lastModifiedTime": 1654241412659 }, "uuid": "15c550df-8369-47fd-816d-c24a07861c5a", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "VEHICLE_DECLINED", "applicationStatus": "VEHICLE_DECLINED", "docUploadRequired": false, "isStartState": false, "isTerminateState": true, "isStateUpdatable": true, "actions": null }, { "auditDetails": { "createdBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1654105652933, "lastModifiedTime": 1654241412659 }, "uuid": "4c97dd1b-ebcf-424b-bc68-037c17e29194", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": null, "applicationStatus": null, "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1654105652933, "lastModifiedTime": 1654241412659 }, "uuid": "01a3ec24-a89a-4169-98ba-13b483ff417e", "tenantId": "pb.amritsar", "currentState": "4c97dd1b-ebcf-424b-bc68-037c17e29194", "action": "CREATE_FSTPO_LOG", "nextState": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "roles": [ "FSM_EMP_FSTPO" ], "active": true } ] } ], "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 } } ]

 

Instructions for Production execution:

  1. Replace the tenant id for production environment

  2. Replace the request info object with production user info details

  3. Fetch the production instance of the FSM_VEHICLE_TRIP business object and add the READY_FOR_DISPOSALaction at state : null in the Business service definition and then use the _update business service for updating the workflow for vehicle trip.

{ "action": "READY_FOR_DISPOSAL", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "nextState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true }

 

{ "RequestInfo": { "apiId": "Rainmaker", "action": "", "did": 1, "key": "", "msgId": "20170310130900|en_IN", "requesterId": "", "ts": 1513579888683, "ver": ".01", "authToken": "b314c3d7-98e4-4421-ae29-ef1ef4db8fed" }, "BusinessServices": [ { "tenantId": "pb.amritsar", "uuid": "22c802e6-5354-43be-979a-8a653753459e", "businessService": "FSM_VEHICLE_TRIP", "business": "vehicle", "businessServiceSla": 172800000, "states": [ { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "61e01ccd-be34-4705-ae82-13ae93200fb3", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": null, "applicationStatus": null, "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1654241412659, "lastModifiedTime": 1654241412659 }, "uuid": "344d60a6-b415-4937-8a20-e1a70d767f01", "tenantId": "pb.amritsar", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "action": "CREATE_FSTPO_VEHICLE_LOG", "nextState": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "roles": [ "FSM_EMP_FSTPO" ], "active": true }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "96e88b11-25d8-4cc1-b35c-6ce5edcb5904", "tenantId": "pb.amritsar", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "action": "SCHEDULE", "nextState": "71f17154-40b8-4595-903a-c8d93c124abe", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true }, { "action": "READY_FOR_DISPOSAL", "currentState": "61e01ccd-be34-4705-ae82-13ae93200fb3", "nextState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true } ] }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "71f17154-40b8-4595-903a-c8d93c124abe", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "SCHEDULED", "applicationStatus": "SCHEDULED", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "b82e310e-a519-4ee8-8aaf-550cccbe26b2", "tenantId": "pb.amritsar", "currentState": "71f17154-40b8-4595-903a-c8d93c124abe", "action": "READY_FOR_DISPOSAL", "nextState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "roles": [ "FSM_DSO", "FSM_EDITOR_EMP", "FSM_EMP_FSTPO" ], "active": true } ] }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "WAITING_FOR_DISPOSAL", "applicationStatus": "WAITING_FOR_DISPOSAL", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1643360911202, "lastModifiedTime": 1654241412659 }, "uuid": "9a8b4fd2-8954-48b4-b593-b5ae273ea33f", "tenantId": "pb.amritsar", "currentState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "action": "DECLINEVEHICLE", "nextState": "15c550df-8369-47fd-816d-c24a07861c5a", "roles": [ "FSM_EMP_FSTPO" ], "active": true }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "c83445e8-c658-4a29-b69d-29f30a8be7ff", "tenantId": "pb.amritsar", "currentState": "e217e14a-7d3a-41bc-ae31-7ab2dce26f02", "action": "DISPOSE", "nextState": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "roles": [ "FSM_EMP_FSTPO" ], "active": true } ] }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 }, "uuid": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "DISPOSED", "applicationStatus": "DISPOSED", "docUploadRequired": false, "isStartState": false, "isTerminateState": true, "isStateUpdatable": true, "actions": null }, { "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1643360911202, "lastModifiedTime": 1654241412659 }, "uuid": "15c550df-8369-47fd-816d-c24a07861c5a", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": "VEHICLE_DECLINED", "applicationStatus": "VEHICLE_DECLINED", "docUploadRequired": false, "isStartState": false, "isTerminateState": true, "isStateUpdatable": true, "actions": null }, { "auditDetails": { "createdBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1654105652933, "lastModifiedTime": 1654241412659 }, "uuid": "4c97dd1b-ebcf-424b-bc68-037c17e29194", "tenantId": "pb.amritsar", "businessServiceId": "22c802e6-5354-43be-979a-8a653753459e", "sla": null, "state": null, "applicationStatus": null, "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "isStateUpdatable": true, "actions": [ { "auditDetails": { "createdBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1654105652933, "lastModifiedTime": 1654241412659 }, "uuid": "01a3ec24-a89a-4169-98ba-13b483ff417e", "tenantId": "pb.amritsar", "currentState": "4c97dd1b-ebcf-424b-bc68-037c17e29194", "action": "CREATE_FSTPO_LOG", "nextState": "0fec53d3-6940-44c9-8582-2a09bd1f413a", "roles": [ "FSM_EMP_FSTPO" ], "active": true } ] } ], "auditDetails": { "createdBy": "11b0e02b-0145-4de2-bc42-c97b96264807", "lastModifiedBy": "157fc9f6-836f-4780-ba89-9e511f65099e", "createdTime": 1613116718088, "lastModifiedTime": 1654241412659 } } ]

In system the FSM_POST_PAY_SERVICE and FSM are removed and we introduced below new Business service for advance payment application and zero price application.

For Advance new Business service FSM_ADVANCE_PAY_SERVICE has been created.

Advance Pay works based on the configuration % basis that how much can be payer needs to pay during the application creation .

Create businessService (workflow configuration) using the  /businessservice/_create. Following is the product configuration for FSM_ADVANCE_PAY_SERVICE

 

For Advance Zero new Business service PAY_LATER_SERVICE has been created 

Create businessService (workflow configuration) using the  /businessservice/_create. Following is the product configuration for PAY_LATER_SERVICE

 

For Zero Price Application new Business service FSM_ZERO_PAY_SERVICE has been created .

In Zero pricing application will be created with zero price and collection step is skipped.

Create businessService (workflow configuration) using the  /businessservice/_create. Following is the product configuration for FSM_ZERO_PAY_SERVICE: