0 Replies Latest reply on Oct 21, 2016 6:16 AM by btozzi

    Job Executor maxIdleInterval setting

    btozzi

      In my program I use JBPM 3.2.3 for a specific process.

      The first step of my process is a Node with param async = true. This node performs an handler that takes a long time ( > 10 min ).

       

      In JobExecutorThread there is this piece of code:

      // if this job is locked too long

            long totalLockTimeInMillis = System.currentTimeMillis() - job.getLockTime().getTime();

            if (totalLockTimeInMillis>maxLockTime) {

              jbpmContext.setRollbackOnly();

            }

       

      maxLockTime default is 600000 (10 min).

       

      My first (working) solution is editing the jbpm.cfg.xml:

      <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">

      ...

      <field name="maxLockTime">

      <int value="3600000" />

      </field>

      ...

      </bean>

       

      but I want configure maxLockTIme for a specific JobExecutorThread and not for all threads.

      Is there a solution?