<jbpm-configuration>

   <jbpm-context>
      <service name="persistence"
         factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
      <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
      <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
      <service name="scheduler"
         factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
      <service name="logging"
         factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
      <service name="authentication"
         factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
   </jbpm-context>

   <!--
      configuration resource files pointing to default configuration
      files in jbpm-{version}.jar
   -->
   <string name="resource.business.calendar"
      value="org/jbpm/calendar/jbpm.business.calendar.properties" />
   <string name="resource.default.modules"
      value="org/jbpm/graph/def/jbpm.default.modules.properties" />
   <string name='resource.converter'
      value='org/alfresco/repo/workflow/jbpm/jbpm.converter.properties' />
   <string name="resource.action.types"
      value="org/alfresco/repo/workflow/jbpm/jbpm.action.types.xml" />
   <string name="resource.node.types"
      value="org/alfresco/repo/workflow/jbpm/jbpm.node.types.xml" />
   <string name="resource.parsers"
      value="org/alfresco/repo/workflow/jbpm/jbpm.parsers.xml" />
   <string name="resource.varmapping"
      value="org/alfresco/repo/workflow/jbpm/jbpm.varmapping.xml" />
   <string name="resource.mail.templates" value="jbpm.mail.templates.xml" />

   <int name="jbpm.byte.block.size" value="1024" singleton="true" />
   <string name="jbpm.mail.smtp.host" value="localhost" />
   <bean name="jbpm.task.instance.factory"
      class="org.alfresco.repo.workflow.jbpm.WorkflowTaskInstanceFactory"
      singleton="true">
      <field name="jbpmEngineName">
         <string value="test_jbpm_engine" />
      </field>
   </bean>
   <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver"
      singleton="true" />
   <bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver"
      singleton="true" />

   <bean name="jbpm.job.executor" class="org.alfresco.repo.workflow.jbpm.AlfrescoJobExecutor">
      <field name="jbpmConfiguration">
         <ref bean="jbpmConfiguration" />
      </field>
      <field name="name">
         <string value="AlfrescoJbpmJobExector" />
      </field>
      <field name="nbrOfThreads">
         <int value="1" />
      </field>

      <!-- overridden for WCM unit tests to 5 secs (was 1.5 mins) -->
      <field name="idleInterval">
         <int value="5000" />
      </field>

      <field name="maxIdleInterval">
         <int value="3600000" />
      </field> <!-- 1 hour -->
      <field name="historyMaxSize">
         <int value="20" />
      </field>
      <field name="maxLockTime">
         <int value="600000" />
      </field> <!-- 10 minutes -->
      <field name="lockMonitorInterval">
         <int value="60000" />
      </field> <!-- 1 minute -->
      <field name="lockBufferTime">
         <int value="5000" />
      </field> <!-- 5 seconds -->
   </bean>

</jbpm-configuration>
