Fixed the double save of summary results when 2 guidelines where checked in parallel
This commit is contained in:
parent
1a99c041d3
commit
88bd430801
|
@ -32,8 +32,6 @@ public class SumUpNCleanProcessor implements Processor {
|
||||||
@Override
|
@Override
|
||||||
public void process(Exchange exchange) throws Exception {
|
public void process(Exchange exchange) throws Exception {
|
||||||
|
|
||||||
Thread stop=null;
|
|
||||||
|
|
||||||
ValidationJob validationJob = new ValidationJob();
|
ValidationJob validationJob = new ValidationJob();
|
||||||
validationJob.id = (Integer)exchange.getIn().getHeader("validationId");
|
validationJob.id = (Integer)exchange.getIn().getHeader("validationId");
|
||||||
validationJob.baseUrl = (String)(exchange.getIn().getHeader("baseUrl"));
|
validationJob.baseUrl = (String)(exchange.getIn().getHeader("baseUrl"));
|
||||||
|
|
|
@ -126,6 +126,7 @@ public class FairOaiPmhRoute2 extends RouteBuilder {
|
||||||
.multicast().parallelProcessing()
|
.multicast().parallelProcessing()
|
||||||
.to("direct:guidelinesProcessor")
|
.to("direct:guidelinesProcessor")
|
||||||
.to("direct:fairProcessor")
|
.to("direct:fairProcessor")
|
||||||
|
.to("controlbus:route?routeId=1&action=stop&async=true")
|
||||||
.endChoice()
|
.endChoice()
|
||||||
.otherwise()
|
.otherwise()
|
||||||
.process(new ErrorProcessor(validationJob))
|
.process(new ErrorProcessor(validationJob))
|
||||||
|
@ -156,7 +157,6 @@ public class FairOaiPmhRoute2 extends RouteBuilder {
|
||||||
/*.process(new DataBaseProcessor())
|
/*.process(new DataBaseProcessor())
|
||||||
.to("jpa:" + ValidationJob.class.getName() + "?useExecuteUpdate=true")//;.to("direct:saveToDatabase")*/
|
.to("jpa:" + ValidationJob.class.getName() + "?useExecuteUpdate=true")//;.to("direct:saveToDatabase")*/
|
||||||
.to("controlbus:route?routeId="+routeid+"&action=stop&async=true")
|
.to("controlbus:route?routeId="+routeid+"&action=stop&async=true")
|
||||||
.to("controlbus:route?routeId=1&action=stop&async=true")
|
|
||||||
.endChoice()
|
.endChoice()
|
||||||
.end();
|
.end();
|
||||||
|
|
||||||
|
@ -183,7 +183,6 @@ public class FairOaiPmhRoute2 extends RouteBuilder {
|
||||||
/*.process(new DataBaseProcessor())
|
/*.process(new DataBaseProcessor())
|
||||||
.to("jpa:" + ValidationJob.class.getName() + "?useExecuteUpdate=true")//;.to("direct:saveToDatabase")*/
|
.to("jpa:" + ValidationJob.class.getName() + "?useExecuteUpdate=true")//;.to("direct:saveToDatabase")*/
|
||||||
.to("controlbus:route?routeId="+routeid2+"&action=stop&async=true")
|
.to("controlbus:route?routeId="+routeid2+"&action=stop&async=true")
|
||||||
.to("controlbus:route?routeId=1&action=stop&async=true")
|
|
||||||
.endChoice()
|
.endChoice()
|
||||||
.end();
|
.end();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue