Overview
The DeviceGroups Script Service gives the opportunity to manage RM Device Groups via scripts (e.g. in rules and tasks). It exposes similar functionality as Device Groups Java APIs.
The script service is provided on RM by packages/gdm/m2m.groups.rules.service.jar bundle.
Usage
The main (entry-point) interface is com.prosyst.mprm.script.m2m.groups. GroupAdminScriptService which is bound in the scripts under the alias "groupAdmin" or the short "ga" alias. The service provides the same methods as GroupAdmin service for managing groups and group types.
ga.listGroups(null).each { groupID -> def group = ga.findGroupByID(groupID); println "Group '" + group.name + "' devices: "; group.listComponents(null, false).each { id -> println " " + id; }}API Reference
Device Groups Script service API documentation is available at the "Group Admin Script" in Script Doc.