Author: tom.baeyens(a)jboss.com
Date: 2009-06-12 10:47:29 -0400 (Fri, 12 Jun 2009)
New Revision: 5033
Modified:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ExecutionImpl.java
Log:
JBPM-2212 did state comparison with equals
Modified:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ExecutionImpl.java
===================================================================
---
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ExecutionImpl.java 2009-06-12
13:18:58 UTC (rev 5032)
+++
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ExecutionImpl.java 2009-06-12
14:47:29 UTC (rev 5033)
@@ -188,7 +188,7 @@
// execution method : start /////////////////////////////////////////////////
public void start() {
- if (state!=STATE_CREATED) {
+ if (!STATE_CREATED.equals(state)) {
throw new JbpmException(toString()+" is already begun: "+state);
}
this.state = STATE_ACTIVE_ROOT;
@@ -934,10 +934,6 @@
}
}
- public void setState(String state) {
- this.state = state;
- }
-
protected void checkActive() {
if (!isActive()) {
throw new JbpmException(toString()+" is not active: "+state);
Show replies by date