IBM Support

JR53908: YOU RECEIVE AN UNDECLAREDVARIABLERUNTIME EXCEPTION WHEN EVALUATING A TASK NARRATIVE FOR A TASK THAT IS IN THE END STATE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A task narrative that contains variables cannot be evaluated if
    the task is in the end state and the variable does not belong to
    the top-level business process definition (BPD). In the
    SystemOut.log and Trace.log files, you see an exception similar
    to the following exception:
    
     JavaScriptRun E   CWLLG2015E:  An unexpected runtime exception
    occurred. See exception for more details.  Error: Undeclared
    local variable, input or output parameter varDifferentName found
    in service "ParentProcess" item "UNKNOWN" location "UNKNOWN".
    You must declare it in order to use it.
    com.lombardisoftware.server.core.
     UndeclaredVariableRuntimeException: Undeclared local
     variable, input or output parameter
    varDifferentName found in service "ParentProcess" item "UNKNOWN"
    location "UNKNOWN". You must declare it in order to use it.
    at com.lombardisoftware.bpd.runtime.engine.st.
      AbstractBPDSymbolTable.get(AbstractBPDSymbolTable.java:350)
    at com.lombardisoftware.bpd.runtime.engine.st.
      AbstractBPDSymbolTable.get(AbstractBPDSymbolTable.java:334)
    at com.lombardisoftware.bpd.runtime.engine.st.
      AbstractBPDSymbolTable.get(AbstractBPDSymbolTable.java:330)
    at com.lombardisoftware.bpd.runtime.engine.js.
      AbstractBPDSymbolTableScriptable.get
      (AbstractBPDSymbolTableScriptable.java:69)
    at org.mozilla.javascript.ScriptableObject.
      getProperty(ScriptableObject.java:1617)
    
    .----------------------------------------------------------
       This is another java stack for this error
    JavaScriptRun E   CWLLG2015E:  An unexpected runtime exception
    occurred. See exception for more details.  Error: Undeclared
    local variable, input or output parameter varDifferentName found
    in service "ParentProcess" item "UNKNOWN" location "UNKNOWN".
    You must declare it in order to use it.
    at
    com.lombardisoftware.bpd.runtime.engine.st.AbstractBPDSymbolTabl
    e.get(AstractBPDSymbolTable.java:133)
        at
    com.lombardisoftware.bpd.runtime.engine.st.AbstractBPDSymbolTabl
    e.get(AbstractBPDSymbolTable.java:120)
        at
    com.lombardisoftware.bpd.runtime.engine.js.AbstractBPDSymbolTabl
    eScriptable.get(AbstractBPDSymbolTableScriptable.java:55)
        at
    org.mozilla.javascript.ScriptableObject.getProperty(ScriptableOb
    ject.java:1617)
    ...
        at
    com.lombardisoftware.bpd.runtime.engine.BPDExecutionTreeNode.eva
    luateEmb eddedJSScript(BPDExecutionTreeNode.java:802)
        at
    com.lombardisoftware.bpd.runtime.engine.BPDExecutionTreeNode.eva
    luateEmbeddedJSScriptSilently(BPDExecutionTreeNode.java:776)
        at
    com.lombardisoftware.server.ejb.api.BPDInstanceAPICore.evaluateT
    askNarrativeFromInstanceIdAndTaskId
    (BPDInstanceAPICore.java:229)
        at
    com.lombardisoftware.server.ejb.api.BPDInstanceAPICore.evaluateT
    askNarrativeFromTaskId(BPDInstanceAPICore.java:172)
    
    .--------------------------------------------------------------
    The error that you see in Process Inspector is
    [7/21/16 10:40:15:529 CEST] 0006337e Engine        E
    CWLLG0181E: The following error occurred in the 820,263 task:
    [<380message:Runtime error in script ("Process:
    'SelectAttachment' ProcessItem: 'Attachments' Type: 'ITEM'"
    -1:-1).Internal Script error:
    com.lombardisoftware.server.core.UndeclaredVariableRuntimeExcept
    ion:
    Undeclared local variable, input or output parameter
    selectedRelease found in service "SelectAttachment" item
    "UNKNOWN" location "UNKNOWN". You must declare it in order to
    use it.
    

Local fix

Problem summary

  • For tasks that are in the end state, the correct variable scope
    can no longer be determined. Evaluating the narrative by using
    the wrong variable scope causes the UndeclaredVariableRuntime
    exception. The last evaluation result for the task narrative is
    already persisted and is returned instead of trying to
    re-evaluate the narrative.
    

Problem conclusion

  • A fix is available for V8.5.6.0 and is planned to be made
    available for V8.5.5.0 that handles the narrative of tasks that
    do not belong to a top-level BPD.
    
    On Fix Central (http://www.ibm.com/support/fixcentral), search
    for JR53908:
    
    1. Select IBM Business Process Manager with your edition from
      the product selector, the installed version to the fix pack
      level, and your platform, and then click Continue.
    
    2. Select APAR or SPR, enter JR53908, and click Continue.
    
    When you download fix packages, ensure that you also download
    the readme file for each fix. Review each readme file for
    additional installation instructions and information about the
    fix.
    

Temporary fix

  • Not applicable
    

Comments

APAR Information

  • APAR number

    JR53908

  • Reported component name

    BPM STANDARD

  • Reported component ID

    5725C9500

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-07-22

  • Closed date

    2015-09-21

  • Last modified date

    2016-10-20

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

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

Fix information

  • Fixed component name

    BPM STANDARD

  • Fixed component ID

    5725C9500

Applicable component levels

  • R855 PSY

       UP

  • R856 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
20 October 2016