Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Workflow Config for property create if the source is from WATER CONNECTION module

Sample workflow config - (The same PT.CREATE can be used for update workflow also since both involve the same functionality)

...

languagejson

...

For creation of property from water and sewerage module, as per the use case mentioned in this ticket, different workflow config is used.
For each use case, to identified which workflow to use can be identified from this mdms file.

Code Block
{
 "tenantId": "pb",
 "moduleName": "PropertyTax",
 "PTWorkflow":[
     {
         "businessService": "PT.CREATEWITHWNS",
         "initialAction":"OPEN",
         "inWorkflowStatusAllowed":false,
         "enable":false
     },
     {
      "businessService":"PT.CREATE",",
      "initialAction":"open",
      "inWorkflowStatusAllowed":true,
      "enable":true
  }
     
 ]
}


For use case 1 which says, The property which is creating from Water and sewerage module should have one step workflow.
for this requirement in above mdms file businessService with PT.CREATEWITHWNS object must have enable field to set as true.
Then for all the property creation from Water and Sewerage module would have one step workflow and property would be created with ACTIVE state.

Fields in above mdms file:

Mdms Fields

Descripton

businessService

Name of workflow config

initialAction

Indicate the start(initial) action of the particular workflow mention in businessService.

inWorkflowStatusAllowed

This field indicate whether the property with application status as “inWorkflow” can be use with water and sewerage connection creation.
If this field is true then for that particular use case, the property with “inWorkflow” status can be use with water and sewerage connection creation and vice versa

enable

If this filed is set as true, then the other fields associate with the particular object is use for property creation.

(Note: The above objects indicate the each use case mention in this ticket, so at a time only one object (use case)enable field must set as true )

Sample workflow config for use case 1 where property creation is from water and sewerage module with one step workflow

Code Block
{
    "BusinessServices": [
      {
        "tenantId": "pb",
        "businessService": "PT.CREATEWITHWNS",
        "business": "PT",
        "businessServiceSla": null,
        "states": [
          {
            "sla": null,
            "state": null,
            "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
            "isStartState": true,
            "isTerminateState": false,
            "isStateUpdatable": false,
            "actions": [
              {
                "action": "OPEN",
                "nextState": "INITIATED",
                "roles": [
                  "CITIZEN",
                  "WS_CEMP",
                  "SW_CEMP"
                ]
              }
            ]
          },
          {
            "sla": null,
            "state": "INITIATED",
            "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
            "isStartState": true,
            "isTerminateState": false,
            "isStateUpdatable": true,
            "actions": [
              {
                "action": "SUBMIT",
                "nextState": "APPROVED",
                "roles": [
                  "EMPLOYEE",
                  "CITIZEN",
                  "SW_CEMP",
                  "WS_CEMP"
                ]
              },
              {
                "action": "BACK",
                "nextState": "INWORKFLOW",
                "roles": [
                  "EMPLOYEE",
                  "CITIZEN",
                  "SW_CEMP",
                  "WS_CEMP"
                ]
              }
            ]
          },
          {
            "sla": null,
            "state": "INWORKFLOW",
            "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
            "isStartState": true,
            "isTerminateState": false,
            "isStateUpdatable": true,
            "actions": [
              {
                "action": "SUBMIT",
                "nextState": "APPROVED",
                "roles": [
                  "EMPLOYEE",
                  "CITIZEN",
                  "SW_CEMP",
                  "WS_CEMP"
                ]
              }
            ]
          },
          {
            "sla": null,
            "state": "APPROVED",
            "applicationStatus": "ACTIVE",
            "docUploadRequired": false,
            "isStartState": false,
            "isTerminateState": true,
            "isStateUpdatable": false,
            "actions": null
          }
        ]
      }
    ]
  }


Sample workflow config - (The same PT.CREATE can be used for update workflow also since both involve the same functionality)

Code Block
languagejson
 {
  "RequestInfo": {
    "apiId": "Rainmaker",
    "action": "",
    "did": 1,
    "key": "",
    "msgId": "20170310130900|en_IN",
    "requesterId": "",
    "ts": 1513579888683,
    "ver": ".01",
    "authToken": "b39181b1-5c6b-484a-b825-6be2f62012b8"
  },
 "BusinessServices": [
  {
    "tenantId": "pb",
    "businessService": "PT.CREATE",
    "business": "PT",
    "businessServiceSla": null,
    "states": [
        {
            "tenantId": "pb",
            "sla": null,
            "state": null,
            "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
            "isStartState": true,
            "isTerminateState": false,
            "actions": [
                {
                    "tenantId": "pb",
                    "action": "OPEN",
                    "nextState": "OPEN",
                    "roles": [
                        "CITIZEN",
                        "EMPLOYEE"
                    ]
                }
            ]
        },
        {
            "tenantId": "pb",
            "sla": null,
            "state": "OPEN",
            "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
            "isStartState": true,
            "isTerminateState": false,
            "actions": [
                {
                    "tenantId": "pb",
                    "action": "VERIFY",
                    "nextState": "DOCVERIFIED",
                    "roles": [
                        "PT_DOC_VERIFIER"
                    ]
                },
                {
                  "tenantId": "pb",
                  "action": "REJECT",
                  "nextState": "REJECTED",
                  "roles": [
                      "PT_DOC_VERIFIER"
                  ]
              },
              {
                "tenantId": "pb",
                "action": "SENDBACKTOCITIZEN",
                "nextState": "CORRECTIONPENDING",
                "roles": [
                    "PT_DOC_VERIFIER"
                ]
            }
            ]
        },
        {
            "tenantId": "pb",
            "sla": null,
            "state": "DOCVERIFIED",
            "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
            "isStartState": false,
            "isTerminateState": false,
            "actions": [
                {
                    "tenantId": "pb",
                    "action": "FORWARD",
                    "nextState": "FIELDVERIFIED",
                    "roles": [
                        "PT_FIELD_INSPECTOR"
             "business": "PT",      ]
      "businessServiceSla": null,         }
   "states": [        ]
        {},
        {
            "tenantId": "pb",
      
             "sla": null,
       
            "state": null"FIELDVERIFIED",
                    "applicationStatus": "INWORKFLOW",
            "docUploadRequired": false,
      "docUploadRequired": false,        "isStartState": false,
            "isStartStateisTerminateState": truefalse,
                "actions": [
   "isTerminateState": false,            {
        "actions": [           "tenantId": "pb",
            {        "action": "APPROVE",
                    "tenantIdnextState": "pbAPPROVED",
                    "roles": [
       "action": "OPEN",                "PT_APPROVER"
            "nextState": "OPEN",       ]
                },
    "roles": [           {
                    "tenantId": "CITIZENpb",
                    "action": "REJECT",
                    "nextState": "EMPLOYEEREJECTED",
                    "roles": [
      ]                  "PT_APPROVER"
      }              ]
      ]          }
      },      ]
        },
 {        {
            "tenantId": "pb",
   
                "sla": null,
       
            "state": "OPENREJECTED",
      
             "applicationStatus": "INWORKFLOWINACTIVE",
            "docUploadRequired": false,
            "docUploadRequiredisStartState": false,
            "isTerminateState": true,
            "isStartStateactions": null
  true,      },
        {
     "isTerminateState": false,        "tenantId": "pb",
            "actionssla": [null,
            "state": "APPROVED",
          {  "applicationStatus": "ACTIVE",
            "docUploadRequired": false,
            "tenantIdisStartState": "pb"false,
              "isTerminateState": true,
             "actionactions": "VERIFY",null
        },
        {
          "nextStatetenantId": "DOCVERIFIEDpb",
          "sla": null,
               "state": "rolesCORRECTIONPENDING":,
 [         "applicationStatus": "INWORKFLOW",
          "docUploadRequired": false,
          "PT_DOC_VERIFIER"
"isStartState": false,
          "isTerminateState": false,
          "isStateUpdatable": true,
   ]       "actions": [
              {
 }                 "tenantId": "pb",
  ]                 }"action": "REOPEN",
                {  "nextState": "OPEN",
                  "tenantIdroles": "pb",[
                    "slaCITIZEN": null,
                    "state": "DOCVERIFIED",PT_CEMP"
                  ]
    "applicationStatus": "INWORKFLOW",         },
           "docUploadRequired": false,  {
                  "isStartStatetenantId": false"pb",
                    "isTerminateStateaction": false"REJECT",
                    "actionsnextState": ["REJECTED",
                  "roles": [
    {                "CITIZEN",
            "tenantId": "pb",       "PT_CEMP"
                  ]
  "action": "FORWARD",           }
          ]
      "nextState": "FIELDVERIFIED",}
    ]
}
  ]
}	

PT.LEGACY workflow config

Code Block
{
    

...

"RequestInfo": {
      "

...

apiId": 

...

"Rainmaker",
      "action": "",
      "did": 1,
      "key": "",
      "msgId": 

...

"

...

20170310130900|en_IN",
      "requesterId": "",
      "ts": 1513579888683,
      "ver": ".01",
    

...

  "authToken": "{{authToken_amritsar}}"
    },
    "BusinessServices": [
      {
   

...

     "tenantId": "pb",
        

...

"businessService": "PT.LEGACY",
   

...

     "business": "PT",
        

...

"businessServiceSla": null,
        "states": [
      

...

    {
            

...

"tenantId": "pb",
            

...

"sla": null,
    

...

 

...

       "state": null,
            "

...

applicationStatus": "

...

INWORKFLOW",
            "docUploadRequired": false,
      

...

 

...

     

...

"isStartState": true,
            

...

"

...

isTerminateState": false,
            "actions": [
         

...

 

...

    {
                "

...

tenantId": 

...

"pb",

...


                

...

"

...

action": 

...

"OPEN",
                "nextState": "APPROVALPENDING",
      

...

          "roles": [
                 

...

 "

...

CITIZEN",
                  "EMPLOYEE"
          

...

 

...

     ]
              }
        

...

 

...

   ]
          },
          {
   

...

 

...

        "tenantId": "pb",
            "sla": null,
         

...

   "state": "APPROVALPENDING",
            "applicationStatus": "INWORKFLOW",
          

...

  "docUploadRequired": false,
            "isStartState": true,
       

...

     "isTerminateState": false,
            "actions": 

...

[
   

...

           

...

{
                "tenantId": "pb",

...


                "action": "

...

APPROVE",

...


                

...

"nextState": "

...

APPROVED",
                "roles": [
          

...

 

...

       "EMPLOYEE"
                ]
        

...

      },
              {
       

...

         

...

"tenantId": "pb",
             

...

   

...

"action": "REJECT",
              

...

  "nextState": "REJECTED",
             

...

   "roles": [
            

...

      "EMPLOYEE"
              

...

 

...

 ]
              }
    

...

 

...

       ]
          },
  

...

 

...

       {
            

...

"

...

tenantId": "

...

pb",
            "sla": null,
      

...

 

...

     

...

"state": "REJECTED",
            "

...

applicationStatus": 

...

"INACTIVE",
            "

...

docUploadRequired": 

...

false,
            "isStartState": false,
      

...

 

...

     "isTerminateState": true,
          

...

  "actions": null
          },
  

...

        {
            "tenantId": "pb",

...


            "sla": null,

...


            

...

"state": "APPROVED",

...


            

...

"applicationStatus": "

...

INACTIVE",

...


            

...

"docUploadRequired": false,

...


            "isStartState": false,

...


            "isTerminateState": true,

...


            

...

"actions": null
          }
     

...

   ]
      }
  

...

  

...

]
  }

Notifications :

To enable or disable notifcation
notif.sms.enabled=true

...