[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Sat Dec 16 11:05:20 EST 2006
User: gavin
Date: 06/12/16 11:05:20
Modified: src/main/org/jboss/seam/core BusinessProcess.java
Dispatcher.java
Log:
reduce jbpm dependency
Revision Changes Path
1.15 +10 -0 jboss-seam/src/main/org/jboss/seam/core/BusinessProcess.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BusinessProcess.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/BusinessProcess.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- BusinessProcess.java 14 Dec 2006 13:08:57 -0000 1.14
+++ BusinessProcess.java 16 Dec 2006 16:05:20 -0000 1.15
@@ -52,6 +52,16 @@
}
/**
+ * Is there a process instance that has not ended
+ * associated with the current conversation?
+ */
+ public boolean hasActiveProcess()
+ {
+ return hasCurrentProcess() &&
+ !org.jboss.seam.core.ProcessInstance.instance().hasEnded();
+ }
+
+ /**
* Is there a task instance associated with
* the current conversation?
*/
1.14 +2 -1 jboss-seam/src/main/org/jboss/seam/core/Dispatcher.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Dispatcher.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Dispatcher.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Dispatcher.java 24 Nov 2006 23:15:17 -0000 1.13
+++ Dispatcher.java 16 Dec 2006 16:05:20 -0000 1.14
@@ -59,7 +59,8 @@
{
if ( Init.instance().isJbpmInstalled() )
{
- processId = BusinessProcess.instance().getProcessId();
+ BusinessProcess businessProcess = BusinessProcess.instance();
+ processId = businessProcess.getProcessId();
taskId = BusinessProcess.instance().getTaskId();
}
}
More information about the jboss-cvs-commits
mailing list