I think I understand the updates to device filtering in the current API, and I think this case isn't covered but wanted to make sure. Within Actions.xml, I filter on "self" which returns all the device types defined within the plugin. However, I have one device type for which a particular action is not appropriate. There isn't a way to filter out device types, so if I want to keep that device type from being returned, I need to AND together all the devices except that one type. To exclude deviceType3:
- Code: Select all
<Action id="action_id" deviceFilter="self.deviceType1, self.deviceType2, self.deviceType4" uiPath="DeviceActions">
<Name>Action Name</Name>
<CallbackMethod>actionCallbackMethod</CallbackMethod>
</Action>
That works, I'm just double-checking to make sure that's the most efficient way.