BPM, Workflow, and Case

 View Only
  • 1.  Running custom JS in Coach UI?

    IBM Champion
    Posted 24 days ago

    Hi all, We are working on creating a custom component in a BAW/Coach UI.  We are still having some basic issues around training and understanding, but finding resources to help is very limited and expensive.

    #1 - Can you use minified JS files in Coach?  our build names them .mjs and the import is limited to .js.  This implies that Coach can not process a minified file.  True?  If it can, what are others doing to do such work?

    #2 - We are having file load issues.  We can only use the F12 DevTools to see what is happening, but we are not able to really figure out why is not able to load.  We had that initially until we learned to include the file in the UI part.  So the file is in the files and the include section of the UI.  But still not working.  What debugging tools are we missing to help understand what is going on?

    Thank you.



    ------------------------------
    Mike Prentice
    ------------------------------


  • 2.  RE: Running custom JS in Coach UI?

    IBM Champion
    Posted 24 days ago

    Hello Mke,

    To answer your questions - 

    1. Yes, you can use a minified JS with .js extension for sure, it works. I never tried with .mjs extension, not very sure about this.
    2. If you can post the errors you are seeing in the DevTools console, that would help us to identify the issue. Also, if you take any out of the box UI component from the UI Toolkit and explore it, you will get an idea how JS modules are loaded.

    Thanks!



    ------------------------------
    Atanu Roy
    Lead Engineer
    London Stock Exchange Group
    ------------------------------