Updated per code review
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2013 the original author or authors.
|
||||
* Copyright 2006-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -98,7 +98,7 @@ public class JsrFlowJob extends FlowJob {
|
||||
String stepName = startState.getName().substring(startState.getName().indexOf(".") + 1, startState.getName().length());
|
||||
Step step = ((StepState) startState).getStep(stepName);
|
||||
if(step instanceof DecisionStep) {
|
||||
throw new JobExecutionException("Invalid first step");
|
||||
throw new JobExecutionException("Decision step is an invalid first step");
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 the original author or authors.
|
||||
* Copyright 2013-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013 the original author or authors.
|
||||
* Copyright 2013-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -25,7 +25,7 @@ public class DecisionStepTests {
|
||||
|
||||
private static ApplicationContext baseContext;
|
||||
|
||||
public JobExplorer jobExplorer;
|
||||
private JobExplorer jobExplorer;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
@@ -107,9 +107,6 @@ public class DecisionStepTests {
|
||||
|
||||
@Override
|
||||
public String decide(StepExecution[] executions) throws Exception {
|
||||
for (StepExecution stepExecution : executions) {
|
||||
System.err.println(stepExecution.getStepName());
|
||||
}
|
||||
previousStepCount = executions.length;
|
||||
return "next";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user