cancel
Showing results for 
Search instead for 
Did you mean: 

Task completion until Timer Response Confirm

7joeblack8
Champ in-the-making
Champ in-the-making
Hi there,


i'm an Alfresco user, i'm about to build a workflow, but i got a question.

Let we imagine we're in a task and after confirmation the flow leads to a ServiceTask wich have to be a sort of "Wait Deposit".

This wait deposit have to fire a query in my alfresco using a Timer (never used a timer object actually), and, after the result, if it is successful or not, i have to let the flow proceed or rest.

Is that possibile?

Can anybody help me with an attempt?

Many thanks!
3 REPLIES 3

7joeblack8
Champ in-the-making
Champ in-the-making
I've added this between 2 Alfresco User Tasks:

<blockcode>
   <intermediateCatchEvent id="messageintermediatecatchevent1" name="TimerCatchEvent">
<!–
      <timerEventDefinition>
        <timeDuration>PT60S</timeDuration>
       </timerEventDefinition>
–>
     <messageEventDefinition />

    </intermediateCatchEvent>
</blockcode>
it works only if i give the timer definition (which now is commented out).
How could i set a correct "Message"? is there a way to call it from java?

thanks again!

trademak
Star Contributor
Star Contributor
Are you using Alfresco 4.2.x?
Yes the Activiti RuntimeService provides an API to send a message.
In the Activiti userguide you can see what's needed to define an intermediate message event.

Best regards,

7joeblack8
Champ in-the-making
Champ in-the-making
thank you very much!!