Hello, I am struggling to determine how to create a UDT Instance with a specified UDT parent data type in version 8.1.48 of the java SDK.
I am able to create a UDT definition for a ManagedTagProvider as follows:
// create ManagedTagProvider
ProviderConfiguration configuration = new ProviderConfiguration(name);
configuration.setAllowTagCustomization(true);
configuration.setPersistTags(false);
configuration.setPersistValues(false);
configuration.setAllowTagDeletion(true);
configuration.setAttribute(TagProviderMeta.FLAG_PROVIDES_COMPLEX_TYPES, true);
// assume context (of type GatewayContext) is defined
ManagedTagProvider provider = context.getTagManager.getOrCreateManagedProvider("My Provider", configuration);
// create UDT Definition
TagConfiguration myDefinition = new TagConfigurationBuilder().name("MyDefinition").property(WellKnownTagProps.TagType, TagObjectType.UdtType).build();
provider.configureTag("MyDefinition", myDefinition)
It is unclear how to define a UDT Instance with the Parent Data Type set, and I have been unable to find this documented anywhere. I have tried the following:
- set
WellKnownUDTParameters.PathToParentFolder
to the UDT definition path - set the UDT instance
TagConfiguration
as a child of the UDT definition - set UDT Instance
DataType
tag property to the UDT defintion
If anyone knows of a way to do this I would appreciate it! Thanks!