ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > Using ThingWorx Asset Advisor with WS EMS and LSR > Setting Up to Use ThingWorx Software Content Management (SCM) with WS EMS Devices
  
Setting Up to Use ThingWorx Software Content Management (SCM) with WS EMS Devices
For devices running the WS EMS or LSR to be available in the Asset Advisor, you need to set up Thing Templates for the types of devices. These Thing Templates must implement the following Thing Shapes:
PTC.Factory.PhysicalAssetThingShape
PTC.SCA.SCO.AssetIdentifierThingShape
PTC.SCA.SCO.StatusThingShape
PTC.ISA95.IdentifierThingShape
PTC.SCA.SCO.MonitoredPropertiesThingShape
For complete details, see the section, "Creating CustomThing Templates for Equipment Types" section of the ThingWorx Apps Customization Guide.
Creating Security Entities and Granting Visibility and Permissions for SCM
The procedure below explains how to set up the required security entities and then assign the required visibility and permissions for using SCM with WS EMS and LSR.
As long as the ThingWorx Software Content Management (SCM) Extension has been imported into your ThingWorx platform, follow these steps to set up the required permissions for using SCM with WS EMS devices:
1. Create a new Organization. For example, SCMEdgeDevicesOrg.
2. Create a new User Group. For example, SCMEdgeDevicesGroup.
3. Add the SCMEdgeDevicesGroup to the SCMEdgeDevicesOrg.
4. Add the SCMEdgeDevicesGroup as a member of the TW.RSM.RemoteAssets User Group.
5. Add the SCMEdgeDevicesOrg to the Visibility permissions of the following things:
a. TW.RSM.SFW.SoftwareManager Thing
b. TW.RSM.SFW.SoftwareManager.DeliveryTarget Thing
c. TW.RSM.SFW.SoftwareManager.Campaign Thing
d. TW.RSM.SFW.SoftwareManager.Definition Thing
6. Add an override, giving the Service Invoke permission to SCMEdgeDevicesGroup on the GetDataTableEntryByKey service of the TW.RSM.SFW.SoftwareManager.DeliveryTarget Thing.
7. Add an override, giving the Service Invoke permission to SCMEdgeDevicesGroup on the following services of TW.RSM.SFW.SoftwareManager Thing:
a. UpdateState
b. CompleteDeliveryTarget
c. StartDownload
8. Assuming that you created a non-admin user for the WS EMS Application Key, add that non-admin user to the TW.RSM.EdgeDevices user group. Using the example in Creating an Application Key for WS EMS, add the wsemsUser to the TW.RSM.EdgeDevices user group.
Configuring WS EMS/LSR Things for Use in Software Content Management (SCM)
For WS EMS/LSR Things to be available in the SCM module of Asset Advisor, follow these steps;
1. In ThingWorx Composer, navigate to the Thing.
2. On the General Information page, add thee following Implemented Shapes:
PTC.Asset.ManagedAsset
TW.RSM.SFW.ThingShape.Updateable
PTC.Resource.Asset.SCMResourceThingShape
3. Add PTC:AssetType to Tags.
4. Click Save.
For details on using the ThingWorx SCM Extension, see the chapter, Exploring the Apps, in the ThingWorx Apps Setup and Configuration Guide, which is available on the Reference documents page of the PTC Support site.