BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Javascript file uploaded as Server Files isn't loaded on BAW 19

  • 1.  Javascript file uploaded as Server Files isn't loaded on BAW 19

    Posted Mon December 02, 2019 09:05 AM
    Hello,

    on previous versions os IBM BPM we could upload a Server File (javascript) and all functions on it were automatically loaded, so you could call those methods directly on a Server Script.
    Apparently it's not working anymore on BAW 19, but we still have the Server File option to upload files.

    Does it work only for JAR files from now? Is there a way to upload a javascript file and use their functions directly on Server Script?

    Thanks

    ------------------------------
    Ranieri Mazili
    ------------------------------


  • 2.  RE: Javascript file uploaded as Server Files isn't loaded on BAW 19

    Posted Mon December 02, 2019 04:35 PM
    I just tested this in my 8.6(201803) box and it worked.  Then I exported that TWX and imported it into a BAW 19.0.0.1 Box, and it still worked.  My test was very simple (set a string value) since I was only attempting to verify what you asked.  Is there any chance you are attempting to use the JS logic in a CSHS which only support Browser JS calls and not Server side logic?  I used Service Flows in my testing to avoid any such problems.

    (The JS file that I had basically only has then following)
    function setStringValue(){
      tw.local.myString = 'Initalized in the uploaded File';
    }


    -Andrew Paier

    ------------------------------
    Andrew Paier
    ------------------------------