AnsweredAssumed Answered

processEngineConfiguration - asyncFailedJobWaitTime

Question asked by dbrauche on May 28, 2015
Latest reply on May 28, 2015 by dbrauche
Hi All,  I have a process definition that contains a polling task.  The polling task has "activiti:async='true".    It is a custom java task that times out after 60 minutes.   However, the activiti-rest process engine keeps timing out the task after 5 minutes and restarting it on a new thread.  I have tried up'ing the asyncFailedJobWaitTime property in the processEngineConfiguration bean, but it does not seem to change the 5 minute timout.  Does anyone what property to set in what bean to up the 5 minute timeout?  Below is the bean configuration I am trying to us.  I know the activiti-rest process engine is using my bean definition because it is using the deploymentResources property to auto deploy my process definitions.  Any help that could be provided would be great…..


<blockcode>
        <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
                <property name="dataSource" ref="dataSource" />
                <property name="transactionManager" ref="transactionManager" />
                <property name="databaseSchemaUpdate" value="true" />
                <property name="mailServerHost" value="localhost" />
                <property name="mailServerPort" value="5025" />
                <property name="jobExecutorActivate" value="false" />
                <property name="asyncExecutorEnabled" value="true" />
                <property name="asyncExecutorActivate" value="true" />
                <property name="deploymentResources" value="classpath*:*.bpmn20.xml" />
                <property name="asyncFailedJobWaitTime" value="3610" />
        </bean>
</blockcode>

Outcomes