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
Posted 5 years ago · Edited 1 year ago·Last reply 5 years ago
3 comments
arthurburkhardt
OP5 years ago · EditedI 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
·5 years ago · EditedHey 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
OP5 years ago · EditedHum 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.