Collibra Community logo
    • Community Resources
      • Discussions
      • Adoption Corner
      • FAQ
      • Take a tour
      • Request a demo
      • Community job board
      • Resources
    • Participate
      • Discussions
      • Ideation
    • Learn
      • Customer stories
      • Marketplace
      • Blogs
      • University
      • Knowledge Base
      • Developer Portal
      • Podcast “Data Citizens Dialogues”
      • Collibra Excellence Awards
    • Support
      • Support Portal
      • Documentation
      • Release notes
      • Product resource center
    • User Groups and Events
      • Events
      • Collibra Customer Events
      • Data Citizens® User Groups
    All PostsCommunity ArticlesDiscussions
    Leaderboards
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    Discussions
    Collibra Logo Community
    • About Collibra
    • Collibra Platform
    • Blog
    • Careers
    • Partner Program
    • Contact us
    © 2026 Collibra. All rights reserved.
    • Privacy and legal
    • Do not sell or share my personal information
    © 2026 Collibra. All rights reserved.
    • DevelopersChevronRightIcon
    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

    gabrielechristensen
    gabrielechristensen
    Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
                                           
             
    1 comment

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
    Former User

    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()

                          def AzureIdentity = assetApi.addAsset(addAzureIdentityAssetRequest)
                                           
                                                                                     
    Leaderboards
    1
    Grant Rollerson

    Grant Rollerson

    SUNCORP CORPORATE SERVICES PTY LTD
    2
    Tom Friesen

    Tom Friesen

    Algonquin College
    3
    SB

    S Benson

    Plus3 IT
    4
    S

    stefan_busch

    5
    Brian Lloyd

    Brian Lloyd

    USA TODAY Co.
    6
    D

    daverichard

    View all
    •                                                              
    •                                                              
    •