How do I set up to search things by shape in a Java Extension?
I have the following implemented in javascript and need to convert it to Java.
I'm not finding any samples that help me with this.
var powerSourceThingShapeName = "CP_RestPowerSourceThingShape";
var query = {"filters": {"type":"EQ","fieldName":"DeviceId","value": DeviceId }};
var params = {
thingShape: powerSourceThingShapeName,
maxItems: 2,
nameMask: undefined /* STRING */,
query: query,
tags: undefined /* TAGS */
};
// result: INFOTABLE dataShape: RootEntityList
// Throws an exception if not found or if too many are found
var things = Resources["SearchFunctions"].SearchThingsByShape(params);

