Parse Tag Paths

Hello,

I am working on a module with the Ignition SDK that needs to update tags. I have a java map of tag paths in string format (e.g., [default]path/to/tag) and values, and I would like to write the values to the appropriate tags. I found the following example in the Ignition SDK Programmer's guide, but it looks like the command to parse the string into a TagPath is deprecated.

private void editTag() throws Exception {    
IgnitionGateway context = IgnitionGateway.get();    
GatewayTagManager tagManager = context.getTagManager();    
TagProvider provider = tagManager.getTagProvider("default");  
// Change tag provider name here as needed     
TagPath memoryTag0 = TagPathParser.parse("MemoryTag0");

Specifically, it looks like "TagPathParser" is deprecated.

What is the preferred up to date command to parse the string into a TagPath object?

TagPathParser from the non-deprecated package com.inductiveautomation.ignition.common.tags.paths.parser.

1 Like

Perfect. Thanks!