Are we suppose to create a new uri while adding an existing artifact in module using DNG module API?
I'm trying to add an existing artifact to a module using DNG module API. Actually I'm successfully able to add it. But while new entry for each artifact, we are suppose to give the uri. I think this uri should be unique and non-existing one. when creating a new uri, what format do I suppose to use to maintain unique one ? Because sometimes it's throwing an error.
Data Entry :
{
"type": "dng_module:Binding",
"isHeading": false,
"childBindings": []
}
Accepted answer
Hello
You must first create the base artifact, then add it in the module structure, using the base artifact URI.
{
"type": "dng_module:Binding",
"component": "https://xyz.com/rm/cm/component/_Q8TTYG78Ee2lPbY4PFEKxg",
"isHeading": false,
"boundArtifact": <URI of the newly created artifact> ,
"childBindings": []
}
For the uri, use the following pattern:
<Module structure resource URI> + "#" + <sequential number>
https://<elmserver>/rm/resources/<module UUID>/structure#<SeqNum>
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 14 '24, 8:41 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 14 '24, 8:44 a.m.