Example of a Creating Custom Method for a Business Service
You can write a custom method for a business service and make it available in Script Assist. The following example creates SendData, which is a custom wrapper method that resides on the Data Transfer Service:
function SendData (sTag : String, sValue : String)
{
var oPS1 = TheApplication ().NewPropertySet ();
var oPS2 = TheApplication ().NewPropertySet ();
oPS1.SetProperty ("Tag", sTag);
oPS1.SetProperty ("Value", sValue);
this.InvokeMethod ("SendData", oPS1, oPS2)
}
You can write code that intercepts and modifies the calls to the Data Transfer Service in a central location in the SendData method.