org.demac.process.base.dpdl
Interface Deadline

All Known Implementing Classes:
DeadlineImpl

public interface Deadline

A deadline for an org.demac.process.base.dpdl.Activity. When the deadline is reached before the Activity is finished, the Activity can either be stopped (synchronous execution) or kept running (asynchronous mode). The latter makes sense only, if the deadline defines an org.demac.process.base.dpdl.Exception which is performed, when the Activity exceeds its time limit.


Field Summary
static java.lang.String ASYNCHR
          Execution: ASYNCHR.
static java.lang.String SYNCHR
          Execution: SYNCHR.
 
Method Summary
 java.util.Date getDeadline()
           
 Exception getException()
           
 java.lang.String getExecution()
           
 

Field Detail

ASYNCHR

static final java.lang.String ASYNCHR
Execution: ASYNCHR. The Activity keeps running while the corresponding org.demac.process.base.dpdl.Exception is performed.

See Also:
Constant Field Values

SYNCHR

static final java.lang.String SYNCHR
Execution: SYNCHR. The Activity will stop when the deadline is reached.

See Also:
Constant Field Values
Method Detail

getDeadline

java.util.Date getDeadline()
Returns:
the specified time limit for the Activity.

getException

Exception getException()
Returns:
Returns the org.demac.process.base.dpdl.Exception specified for the deadline. Returns null, if no org.demac.process.base.dpdl.Exception is specified.

getExecution

java.lang.String getExecution()
Returns:
Returns the execution type for the deadline. Default execution type is SYNCHR.