Workflows - Create a Data Usage Asset
Hi everyone,
relatively new to designing workflows and got stuck on what seems to be a simple thing:
- I want the workflow to create a Data Usage asset and alllow the user to attach either a table or PowerBi report as an asset
- a approval/management workflow will then folllow
To create the Data Usage asset, I have done the following:
Start event with the subject (Title), description (Description) and the UUIDs for the Data Usage asset and the New Data Sets Domain.
The script task has the following builder:
import com.collibra.dgc.core.api.dto.instance.asset.AddAssetRequest
def newDataUsageUuid = assetApi.addAsset(AddAssetRequest.builder()
.name(“subject”)
.typeId(string2Uuid(UUIDdataUsage))
.domainId(string2Uuid(UUIDnewDataSetsDomain))
.build()
);
The challenge is that I cannot leverage the subject to set the name of the Data Usage asset … I have tried the .toString() method, to define it as a variable first - all without success.
How do I use the subject I created when starting the workflow?
Thank you!
Gabi
Former User
·3 years ago · Edited@gabriele.christensen.nrg.com Try using this
def tmp_az = “subject”
def addAzureIdentityAssetRequest = builders.get(‘AddAssetRequest’)
.displayName(azureIdentityName)
.name(tmp_az)
.domainId(string2Uuid(id_domain_consumer))
.typeId(string2Uuid(id_assetType_azureIdentity))
.statusId(string2Uuid(id_status_candidate))
.build()