BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Javascript intellisense in IBM BAW Web Process Designer

    Posted 10/05/20 12:14 PM
    Edited by Zoran Cerkez 10/06/20 01:52 AM
    In case we have this part of code:

    var testObj = tw.local.someObject....

    and try to use intellisense on object testObj like
    testObj. (and hit ctrl+space)

    IBM BAW javascript editor will return nothing.

    It is a huge problem since developers that previously worked with Eclipse Process Designer doesn't accept such limitations and we are struggling to keep our client.

    Is there any chance that we can do something with this problem? Some extra settings ...

    ------------------------------
    Zoran Cerkez
    www.itsphere.rs
    Belgrade
    +381605000660
    ------------------------------


  • 2.  RE: Javascript intellisense in IBM BAW Web Process Designer

    Posted 10/05/20 03:37 PM
    In the WebPD hitting ctrl+space will pop up the auto complete in the JSBlocks.  I've not tried everywhere.

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



  • 3.  RE: Javascript intellisense in IBM BAW Web Process Designer

    Posted 10/06/20 10:57 AM
    Hi,

    The code assist works if you declare a service/process variable - say myVar is internal variable of type Customer. In a CSHS, you do something like this:
    tw.local.myVar = {};
    tw.local.myVar.(CTRL+SPACE) -> will give you the fields of the Customer data type.

    Regards,
    Todor

    ------------------------------
    TODOR MOLLOV
    ------------------------------



  • 4.  RE: Javascript intellisense in IBM BAW Web Process Designer

    Posted 10/06/20 11:26 AM
    Yes, this is real problem with the WebPD even with service flows.
     If you do like - 
    var nameValue = new tw.object.NameValuePair(); nameValue .(ctrl+space)​This will not give any return, you need to have an actual variable created in order to use this feature. 
    I am not sure if we can submit a RFE for this.

    ------------------------------
    Atanu Roy
    ------------------------------



  • 5.  RE: Javascript intellisense in IBM BAW Web Process Designer

    Posted 10/06/20 10:06 PM
    Hi Zoran,

    Auto suggestion of parameters and functions only works if you do a CTRL + SPACE after a tw.local or tw.object namespace. If you create a pointer variable using var myVar, then code assist will not work. 

    I remember this is also the behavior in Desktop Designer if my memory serves me right (haven't used Desktop Designer for the last 2 years).

    Me personally, as a developer, never find this a difficulty, or a showstopper / unacceptable limitation. BPM is all about business transformation, certainly not intended to make some junior developers feel happy. 

    Regards,


    ------------------------------
    Thong Huynh
    Sydney NSW
    ------------------------------



  • 6.  RE: Javascript intellisense in IBM BAW Web Process Designer

    Posted 10/07/20 03:17 AM
    Edited by Zoran Cerkez 10/07/20 03:17 AM
    Thank you all,

    I hope that in future versions this functionality will be available in WebPD.

    ------------------------------
    Zoran Cerkez
    ------------------------------