Initializing Tag Alarm configuration

I’ve created a driver that uses DBTagStore to store/load Tag configuration. I’m getting an exception when initializing my tag with an Alarm configuration:

java.lang.NullPointerException at com.inductiveautomation.ignition.gateway.sqltags.execution.tags.AbstractExecutableTag$AlarmConfigHarness.initialize(AbstractExecutableTag.java:969) at com.inductiveautomation.ignition.gateway.sqltags.execution.tags.AbstractExecutableTag.initialize(AbstractExecutableTag.java:348)

My code does this, where def is the TagDefinition I receive from the TagStore:

this.configure(def); this.initialize(null);

Is there any further step I need to set up Alarm configuration so the AlarmConfigHArness initializes properly?

Many thanks!
Ivan

So I did some blind debugging on AbstractExecutableTag and found that the NULL pointer was caused because my TagExecutor returned NULL on getObjectPath.

I have modified it so it returns QualifiedPath.parseSafe("[MyProviderName]"), but what should it really be? javadoc is blank here.

Cheers
Ivan

Hi,

That’s pretty much it. The built in tag providers use this:

QualifiedPath.of(WellKnownPathTypes.Provider, providerName);

Regards,