IBM Support

JR45080: JAVASCRIPT EXCEPTION OCCURS WHEN RUNNING A BPD WHERE "AVAILABLE IN SEARCH" IS CHECKED FOR A VAR UNDER A COMPLEX VAR LIST

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • Here is an example variable structure:
    CmplxVar1
        CmplxVar2 (list)
            ID
    The Process Designer allows you to select "ID" as being
    "Available in Search".  However, if you pull CmplxVar2 (list)
    outside of the other complex var and on it's own, then you can
    no longer select "ID" as being Avail in Search.  This is
    because it's in a list.  Similarly, it shouldn't be selectable
    when hidden under the other complex variable which is not a
    list.  This is inconsistent/faulty behavior.
    The exception seen will be similar to this:
    CWLLG0324W: The variable is set, but the evaluation failed for
    value expression:tw.local.MyComplexObjectVar.MyL2[].ID for the
    searchable field with alias: MyID in process: TestBPD.
                                     [TeamworksException
    name='syntax error', message='<JSScript>', line=1, pos=34
    nested=<none>]
        at
    com.lombardisoftware.core.script.js.JSScript$CompileErrorReporte
    r.error(JSScript.java:171)
        at org.mozilla.javascript.Parser.addError(Parser.java:146)
        ...
        ...
    

Local fix

  • Uncheck "Available in Search" for any variables in a list.
    

Problem summary

  • Search alias for a variable (or its parent chain) which is a
    list is not supported by the engine.
    
    USER AFFECTED:
    Business Process Manager 8.0.x Advanced, Standard, and Express
    users who are trying to enable search alias for a variable (or
    its parent chain) which is a list.
    
    PROBLEM DETAILED DESCRIPTION:
    Search alias for a variable (or its parent chain) which is a
    list is not supported by the engine.  Therefore, the search
    alias checkbox for those fields are made disabled in Process
    Designer.
    
    PROBLEM CONCLUSION:
    This fix will disable the search alias check box in Process
    Designer, thus prevent invalid javascript exception on the
    server side, but is not intended provide search support for list
    variable.
    
    FIX AVAILABILITY:
    Fix for 8.0.1 is planned for next cumulative maintenance
    deliverable.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    JR45080

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    800

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-07

  • Closed date

    2013-02-28

  • Last modified date

    2013-02-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R801 PSY

       UP

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
11 October 2021