Workflow Configuration Changes FSM 1.2.1
FSM Vehicle Trip Update Business Service Request
Instructions for Production execution:
Replace the tenant id for production environment
Replace the request info object with production user info details
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": "pg",
"uuid": "c1ec4e63-587e-4235-a349-c69762b5191f",
"businessService": "FSM_VEHICLE_TRIP",
"business": "vehicle",
"businessServiceSla": 172800000,
"states": [
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "b04a8f46-85e4-46e0-8163-4c7f5feb3b0a",
"tenantId": "pg",
"businessServiceId": "c1ec4e63-587e-4235-a349-c69762b5191f",
"sla": null,
"state": null,
"applicationStatus": null,
"docUploadRequired": false,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": true,
"actions": [
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "58949914-087e-46b3-a294-bb07e11d66d3",
"tenantId": "pg",
"currentState": "b04a8f46-85e4-46e0-8163-4c7f5feb3b0a",
"action": "SCHEDULE",
"nextState": "8516ddfa-0bed-48f7-95fc-514934d0594f",
"roles": [
"FSM_DSO",
"FSM_EDITOR_EMP"
],
"active": true
},
{
"auditDetails": {
"createdBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1657726885677,
"lastModifiedTime": 1658213197555
},
"uuid": "d9220942-4578-4804-b528-6590fbd2bc42",
"tenantId": "pg",
"currentState": "b04a8f46-85e4-46e0-8163-4c7f5feb3b0a",
"action": "CREATE_FSTPO_VEHICLE_LOG",
"nextState": "40f37c60-efe8-4698-a411-ac39bee60dd0",
"roles": [
"FSM_EMP_FSTPO"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "8516ddfa-0bed-48f7-95fc-514934d0594f",
"tenantId": "pg",
"businessServiceId": "c1ec4e63-587e-4235-a349-c69762b5191f",
"sla": null,
"state": "SCHEDULED",
"applicationStatus": "SCHEDULED",
"docUploadRequired": false,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": false,
"actions": [
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "95fc6c32-349b-4878-bd24-e912e401af00",
"tenantId": "pg",
"currentState": "8516ddfa-0bed-48f7-95fc-514934d0594f",
"action": "READY_FOR_DISPOSAL",
"nextState": "189c7485-3942-42db-808b-0c6635228a18",
"roles": [
"FSM_DSO",
"FSM_EDITOR_EMP"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "189c7485-3942-42db-808b-0c6635228a18",
"tenantId": "pg",
"businessServiceId": "c1ec4e63-587e-4235-a349-c69762b5191f",
"sla": null,
"state": "WAITING_FOR_DISPOSAL",
"applicationStatus": "WAITING_FOR_DISPOSAL",
"docUploadRequired": false,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": false,
"actions": [
{
"auditDetails": {
"createdBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1647270223008,
"lastModifiedTime": 1658213197555
},
"uuid": "dbb90c77-3b34-4772-a952-a3020e18da4f",
"tenantId": "pg",
"currentState": "189c7485-3942-42db-808b-0c6635228a18",
"action": "DECLINEVEHICLE",
"nextState": "1723f1f1-0a58-42fa-bd3c-200c47d12fa0",
"roles": [
"FSM_EMP_FSTPO"
],
"active": true
},
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "07ce0836-b220-4bc9-b56e-0afbb935be9e",
"tenantId": "pg",
"currentState": "189c7485-3942-42db-808b-0c6635228a18",
"action": "DISPOSE",
"nextState": "40f37c60-efe8-4698-a411-ac39bee60dd0",
"roles": [
"FSM_EMP_FSTPO"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
},
"uuid": "40f37c60-efe8-4698-a411-ac39bee60dd0",
"tenantId": "pg",
"businessServiceId": "c1ec4e63-587e-4235-a349-c69762b5191f",
"sla": null,
"state": "DISPOSED",
"applicationStatus": "DISPOSED",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": true,
"actions": null
},
{
"auditDetails": {
"createdBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1647270223008,
"lastModifiedTime": 1658213197555
},
"uuid": "1723f1f1-0a58-42fa-bd3c-200c47d12fa0",
"tenantId": "pg",
"businessServiceId": "c1ec4e63-587e-4235-a349-c69762b5191f",
"sla": null,
"state": "VEHICLE_DECLINED",
"applicationStatus": "VEHICLE_DECLINED",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": true,
"actions": null
}
],
"auditDetails": {
"createdBy": "a32f35d9-2ab1-4d87-af41-657e0e8f1f57",
"lastModifiedBy": "f87f0346-ca55-4fbe-beae-8493220ae46c",
"createdTime": 1614969539963,
"lastModifiedTime": 1658213197555
}
}
]
}
Instructions for Production execution:
Replace the tenant id for production environment
Replace the request info object with production user info details
Fetch the production instance of the FSM_VEHICLE_TRIP business object and add the
READY_FOR_DISPOSAL
action 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
}
}
]
}