Collibra Connect - Trigger workflow when importing assets
Hello everyone,
I am trying to trigger a workflow whenever Collibra Connect imports new assets. However, seems like if you use the Import API requests (/rest/2.0/import/json-job in my case) to import them, the workflow doesn’t consider it as a “Create new asset” job and won’t trigger. Whenever I do it manually, works perfectly fine.
Is this an error or is it supposed to behave this way? How could I make it so it triggers the workflow? I’ve tried with other events such as “Change status” but none seem to work unless done manually.
Thanks you!
Former User
Posted 5 years ago · Edited 1 year ago·Last reply 5 years ago
5 comments
pmahend3
·5 years ago · EditedHi Miguel,
This behavior of the specific workflow trigger in question is by design usually because the import API is used to import a larger number of asset and kicking off potentially thousands or even tens of thousands of workflow instances is a guaranteed way to bring the system to its knees.
Note that this suggestion works better when you’re using the Collibra Connector for upserts/imports - The response of the upsert operation is a list of assets that were ingested with the addition of the UUID of the asset that was created/updated. Once the upsert is completed, just loop through this response and use the Start Workflow operation in the connector and explicitly pass the assetId of each asset ingested. I hope this helps.
Cheers
karolgabarkiewicz
·5 years ago · EditedHi,
One of the options can be also a use of start event feature in workflow configuration in Collibra. You can check how it is setup in OOTB wf: Assign Owner to Data Set.
in this example every time when new data set is created workflow is triggered automatically in collibra.
karolgabarkiewicz
·5 years ago · EditedHi,
One of the options can be also a use of start event feature in workflow configuration in Collibra. You can check how it is setup in OOTB wf: Assign Owner to Data Set.
in this example every time when new data set is created workflow is triggered automatically in collibra.
Former User
OP5 years ago · EditedHello Karol,
This is what I tried, however, seems like whenever you use the Import API these events don’t execute. This seems to be done on purpose by Collibra, so I guess that the only way would be to find a work-around.
Regards
arthurburkhardt
·5 years ago · EditedOne possibility is to start the workflows automatically, using the /workflowInstances endpoint.
Either you know which assets need to trigger a workflow, or you can query with a filter on “createdOn” and “createdBy” to get newly created assets and trigger workflows.