How to import basic "org.apache.poi.*" api in a bpmn file
Summary: monalishapal is encountering import errors with certain APIs while working with a workflow in a BPMN file. They describe 33 import statements, with 3 APIs causing direct import errors and 4 APIs flagged as indirectly importing. The APIs causing issues include various classes from the 'org.apache.poi.xssf.usermodel' package and 'java.io' package. monalishapal seeks guidance on properly declaring these APIs within Collibra or finding alternative APIs within Collibra's supported scope to resolve these import errors and ensure the workflow functions correctly.
Regarding the import errors(WARN c.c.d.w.s.g.v.NonPublicAPIValidator ) we are encountering, I wanted to provide a bit more detail based on a specific workflow example .
This workflow has 33 import statements defined. Out of these, we are currently seeing direct import errors for only 3 APIs.
1. import org.apache.poi.xssf.usermodel.XSSFWorkbook(Importing [org.apache.poi.xssf.usermodel.XSSFWorkbook] is not allowed.Category: IMPORT. Critical: false. Is added to allow list: false.)
2. import org.apache.poi.xssf.usermodel.XSSFFont(Importing [org.apache.poi.xssf.usermodel.XSSFFont] is not allowed.Category: IMPORT. Critical: false. Is added to allow list: false.)
3. import org.apache.poi.xssf.usermodel.XSSFCellStyle(Importing [org.apache.poi.xssf.usermodel.XSSFCellStyle] is not allowed. Category: IMPORT. Critical: false. Is added to allow list: false.)
Additionally, there are 4 other APIs that are being flagged as Indirectly importing.
4. Indirectly importing [org.apache.poi.xssf.usermodel.XSSFWorkbook] is not allowed. IMPORT. Critical: false. Is added to allow list: false.
5. Indirectly importing [java.io.File] is not allowed. Cause: java.io.File. Category: JAVA_IMPORT. Critical: false. Is added to allow list: false.
6. Indirectly importing [java.io.File.createTempFile] is not allowed. Cause: java.io.File.createTempFile. Category: JAVA_IMPORT. Critical: false. Is added to allow list: false.
7. Indirectly importing [java.io.FileOutputStream] is not allowed. Cause: java.io.FileOutputStream. Category: JAVA_IMPORT. Critical: false. Is added to allow list: false.
This observation leads me to believe that the fundamental syntax and the way we are referencing the APIs within the BPMN file are likely correct, as the majority of the imports are being processed without Importing / Indirectly importing errors.
Given this, could you please provide guidance on how we should handle the 7 APIs in question (the 3 with direct import warnings and the 4 with indirect import warnings)? Specifically, I'd like to understand:
* Where and how we need to declare these 7 APIs within Collibra.
* If there are alternative APIs available within the supported Collibra scope that could serve the same purpose for these specific use cases.
Understanding the proper declaration method or suitable alternatives will be crucial for us to resolve these issues and ensure the workflow functions as expected while adhering to Collibra's security and stability guidelines.
stefan_busch
·1 year agoHi,
do you only get a warning when deploying the workflow or does it throw an actual error and does not allow you to import it?
If you are interested in the whitelisted APIs there is an article here that lists the allowed imports.