OPEN - issue BATCH-890: Stop transition in XML namespace

Add stop and end elements through EndState.
This commit is contained in:
dsyer
2008-10-29 07:19:19 +00:00
parent 6185714368
commit a4e78858e2
13 changed files with 244 additions and 179 deletions

View File

@@ -35,6 +35,14 @@ public abstract class AbstractState<T> implements State<T> {
return name;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return getClass().getSimpleName()+": name=["+name+"]";
}
public abstract String handle(T context) throws Exception;
}

View File

@@ -77,11 +77,7 @@ public class SplitState<T> extends AbstractState<T> {
tasks.add(task);
try {
taskExecutor.execute(new Runnable() {
public void run() {
task.run();
}
});
taskExecutor.execute(task);
}
catch (TaskRejectedException e) {
throw new FlowExecutionException("TaskExecutor rejected task for flow=" + flow.getName());