1.2K Messages
Marketplace workflow - Operating Model Diagnostic
Operating Model Diagnostic - Collibra Marketplace
It seems the marketplace workflow recently released (2022 July 1st) for the Operating Model Diagnostic uses some outdated code and crashes.
- Use of the deprecated rest v1 API
- Old “builders” usage that is not documented anymore
//Attach file to the Resource
def exportFileUrl = applicationApi.getInfo().getBaseUrl() + "rest/1.0/file/" + exportFileId.getId()
attachmentApi.addAttachment(builders.get("AddAttachmentRequest")
.baseResourceId(item.id)
.baseResourceType(item.getType())
.file(new FileReference(exportFileName, fileApi.getFileAsStream(exportFileId.getId())))
.build()
)
The official development guide proposes this code: Add an attachment with a workflow - Collibra - Developer
Add an attachment with a workflow
import com.collibra.dgc.core.api.dto.instance.attachment.AddAttachmentRequest
import com.collibra.dgc.core.api.component.instance.AttachmentApi
import com.collibra.dgc.core.api.component.file.FileApi
import com.collibra.dgc.core.api.model.file.FileInfo
UUID fileUUID = string2Uuid(file)
FileInfo fileInfo = fileApi.getFileInfo(fileUUID)
String fileName = fileInfo.getName()
InputStream fileStream = fileApi.getFileAsStream(fileUUID)
AddAttachmentRequest attachmentRequest = AddAttachmentRequest.builder()
.baseResourceId(item.getId())
.baseResourceType(item.getType())
.fileStream(fileStream)
.fileName(fileName)
.build()
attachmentApi.addAttachment(attachmentRequest)
Will there be a new release soon, or is it better to update the workflow by ourselves?
alvinuseree
157 Messages
2 years ago
Thanks for flagging this workflow exists, definitely something I’ll be looking into.
I’d also be keen to understand what the official line is in such situations - @kristen.freer any chance you could do some digging internally?
2
0
alvinuseree
157 Messages
2 years ago
Cheers for the info - out of curiosity does the workflow outputs give you anything you wouldn’t be able to get from a CMA export or the OMRE?
1
0
santanupaule93449
1 Message
2 years ago
Thank you @arthur.burkhardt, @alvin.useree for using this workflow and highlighting this. We would like to hear more on what kind of other info/stat to be include in the report would be useful for the community to align the operating model as per best practice. @arthur.burkhardt as you mentioned it has to be resource workflow. It’s also mentioned in the user guide. We’ve included this in the backlog for next release. @alvin.useree you can execute this as resource workflow and get the statistics and advice. I would suggest to go through the user guide once before using the workflow. Thanks @kristen.freer, @ann.wuyts for including in the discussion.
1
0
scottbenson
77 Messages
•
250 Points
8 months ago
@kristen.freer and @santanu.paul.collibra.com Has there been any progress on this? I liked the tool when I last used it- I was disappointed to find out that it doesn’t work anymore. ( I’ve been away from Collibra for the past year). When I load the WF as Global, I am able to execute it, but it fails. When I load it as a Resource, I am unable to execute it.
It was very useful - I miss it!
Thanks
0
0
paulmcgrath
1 Message
5 months ago
Has anyone been able to use workflow Operating Model Diagnostic recently? Was able to last year, but now get error
Cannot invoke method getId() on null object'
. Collibra Support says they do not support this workflow and sent me to Data Citizen hoping someone else figured it out. HELP!0
0