Versions Compared

Key

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

Canvas facilitates the purpose of using additional readymade activities, supported by Request Modeler. For more information on the activities, supported by Request Modeler and their associated instruction classes, refer Activities. For the full set of information on stateModelLibrary.json, refer Library JSON.

Connecting to a Web Service using existing data source Id

The activity of connectToWS facilitates the purpose of using the existing data source Id to connect to the web service. The following code snippet is a sample reference to use this activity in stateModelLibrary.json

Code Block
 {      
		"id": "W01",
		"type": "connectToWS",
		"datasourceId": "WS_DS" //existing data source Id
 }

...

The activity of updateDB paves the way for updating the request data by specifying the model/request Id and the relevant fields that require appropriate updates. The following code snippet is a sample reference to use this activity in stateModelLibrary.json:

Tip

The fieldValue can be applied from the context value or you can even use the default or static value.

...

Code Block
        {
        "id": "AO",
        "description": "Ready For Authorization",
        "isDefault": "false",
        "actions": [
        {
            "id": "SUBMIT",
            "description": "When a pre confirmation is submitted",
            "transactionRequired": "true",
            "isInEditMode": false,
            "activityChain": [
                                {
                                         "id": "DB01",
					                     "type": "updateDB",
					                     "modelId":"CARD_REQ",
					                     "fieldList": [
					                       {
						                          "fieldName": "CARD_TYPE",
						                          "fieldValue": "$response.serviceResp.status"
					                       },
					                       {
						                          "fieldName": "CARD_NO",
						                          "fieldValue": "$context.OLD_CARD_NO"
					                       }
					                    ]
				                  }
		                  ]
                 }]				                  
		}