Fixes are available
APAR status
Closed as program error.
Error description
When an exposed process variable (EPV) is used in the Java Script due-date expression of a BPD a NullPointerException can be observed in the logs.
Local fix
n/a
Problem summary
NullPointerException when accessing exposed process variables in the due date expression of a BPD. PROBLEM DETAILED DESCRIPTION: When an exposed process variable (EPV) is used in the Java Script due-date expression of a BPD a NullPointerException alike to the following can be observed in the logs: 00000152 wle E com.lombardisoftware.core.script.js.JavaScriptRunner execute java.lang.NullPointerException java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:950) at java.util.Date.before(Date.java:909) at com.lombardisoftware.client.persistence. EpvVarValueFactory.getCurrentValue (EpvVarValueFactory.java:134) at com.lombardisoftware.core.script.js. AbstractTWEpvVariableScriptable.getDefaultValue (AbstractTWEpvVariableScriptable.java:63) at org.mozilla.javascript.ScriptRuntime.toNumber (ScriptRuntime.java:335) at org.mozilla.javascript.NativeNumber.execIdCall (NativeNumber.java:127) at org.mozilla.javascript.IdFunctionObject.call (IdFunctionObject.java:129) at org.mozilla.javascript.Interpreter.interpretLoop (Interpreter.java:3330) at org.mozilla.javascript.Interpreter.interpret (Interpreter.java:2487) at org.mozilla.javascript.InterpretedFunction.call (InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall (ContextFactory.java:398) at org.mozilla.javascript.ScriptRuntime.doTopCall (ScriptRuntime.java:3070) at org.mozilla.javascript.InterpretedFunction.exec (InterpretedFunction.java:175) at com.lombardisoftware.core.script.js.JSScript.exec (JSScript.java:60) at com.lombardisoftware.core.script.js.JavaScriptRunner$2. execute(JavaScriptRunner.java:260) The reason for the NullPointerException is that the EPV assign date is not set in the execution context at this early process creation state. This date is used to determine the currently valid exposed variable value, especially for the case when the "In-Progress Tasks Use New Values" on the EPV definition is checked.
Problem conclusion
This fix ensures that the date is set on the BPD execution context when the BPD due date is calculated. FIX AVAILABILITY: iFix for 8.0.1.1 is/will be available on Fix Central; search for APAR JR49040 at http://www.ibm.com/support/fixcentral/ iFix for 8.5.0.1 is/will be available on Fix Central; search for APAR JR49040 at http://www.ibm.com/support/fixcentral/ Fix is also targetted for inclusion in next fixpack for BPM 8.0.1 When obtaining any of the above fixes, be sure to download the accompanying readme, for itself, and any prerequisite fixes, and review them thorougly.
Temporary fix
Comments
APAR Information
APAR number
JR49040
Reported component name
BPM ADV PATTERN
Reported component ID
5725G7600
Reported release
801
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-01-14
Closed date
2014-02-11
Last modified date
2014-02-11
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
R801 PSY
UP
R850 PSY
UP
[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1"}]
Document Information
Modified date:
07 October 2021