This function was pretty important to the functionality of one of our modules. Is there some other way to do this now?
context.getProjectManager().find(<projectName>)
?
Ahhh thanks! phew thats a relief
Actually adding to this, also needed is the RuntimeProjectJsonSerializer.toJson
which is now RuntimeResourceCollectionSerializaer.forCollection().serialize()
method, but I’m not sure how to use the new JsonSerializationContext. Is there some default context or builder?
If you have a project to serialize (curious what your end goal is, if you're willing to share) you want RuntimeResourceCollectionSerializer.forProject()
.
But you don't actually have to do that.
com.inductiveautomation.ignition.common.resourcecollection.json.ProjectEncoder.get()
gives you an instance with a bunch of utilities.
Ah that might work even better! Thanks. Don’t believe I can give exact details, but its an internal tool my company uses for development