# Typical TQL Facet Definition
NewFacetInstance(fid: "samplequeries", Name: "TQL", Type: "SffTqlFacet"):
OnActivate:
# Associate other facet types; Either Private or Public Instances
NewFacetInstance(name: "tqlwfws", type: "SffWdlFacet") # Private Instance of wdl facet
NetworkFacet: "?cluster" # Public Instance of Network Facet
TopicFacet: "?TQLGenericTopic" # Public Instance of Topic Facet
ImportFacet:
[:RuntimeParams.MacroFacetID:] # Private Instance of Msg facet
Process:
# Define TQL Storage Scheme
Storage(Name: "[:RuntimeParams.TQLCacheName:]", Type: "SqlSff", Comment: "[:RuntimeParams.TQLCacheName:] Database SFF Unstructured SQL database")
# Specify the Model Definition file (TDL). Normally consists of Model definitions
Namespace:
Include: cloud.dbm.xml
OnOpen(ModifyPipeline: "WsServerExtensionArgs")
OnRequest:
#HandOff the request to Facet
DoRequest:
Process Return: "CMD_NOP"):
Message:
Value:
Include: $Request.Message.Value
DoResponse: # Process the response from Facet or send it straight through
Process:
Message(type: "[:RuntimeParams.TQLOutputFormat:]"):
Value:
Include: $Response.Message.Value |