class EnsLib.SQL.Service.GenericService
extends Ens.BusinessService
parameter ADAPTER = "EnsLib.SQL.InboundAdapter";
The type of adapter used to communicate with external systems
parameter DOMAIN = "Ensemble";
Use our own domain for localization
parameter SETTINGS;
List of properties can be set as settings in the configuration file
format is a comma separated list of property names
property AllowTruncating
as %Boolean [ InitialExpression = 0 ];
If the incoming data is longer than the MAXLEN of the property into which it is being set, truncate it to the MAXLEN.
If set to false, an error will be thrown when the incoming data exceeds the MAXLEN of its associated property.
This is only relevant when MessageClass is set because json streams do
property MessageClass
as %String(MAXLEN=1000);
Message class to use in generating the request message. If this is set and the query returns a result set, query results will be set into the corresponding properties of the request message.
If no MessageClass is specified, then the request message will take the form of an Ens.StreamContainer message with the Stream property
containing a json string (eg. {"ID":"1","Name":"John Smith"})
property OnlyWarnOnce
as %Boolean [ InitialExpression = 1 ];
Limit warnings about truncated data.
Give a warning the first time the value for a property must be truncated, but do not repeat the warning if any subsequent messages also have that same property to be truncated.
This is only relevant when AllowTruncating is true and ResponseClass is set.
property TargetConfigNames
as %String(MAXLEN=2000);
Configuration items to which to send Documents
classmethod OnGetConnections(Output pArray As %String, pItem As Ens.Config.Item)
Return an array of connections for drawing lines on the config diagram
method OnInit()
as %Status
This user callback method is called via initConfig() from %OnNew() or in the case of SOAP Services from OnPreSOAP()
method OnProcessInput(pInput As %RegisteredObject, Output pOutput As %RegisteredObject)
as %Status
pInput is an EnsLib.SQL.Snapshot