cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable bulk insert while manually creating processEngine in 5.18 version.

prathameshj
Champ on-the-rise
Champ on-the-rise
Hello,
I need to disable bulkInsert in activiti. I have done this in spring configuration by setting
    
 <property name="bulkInsertEnabled" value="false" /> 
However while configuring processEngine manually I am unable to find any way of setting disabling it.
Pasting my code below…

ProcessEngine  processEngine = ProcessEngineConfiguration
              .createStandaloneProcessEngineConfiguration()
              .setDatabaseType("postgres")
              .setDatabaseSchema(xxxxxxx)
              .setDatabaseTablePrefix(xxxxxx)
              .setDatabaseSchemaUpdate("none")
              .setJdbcDriver(xxxxxx)
              .setJdbcUrl(xxxxx)
              .setJdbcPassword(xxxxxxx)
              .setJdbcUsername(xxxxxx)
              .setHistory(HistoryLevel.AUDIT.getKey())
              .buildProcessEngine();


Thanks in advance.
2 REPLIES 2

hari
Star Contributor
Star Contributor
Hi,

I use the below code to get the instance of process engine and no insets occur. Give it a try.

<code>
   ProcessEngine processEngineInstance = ProcessEngineConfiguration
     .createStandaloneProcessEngineConfiguration()
     .setJdbcDriver(props.getProperty("JdbcDriver"))
     .setJdbcUrl(props.getProperty(""+curTenant))
     .setJdbcPassword(props.getProperty("JdbcPassword"))
     .setJdbcUsername(props.getProperty("JdbcUsername"))
     .buildProcessEngine();
</code>

prathameshj
Champ on-the-rise
Champ on-the-rise
Thanks for the reply Hari,
I solved my issue by using
ProcessEngine  processEngine = new StandaloneProcessEngineConfiguration()
          .setDatabaseSchema(xxxxxxx)
          .setDatabaseTablePrefix(xxxxxx)
          .setDatabaseSchemaUpdate("none")
          .setJdbcDriver(xxxxxx)
          .setJdbcUrl(xxxxx)
          .setJdbcPassword(xxxxxxx)
          .setJdbcUsername(xxxxxx)
          .setHistory(HistoryLevel.AUDIT.getKey())
                        .setBulkInsert(false)
          .buildProcessEngine();

StandaloneProcessEngineConfiguration provides you the API for disable bulk insertion.

Thanks.