outputCreatedTermId and other workflow magic
I’m hitting a wall here. In a workflow creating an asset, I’m trying to display the popup with the link to the newly created asset, but it does not appear and I can’t figure out what I’m doing wrong.
Collibra OOTB workflow intakeBusinessTerm WORKSdef newAssetUuid = assetApi.addAsset(AddAssetRequest.builder()
.name(signifier)
.displayName(signifier)
.typeId(conceptType)
.domainId(string2Uuid(intakeVocabulary))
.build()).getId()
execution.setVariable("outputCreatedTermId",uuid2String(newAssetUuid))
def newAssetUuid = assetApi.addAsset(AddAssetRequest.builder()
.name(code)
.displayName(name)
.typeId(dpiaTrackingTypeUuid)
.domainId(dpiaTrackingDomainUuid)
.status(newStatusUuid)
.build()).getId()
execution.setVariable("outputCreatedTermId",uuid2String(newAssetUuid))
Does anyone know what magic incantation should be performed to get the metadata gods to grace me with a useful pop-up?
arthurburkhardt
3 comments
arthurburkhardt
OPI think I found the issue!!!

The workflow was deployed as applying to an asset.
When changing the configuration to “global”, tadaaa, the pop up appeared.
That’s ok. Deep breaths.
Tom Friesen
Hey Arthur,
On the off-chance, is there a workflow event that would be triggering on the creation of the asset, effectively preventing its final creation until the triggered process is complete?
Cheers,
Tom
arthurburkhardt
OPHum no… There’s just start event -> script -> end
and the script does the following things:
execution.setVariable)getWorkflowDefinition,changeWorfklowDefinition)addAsset)getUser,addResponsibility)addAttribute,addRelations)addAttachment)execution.setVariable)Aaaannd… that’s about it. So I guess there’s some secret logic here that I don’t understand.
Is there any documentation about this? I cannot find anything.
I stripped down the script to the bare minimum, and it’s still failing to display the popup…
This is now the entirety of the script.