Re: Deadline Activity
Monique Maker <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
Hello Aaron,
Set the deadline to Synchronous and enter as condition something like:
var d = new java.util.Date(start_date.getTime() + WAIT_TIME_OUT);
d;
where start_date is of type Date and WAIT_TIME_OUT is in milliseconds. WAIT_TIME_OUT can be a process- or package-level WRD with initial value (some kind of constant), or just a numeric value - it is your choice.
Fill in the Exception name with some meaningfull string, for example
TimeToContinueException
Then set two outgoing transitions:
- By exception ("TimeToContinueException");
- By condition - the normal activity completion.
If you need exactly the process start date, you can use the Shark supplied value PROCESS_STARTED_TIME instead your own variable start_date.
For more details see the "how_to" document, point "How to write deadline expressions for activities?"
Regards,
Monique
Aaron Galea wrote:
> Hi
>
> Can somebody explain how to use the Deadline Activity property? I have
> the case that I will need to instantiate a process and set a variable,
> let say start_date, to the date that this process was instantiated.
> After that in one of its activities, say Activity1 I want to make a
> deadline such that if (start_date+2days) have passed it will move to the
> next activity if not triggered manually? Is this possible to be done and
> if so how?
>
> Sorry if this is a very basic question but I am still getting familiar
> with Shark.
>
> Regards
> Aaron
>
> ---
> [This E-mail was scanned for spam and viruses by NextGen.net.]
>
>
message-footer.txt
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws