camunda-community-hub / camunda-platform-7-custom-batch

using the camunda batch execution for custom batch runs
Apache License 2.0
29 stars 11 forks source link

CustomBatchBuilder.calculateTotalJobs() uses Integer division #9

Closed tobiasbehr closed 7 years ago

tobiasbehr commented 7 years ago

private int calculateTotalJobs() { return Integer.divideUnsigned(this.batchData.size(), this.batch.getInvocationsPerBatchJob()); }

When batchData.size() == 1500 and getInvocationsPerBatchJob() == 1000, then calculateTotalJobs returns 1 but should return 2.

p-wunderlich commented 7 years ago

Many thanks, merged your pull request.