Source:
<code>public WorkflowInstanceDao(SQLVariants sqlVariants, @NFlow JdbcTemplate nflowJdbcTemplate, @NFlow TransactionTemplate transactionTemplate, @NFlow NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate, ExecutorDao executorDao, WorkflowInstanceExecutor workflowInstanceExecutor, WorkflowInstanceFactory workflowInstanceFactory, Environment env) { this.sqlVariants = sqlVariants; this.jdbc = nflowJdbcTemplate; this.transaction = transactionTemplate; this.namedJdbc = nflowNamedParameterJdbcTemplate; this.executorInfo = executorDao; this.workflowInstanceExecutor = workflowInstanceExecutor; this.workflowInstanceFactory = workflowInstanceFactory; workflowInstanceQueryMaxResults = env.getRequiredProperty("nflow.workflow.instance.query.max.results", Long.class); workflowInstanceQueryMaxResultsDefault = env.getRequiredProperty("nflow.workflow.instance.query.max.results.default", Long.class); workflowInstanceQueryMaxActions = env.getRequiredProperty("nflow.workflow.instance.query.max.actions", Long.class); workflowInstanceQueryMaxActionsDefault = env.getRequiredProperty("nflow.workflow.instance.query.max.actions.default", Long.class); instanceStateTextLength = env.getProperty("nflow.workflow.instance.state.text.length", Integer.class, -1); actionStateTextLength = env.getProperty("nflow.workflow.action.state.text.length", Integer.class, -1); <START> disableBatchUpdates = env.getProperty("nflow.db.disable_batch_updates", Boolean.class); <END> if (disableBatchUpdates) { logger.info("nFlow DB batch updates are disabled (system property nflow.db.disable_batch_updates=true)"); } }</code><technical_language>suggestion disableBatchUpdates = env.getRequiredProperty("nflow.db.disable_batch_updates", Boolean.class);</technical_language>

Target:
public WorkflowInstanceDao(SQLVariants sqlVariants, @NFlow JdbcTemplate nflowJdbcTemplate, @NFlow TransactionTemplate transactionTemplate, @NFlow NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate, ExecutorDao executorDao, WorkflowInstanceExecutor workflowInstanceExecutor, WorkflowInstanceFactory workflowInstanceFactory, Environment env) { this.sqlVariants = sqlVariants; this.jdbc = nflowJdbcTemplate; this.transaction = transactionTemplate; this.namedJdbc = nflowNamedParameterJdbcTemplate; this.executorInfo = executorDao; this.workflowInstanceExecutor = workflowInstanceExecutor; this.workflowInstanceFactory = workflowInstanceFactory; workflowInstanceQueryMaxResults = env.getRequiredProperty("nflow.workflow.instance.query.max.results", Long.class); workflowInstanceQueryMaxResultsDefault = env.getRequiredProperty("nflow.workflow.instance.query.max.results.default", Long.class); workflowInstanceQueryMaxActions = env.getRequiredProperty("nflow.workflow.instance.query.max.actions", Long.class); workflowInstanceQueryMaxActionsDefault = env.getRequiredProperty("nflow.workflow.instance.query.max.actions.default", Long.class); disableBatchUpdates = env.getRequiredProperty("nflow.db.disable_batch_updates", Boolean.class); if (disableBatchUpdates) { logger.info("nFlow DB batch updates are disabled (system property nflow.db.disable_batch_updates=true)"); } instanceStateTextLength = env.getProperty("nflow.workflow.instance.state.text.length", Integer.class, -1); actionStateTextLength = env.getProperty("nflow.workflow.action.state.text.length", Integer.class, -1); }