[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...
Norman Richards
norman.richards at jboss.com
Mon Oct 15 18:08:08 EDT 2007
User: nrichards
Date: 07/10/15 18:08:08
Modified: src/main/org/jboss/seam/contexts
BusinessProcessContext.java
Log:
/JBSEAM-2047
Revision Changes Path
1.39 +17 -18 jboss-seam/src/main/org/jboss/seam/contexts/BusinessProcessContext.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BusinessProcessContext.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/BusinessProcessContext.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- BusinessProcessContext.java 19 Jun 2007 19:02:31 -0000 1.38
+++ BusinessProcessContext.java 15 Oct 2007 22:08:08 -0000 1.39
@@ -107,16 +107,15 @@
// this implementation requires a hit to the database!
HashSet<String> results = new HashSet<String>();
org.jbpm.taskmgmt.exe.TaskInstance taskInstance = getTaskInstance();
- if (taskInstance==null)
- {
+ if (taskInstance==null) {
ContextInstance context = getContextInstance();
- if ( context!=null )
- {
- results.addAll( context.getVariables().keySet() );
+ if (context!=null) {
+ Map variables = context.getVariables();
+ if (variables != null) {
+ results.addAll(variables.keySet());
}
}
- else
- {
+ } else {
results.addAll( taskInstance.getVariables().keySet() );
}
return results;
More information about the jboss-cvs-commits
mailing list