ConfigurationTable in ThingShapes / Where does it show up?
Hello,
I started to develop some Java-Extensions to solve some issues, that we where not able to solve with pure javascript. For some of these functional modules it would be interesting to have them as ThingShape to enable reuse on different Things.
The Eclipse-Plugin allows me to add a ConfigurationTable to the ThingShape and everything compiles properly.
But when I use this ThingShape, I can not see my ConfigurationTable entries anywhere?
Ok my first use example, we would like to have a TimerShape that behaves similar like TimerTemplate:
@ThingworxConfigurationTableDefinitions(tables = {
@ThingworxConfigurationTableDefinition(name = "Settings", description = "General Settings", isMultiRow = false, ordinal = 0, dataShape = @ThingworxDataShapeDefinition( fields = {
@com.thingworx.metadata.annotations.ThingworxFieldDefinition(name="updateRate", description="Update rate", baseType="NUMBER", aspects={"defaultValue:60000"}),
@com.thingworx.metadata.annotations.ThingworxFieldDefinition(name="enabled", description="Automatically enable timer on startup", baseType="BOOLEAN", aspects={"defaultValue:true"}),
@com.thingworx.metadata.annotations.ThingworxFieldDefinition(name="runAsUser", description="User context in which to run event handlers", baseType="USERNAME")
}))
})
public class TimerTS {
// private static Logger _logger = LogUtilities.getInstance().getApplicationLogger(TimerTS.class);
public TimerTS() {
// TODO Auto-generated constructor stub
}
@ThingworxServiceDefinition(name = "OnTimerTick", description = "Called by timer each time the it is triggered ...", category = "Timer", isAllowOverride = true )
@ThingworxServiceResult(name = "Result", description = "", baseType = "NOTHING", aspects = {})
public void OnTimerTick(
@ThingworxServiceParameter(name = "Timestamp", description = "\t", baseType = "DATETIME") DateTime Timestamp) {
}
}

