@AccessLevel(value=EXTERNAL)
public interface WorkflowDeadlineAdmin
WorkflowDeadline
entity stores details of the length of
time that a Task
or EventWait
is allowed to remain
unprocessed. This API provides functions to manipulate the data on the
WorkflowDeadline
and its functions should be used rather than
direct access to the functions present on the actual entity.Modifier and Type | Method and Description |
---|---|
long |
create(long activityInstanceID,
curam.util.type.DateTime deadlineTime,
java.lang.String deadlineType,
boolean suspended,
long taskID)
Creates a workflow deadline.
|
void |
modify(long deadlineID,
long activityInstanceID,
curam.util.type.DateTime deadlineTime,
java.lang.String deadlineType,
boolean suspended,
long taskID,
int versionNo)
Modifies the details of a workflow deadline.
|
void |
modifyDeadline(long taskID,
curam.util.type.DateTime deadlineTime,
int versionNo)
Changes the deadline time of a workflow deadline record for a specified
task.
|
void |
modifySuspended(long deadlineID,
boolean suspended,
int versionNo)
Updates the suspended flag of the specified workflow deadline record.
|
WorkflowDeadlineInfo |
read(long deadlineID)
Returns the details of the specified workflow deadline.
|
WorkflowDeadlineInfo |
readDeadlineDetailsByActivityInstanceID(long activityInstanceID)
Returns the workflow deadline details for a specified activity instance
identifier.
|
WorkflowDeadlineInfo |
readDeadlineDetailsByTaskID(long taskID)
Returns the details of a workflow deadline for a specified task.
|
void |
remove(long deadlineID)
Removes a workflow deadline.
|
ScanWorkflowDeadlineDetailsList |
scanWorkflowDeadlines(curam.util.type.DateTime currentTime)
Returns a list of all the task deadlines that have timed out.
|
WorkflowDeadlineInfo read(long deadlineID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
deadlineID
- The unique identifier of the workflow deadline.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.long create(long activityInstanceID, curam.util.type.DateTime deadlineTime, java.lang.String deadlineType, boolean suspended, long taskID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
activityInstanceID
- The unique identifier of the activity instance
associated with this workflow deadline.deadlineTime
- The time at which the workflow deadline times out. For
a manual activity or a decision activity workflow deadline, this time is
calculated by adding the deadline duration specified to the time that the
associated manual activity task was created. For an event wait workflow
deadline, the time is calculated by adding the deadline duration specified
to the time that the associated event wait activity was executed.deadlineType
- The type of the workflow deadline (as deadlines may be
associated with a number of activity types including manual activities,
event wait activities and decision activities).suspended
- NOTE: This flag provides no functional benefit at
present. In the future, if the functionality becomes available, this flag
could set to true to indicate that the handler function associated with
the workflow deadline was invoked but failed. This flag may be then be
used to filter out deadlines that were previously handled but failed when
scanning for workflow deadlines.taskID
- The unique identifier of a task associated with a workflow
deadline. This field is not set for deadlines associated with event wait
activities.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.void modify(long deadlineID, long activityInstanceID, curam.util.type.DateTime deadlineTime, java.lang.String deadlineType, boolean suspended, long taskID, int versionNo) throws curam.util.exception.AppException, curam.util.exception.InformationalException
deadlineID
- The unique identifier of the workflow deadline.activityInstanceID
- The unique identifier of the activity instance
associated with this workflow deadline.deadlineTime
- The time at which the workflow deadline times out. For
a manual activity or a decision activity workflow deadline, this time is
calculated by adding the deadline duration specified to the time that the
associated manual activity task was created. For an event wait workflow
deadline, the time is calculated by adding the deadline duration specified
to the time that the associated event wait activity was executed.deadlineType
- The type of the workflow deadline (as deadlines may be
associated with a number of activity types including manual activities,
event wait activities and decision activities).suspended
- NOTE: This flag provides no functional benefit at
present. In the future, if the functionality becomes available, this flag
could set to true to indicate that the handler function associated with
the workflow deadline was invoked but failed. This flag may be then be
used to filter out deadlines that were previously handled but failed when
scanning for workflow deadlines.taskID
- The unique identifier of a task associated with a workflow
deadline. This field is not set for deadlines associated with event wait
activities.versionNo
- The version number for optimistic locking.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.void remove(long deadlineID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
RecordNotFoundException
is caught and the function does
nothing.deadlineID
- The unique identifier of the workflow deadline.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.void modifySuspended(long deadlineID, boolean suspended, int versionNo) throws curam.util.exception.AppException, curam.util.exception.InformationalException
deadlineID
- The unique identifier of the workflow deadline.suspended
- NOTE: This flag provides no functional benefit at
present. In the future, if the functionality becomes available, this flag
could set to true to indicate that the handler function associated with
the workflow deadline was invoked but failed. This flag may be then be
used to filter out deadlines that were previously handled but failed when
scanning for workflow deadlines.versionNo
- The version number for optimistic locking.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.WorkflowDeadlineInfo readDeadlineDetailsByActivityInstanceID(long activityInstanceID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
activityInstanceID
- The unique identifier of the activity instance
associated with this workflow deadline.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.WorkflowDeadlineInfo readDeadlineDetailsByTaskID(long taskID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
taskID
- The unique identifier of a task associated with a workflow
deadline.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.ScanWorkflowDeadlineDetailsList scanWorkflowDeadlines(curam.util.type.DateTime currentTime) throws curam.util.exception.AppException, curam.util.exception.InformationalException
currentTime
- The current date and time that will be used to scan the
workflow deadline table for expired deadlines.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.void modifyDeadline(long taskID, curam.util.type.DateTime deadlineTime, int versionNo) throws curam.util.exception.AppException, curam.util.exception.InformationalException
taskID
- The unique identifier of a task associated with a workflow
deadline.deadlineTime
- The time at which the workflow deadline times out.versionNo
- The version number for optimistic locking.curam.util.exception.AppException
- Exceptions that may occur when
invoking this function.curam.util.exception.InformationalException
- Generic Exception
Signature.