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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2016 05:57 AM
Hello,
I need to disable bulkInsert in activiti. I have done this in spring configuration by setting
Pasting my code below…
Thanks in advance.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 05:32 AM
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>
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>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 05:54 AM
Thanks for the reply Hari,
I solved my issue by using
StandaloneProcessEngineConfiguration provides you the API for disable bulk insertion.
Thanks.
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.
