User development,

A new message was posted in the thread "JBPM 4.3 EL cannot read process 
property with null value":

http://community.jboss.org/message/523352#523352

Author  : Jakub Sobolewski
Profile : http://community.jboss.org/people/jsobolewski

Message:
--------------------------------------------------------------
Actually third case with non-existing variables isn't that critical... If 
someone asks for non-existing variable in EL he gets exception and should do 
something about it (initiate it with some value or null). Returning null in 
Java is not a problem but it should be mentioned in javadoc... Now javadoc on 
ExecutionService.getVariable says only "retrieves a variable".
 
It's the second case that causes problems. Like in my test case where Java 
method can have null value parameters and I can't pass null variable from EL. 
 
For now I use simple workaround - I created resolver class and set it in 
process as "resolver" variable. Now I can use it in JPDL to retrieve variables 
that I know can be null: 
 
<object expr="#{resolver}" method="get">
      <arg><string value="var_name_here" /></arg>
 </object>
 
Resolver's get method just returns executionService.getVariable

--------------------------------------------------------------

To reply to this message visit the message page: 
http://community.jboss.org/message/523352#523352


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to