cancel
Showing results for 
Search instead for 
Did you mean: 

Loop issue

jpgouin
Champ on-the-rise
Champ on-the-rise
Hi ,
I'm trying to make a while loop on a workflow using TimerCatchEvent. (see attached bpmn)
The workflow only work once and does not restart the FTP or the  MessageQ Script task.
However it also do not go into the last Script task just before the end.

Maybe I misconfigured the TimerCatchingEvent …

Thanks !
1 ACCEPTED ANSWER

jpgouin
Champ on-the-rise
Champ on-the-rise
I don't think so, can you tell me what I have to add in the config file ?

Edit : it's ok I found it in the user doc . I will try with this . Thanks !

Edit2 : It worked thanks !

I have another question, on the script task FTP, I've attached a listener which start another process that I have deploy in the repositoryService.
How can I avoid the listener to block the execution of the script task FTP (because of <code> runtimeService.startProcessInstanceByKey </code> ?

View answer in original post

14 REPLIES 14

jpgouin
Champ on-the-rise
Champ on-the-rise
I don't think so, can you tell me what I have to add in the config file ?

Edit : it's ok I found it in the user doc . I will try with this . Thanks !

Edit2 : It worked thanks !

I have another question, on the script task FTP, I've attached a listener which start another process that I have deploy in the repositoryService.
How can I avoid the listener to block the execution of the script task FTP (because of <code> runtimeService.startProcessInstanceByKey </code> ?

warper
Star Contributor
Star Contributor
You can create and start another thread youself
You can create Command that will start process and run it (in different thread)
And you can mark first step of process asynchronous, so activiti will create async job for it and run second process in different thread.

jpgouin
Champ on-the-rise
Champ on-the-rise
Thanks it worked that way !

Do you know how to increase the number of ThreadPool or the Pool size ?

warper
Star Contributor
Star Contributor
You can set pool size in executor configuration. For example:
<code>
    <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">

        <property name="jobExecutorActivate" value="false" />
        <property name="asyncExecutorEnabled" value="true" />
        <property name="asyncExecutorActivate" value="true" />
        <property name="asyncExecutor" ref="asyncExecutor" />

    </bean>

    <bean id="asyncExecutor" class="org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor">
        <property name="corePoolSize" value="10" />
        <property name="maxPoolSize" value="50" />
        <property name="keepAliveTime" value="3000" />
        <property name="queueSize" value="200" />
        <property name="maxTimerJobsPerAcquisition" value="2" />
        <property name="maxAsyncJobsDuePerAcquisition" value="2" />
        <property name="defaultAsyncJobAcquireWaitTimeInMillis" value="1000" />
        <property name="defaultTimerJobAcquireWaitTimeInMillis" value="1000" />
        <property name="timerLockTimeInMillis" value="3600000" />
        <property name="asyncJobLockTimeInMillis" value="3600000" />
    </bean>
</code>

jpgouin
Champ on-the-rise
Champ on-the-rise
Great thanks