D

26 Messages

 • 

700 Points

Monday, April 8th, 2024 8:05 PM

Setting Related Resource in a user task

How do I set the related resource in a user task?   A lot of user task, it automatically sets, but I have one where I created a new asset that is defined in our instance and it is not set automatically.

92 Messages

 • 

3.2K Points

9 months ago

Hey Donna. 

You can add a relation to an asset with a script task that use the SetAssetRelationsRequest.Builder

assetApi.setAssetRelations(SetAssetRelationsRequest.Builder()
.assetID(string2Uuid(**UUID of asset to add relation to**))
.relatedAssetIds(**List<UUID>  of asset IDs to relate the new asset to**)
.typeId(string2Uuid(**Resource ID of new relation**)
.build()
)

Hope that helps,

Sean

26 Messages

 • 

700 Points

@SeanPyle​   Thanks for the reply.    Maybe my question was not specific enough.   I am wondering if there is a way to set a related asset so that it shows up in a user task.   It seems to happen automatically in some, as shown in this pic where it shows that actual business term that was proposed and provides a link  (in blue)

92 Messages

 • 

3.2K Points

@donnapace​ I see what you're saying now. I can't give you a definite answer on this one.

For what it's worth, It seems to appear when I trigger an action in Collibra from an asset's page.  For example, triggering the ask-the-expert workflow from an asset's page shows the Related to section in subsequent user tasks within that process.

I imagine workflows triggered by the global create button would not show this option since the system cannot determine the relation.

18 Messages

 • 

1.1K Points

@donnapace​ Hi Donna,

As of my knowledge, you can try using custom form "asset" for the user task where you have to put your variable (where you have asset id in it) in the default field in the form and set it as Read Only.

Hope this helps,
Paresh

Loading...