ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > Configuring a Template for the Lua Script Resource > Including a Data Shape
Including a Data Shape
The require statement pulls the functionality of a data shape into the template. A data shape can define properties, services, and tasks. If a template defines a property, service, or task that has the same name as one defined in the shape file, the definition in the shape file is ignored. Be careful that you do not have duplicate names for these characteristics.
require "yourshape"
The following table describes the require parameter:
Specify the name of the shape file that contains the properties, services, and task definitions that are to be added to the template file configuration.
The shape file must be located in the directory, \microserver\etc\custom\shapes.
If you intend to use file transfer with this edge device, you must include the following statement:
require "thingworx.shapes.filetransfer"