AnsweredAssumed Answered

Timeouts on servicetask

Question asked by stroobat on Feb 25, 2011
Latest reply on Feb 25, 2011 by frederikheremans1
I'm using a servicetask to call some bussiness logic (using Spring beans).

Suppose that for some reason or another the Java code hangs (doesn't respond anymore, no exception is thrown). Can I handle this in the Activiti flow ?
I tried it using a bounderyEvent with a timer but doesn't seem to work because the commit of the timer is done after the flow finishes (correct ?).

I suppose the best way to handle this is to handle it in the bussiness function itself, but I was just wondering if it could be done in Activiti ?

I tested this as follows. I started a 5 second timer just before my servicetask is executed, and in my servicetask I put a Thread.Sleep(10000).
My opion was that the timer got fired before the sleep finishes, but doesn't seem to happen.

Best regards,

Tom.

Outcomes