cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Intermediate Catch Event won't fired

patrick1
Champ in-the-making
Champ in-the-making
Hi,

I have a workflow, where I have to integrate a third party external system to process some stuff (Service Task: Start Process) . As this processing takes some time, I wanted to periodically check the status of the processing with an other Service Task (Check Status of Process) and save the result of processing with a third Service Task (Save Process Result). To realize the periodical check, I want to use a Timer intermediate catching event. But this timer will never fired and I have no idea why!

I tried it with a timer duration (like below) and time cycle based on cron trigger (0/20 * * * * ?), but nothing worked.


    <intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent">
      <timerEventDefinition>
        <timeDuration>PT5M</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>

So, I removed all the looping for checking of the process status (see below) to have no side effects when executing it. Same result as before, the timer isn't triggering the next service task.
[attachment=0]Process.jpg[/attachment]

Thanks,
Patrick
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Is the job executor running?

patrick1
Champ in-the-making
Champ in-the-making
No, job executor wasn't running and while studying the documentation it wasn't obvious that I had use a job executor when using triggers. I had copied the configuration of a Spring based unit test, which had swith off the job executor. Now, everything is working as expected.

Maybe a small hint in the documentation of the Timer Intermediate Catch Event would be useful.

Thanks a lot.
Patrick

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
it's required for EVERY timer/asyc functionality… afaik it is in the documentation… configs for unit tests are for unit tests… not production.