Bug 747342 - handling of process instance variables with null values
Summary: handling of process instance variables with null values
Keywords:
Status: NEW
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: jBPM 5
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Kris Verlaenen
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-19 14:49 UTC by Jeffrey Bride
Modified: 2022-01-05 05:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)

Description Jeffrey Bride 2011-10-19 14:49:20 UTC
both org.jbpm.workflow.instance.node.WorkItemNodeInstance and org.jbpm.workflow.instance.node.SubProcessNodeInstance explicitly filter out process variables whose values are null.

we have some use cases where we'd like our custom workitemhandlers to still be made aware of those process instance variables even if their values are null.

continued discussion from jbpm5 IRC:


Oct 19 09:05:14 <krisv> jbride: the difference is if you also have a hardcoded value, so assume you set the parameter x hardcoded to "SomeValue", the mapping will then override this value _only if a value is available
Oct 19 09:07:13 <krisv> jbride: where would this make a difference for you (meaning, what's the use case where you would like to see a null value)? when is there a difference between a null value and a value not being there (key not set) for you?
Oct 19 09:14:55 <jbride>        krisv:  thanks.  i imagine there's probably more than one way to approach this ....currently, we have a custom work item handler that invokes a remote database stored procedure using the process instance inbound hashmap. nulls are legit values for this stored procudure.
Oct 19 09:17:24 <krisv> jbride: so the stored procedure has a distinction between a value not being there and a value being null?
Oct 19 09:17:26 <jbride>        krisv:  i'll have to study a little more regarding hard coded values
Oct 19 09:17:36 <jbride>        krisv:  that is correct
Oct 19 09:18:31 <krisv> jbride: maybe I can alter the code to write the value anyway if the value is not predefined (hardcoded)?
Oct 19 09:19:08 <krisv> jbride: or see if we can support the notion of a variable not set vs. a variable with null value


Note You need to log in before you can comment on or make changes to this bug.