make a REST call to external service from Collibra DIC
Hi,
I tried to invoke an external REST service end point from within a workflow in Collibra DIC, its giving a connection timeout error. Same happens when I try to import metadata from an external MySQL database. I presume outgoing internet connections might have been disabled. I was told to look at documentation but that didnt help, some are suggesting to use a gateway, but I dont know how to do it.
Raised support ticket but no response yet. Can someone please suggest how do I connect to external service/resource?
Thanks,
Sudhakar
Former User
Posted 5 years ago · Edited 1 year ago·Last reply 3 years ago
5 comments
Former User
OP5 years ago · EditedIs there any roadmap for making calls to external services available by default in Collibra? Something like a webhook or other publish service which can alert on changes or outcomes. Without this, as the previous commenter said, it becomes very crude and cumbersome (and inefficient) to continually poll Collibra for changes.
Given that Mulesoft would have been the original platform to perform this, should there not be a replacement added into the software at some point?
Former User
OP5 years ago · EditedWhat’s the reason for it not being recommended? Pull method from the other system seems like a far more crude approach. To elaborate, our use case is that whenever a change is made to a certain asset we have a workflow which propagates those changes to subscribing systems via an event hub.
I also had a follow-on to the question above, I was able to invoke my external API but was wondering as to what security methods are supported from within a workflow. I.e. can we make calls to external APIs that require OAuth?
Tomasz Tomiczek
·3 years ago · EditedHello,
I am trying to invoke external API from the Collibra workflow as well. Could you please provide some more technical details?
Thanks in advance.
Shirosh Tissera
·5 years ago · EditedHi.
It is not recommended to make external calls from workflows. The recommended way is to make REST calls (GET) from outside DGC to interact with the objects you need. You can do via APIs like AssetApi or AttributeApis with multiple calls or you can use the OutputModule.
Furthermore, going the other way (POST), you can even invoke workflows from outside via RESTApi utilising WorkflowInstanceApi.
Hope this is helpful.
Thank you
Shirosh
yawarkhan
·5 years ago · EditedHi Shirosh,
Recommended way may be to have an integration layer doe the data exchange between Collibra and Partner System.
But if I have a small, simple use case to connect to MySQL database and pull some data ( a few hundred rows/assets) – where I should I place my MySQL jdbc driver jar for it to be available to the Groovy in Workflow.
I have placed the jar under Groovy-lib folder in the customization backup and restored the backup. But I am getting a ClassNotFound on my Driver class.