Skip to main content
Version: 2.7

Service Rules

Service rules are used to bind services and devices. A rule is needed that device information can be accessed by the service plugin.

See the HumanOS® Runtime Manual to design rules.

The service rule configuration specifies the kind of rules to bind and unbind services.

AttributeDescriptionData Type
BindingRuleIdId of the binding ruleSystem.Guid
UnbindingRuleIdId of the unbinding ruleSystem.Guid
TypeType of service rule
  • All: Binds all devices
  • SelectedDevices: Only selected devices are bound
  • SelectedDrivers: Only devices from selected drivers are bound
EServiceRuleType
SelectedDevicesList of device idsSystem.Guid[]
SelectedDriversList of driver idsSystem.Guid[]
IMPORTANT

If the BindingRuleId or the UnbindingRuleId is empty, the service rules are not created.

Example:

  "ServiceRule": {
"BindingRuleId": "{8A80927A-B1F8-4505-B4BA-FB2DFED765E4}",
"UnbindingRuleId": "{1058566D-0787-48C3-95A5-235E9A55CCF3}",
"Type": "All"
}