cancel
Showing results for 
Search instead for 
Did you mean: 

how to set timerEvents, startdate and enddate

mhp
Champ in-the-making
Champ in-the-making
Hi,

Can anybody help me regarding this, i have tried in many ways.

I want to start a process on startdate, I will get startdate value from my applicaiton and the process should end on enddate, iam getting enddate from my application.

Iam doing like this:

<startEvent id="theStart" >
    <timerEventDefinition>
        <timeCycle>${sdate}/PT10H</timeCycle>
     </timerEventDefinition>
</startEvent>


please help me how to start and how to end the process, using timerEvents.

Thanks.
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Hi,

You can't mix expressions and static text. So please use an expression with a full  time cycle definition.
Why do you want to end a process explicitely with a timer definition? How would you model this in BPMN?

Best regards,

mhp
Champ in-the-making
Champ in-the-making
Hi Tijs,

Thanks for your reply,

In our application, there is a situation like we need to send a mail to projectManager on startDate of the projectRelease until the enddate of the release.

So I want use timeCycle such that for every 10 hours a mail will sent to the manager. And I want to stop to sending mails on end date of the release.

Thanks again.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I think you can mix expressions and static text, but it shoud be done in a way like
${''.concat(sdate).concat('/PT10H')}

mhp
Champ in-the-making
Champ in-the-making
Why do you want to end a process explicitely with a timer definition? How would you model this in BPMN?


I want to start a process to send a mail on startDate of ProjectRelease (startdate is in the form of : wed Mar 14 00:00:00 UTC+0530 2012) for every 10 hours and I want to stop sending mails on endDate of ProjectRelease (enddate is in the form of : wed Mar 21 00:00:00 UTC+0530 2012)

I thought, for above scenario timer definition is best way to use. If not please suggest me how to implement this in activiti.


Thank you.

trademak
Star Contributor
Star Contributor
@Ronald, then it's an expression right 😉

@mhp, your use case sounds like a Quartz job or so, not really like a process definition. If you do want this functionality you can include a time/date check after each cycle and end the process if necessary.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.