BPM, Workflow, and Case

 View Only
  • 1.  FileNet Workflow Custom Component - Log4j Compatibility

    Posted Tue May 16, 2023 11:23 AM

    Hi All,

    Requirement: I need to implement a workflow custom component. Need to use Logj2 or Logj1 for this component.
    Notes: I have already implemented workflow custom components in the past. I have created Code Module in Object Store and configured the same in the Process Configuration Console for the new workflow custom component.
    Queries:
    1.Does Filenet supports Log4j2/Log4j1 in custom workflow components?
    2.I have a dependent jar for this workflow component. May I know how can I add dependent jar to this Code Module?



    ------------------------------
    RAVI KUMAR
    ------------------------------


  • 2.  RE: FileNet Workflow Custom Component - Log4j Compatibility

    Posted Tue May 16, 2023 04:06 PM
    Hi,

    1.Does Filenet supports Log4j2/Log4j1 in custom workflow components?
    <<yes it compont support both versions.
    2.I have a dependent jar for this workflow component. May I know how can I add dependent jar to this Code Module?

    <<Add dependency jar along with your compont jar as content list if code module.


    Thanks,
    Ravi

    --
    Best Regards,
    Ravi Teja M.
    +91 9030529333.





  • 3.  RE: FileNet Workflow Custom Component - Log4j Compatibility

    IBM Champion
    Posted Wed May 17, 2023 08:52 AM

    So a couple additional notes here...

    • FileNet used to come bundled with a completely custom version of log4j 1.x, but that's been dropped recently in favor of Java Utility Logging (JUL). If your version of FileNet has the log4j 1.x jar bundled with Jace.jar, etc. I'd recommend using that specific variant of log4j as otherwise you'll have annoying class loading conflicts that just aren't worth anyone's time to troubleshoot.
    • If you're using a newer version of FileNet that has moved away from log4j, I'd still advise against using it. That library has several unfixable security issues, alternatives like JUL or others with compatible interfaces are available.
    • When you create the code module object in the repository, you can add as many jars to it as individual content elements. All of the jars will be loaded by the code module class loader. Just, again, keep in mind that you don't want to upload things that are a native part of FileNet as you might have conflicts.

    Best,
    Eric



    ------------------------------
    Eric Walk
    Director

    O: 617-453-9983 | NASDAQ: PRFT | Perficient.com
    ------------------------------



  • 4.  RE: FileNet Workflow Custom Component - Log4j Compatibility

    Posted Fri May 26, 2023 11:52 AM

    Hi Eric,

    I am using CPE 5.5.8. I think it doesn't have specific variant of log4j. Noted your valuable inputs. Thank you very much.



    ------------------------------
    RAVI KUMAR
    ------------------------------



  • 5.  RE: FileNet Workflow Custom Component - Log4j Compatibility

    Posted Fri May 26, 2023 11:37 AM

    Thank you Ravi Teja.



    ------------------------------
    RAVI KUMAR
    ------------------------------