Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Definition of Facet Types

A Facet Type is a unit of capability (or method) represented by a piece of executable code (a Java class) intended to process a request. The facet type’s method selection is based on the facet lifecycle event model. In short, the TQLEngine invokes the appropriate facet type method using the current facet pipeline connection context and facet instance information as argument.

Facet Types in the TQLEngine

Name

Type NameDescription
MessageSffMsgFacetGeneric Message Communication.
NetworkSffNetworkFacetTQLEngine cluster support. Define the list of TQLEngine(s) that can participate in syncing their data
TqlSffTqlFacetThing Query Language Support (Thing Definition, Thing Interaction)
WorkflowSffWdlFacetWorkflow Language Support
Behavior TreesSffBdlFacetBehavior Tree Implementation
TopicSffTopicFacetSubscription and Notification of Model changes
SchedulingSffSequenceFacetSchedule tasks / jobs (piece of Model code) to be executed in a repeated sequence of defined interval.
Static FilesSffStaticFileFacetServe static files using TQLEngine.

Message

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

Network

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

TQL

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

Workflow

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

Behavior Trees

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

Topic

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

Scheduling

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 

Static Files

Message Facet Type is a generic Message processing over any given specified transport. Message Facet Type does not support any specific payload to process unlike other Facet types. Message Facet Type can be used process any payload that is passed to it. 

Facet Type NameSffMsgFacet
Language SupportFacetScript
Transports

HttpServerExtensionArgs

WsServerExtensionArg

Usage

 Facet Types are used using <NewFacetInstance> when creating a Package (Deployment) definition for your models.

SffMsgFacet Example
<NewFacetInstance fid="smartparking" name="SmartParking" type="SffMsgFacet">
  <OnOpen ModifyPipeline="HttpServerExtensionArgs" />
  <OnRequest>
    <!-- Handle Request -->
    <!-- Any FacetScript Code can go in here... ->
    <DoResponse>
       <!-- Send the response back.. ->
    </DoResponse>
  </OnRequest>
</NewFacetInstance>
Other NamesSffTcpFacet
Use Cases
  1. Publish HTTP or WebSocket Endpoint served by TQLEngine to process any request and send response.
  2. Can be used to create a proxy to other facet types (like SffTqlFacet).

 









 

  • No labels