Package com.avoka.fc.core.entity
Class JobAction
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
com.avoka.fc.core.entity.auto._JobAction
com.avoka.fc.core.entity.JobAction
- All Implemented Interfaces:
IEntity,Serializable,org.apache.cayenne.DataObject,org.apache.cayenne.Persistent,org.apache.cayenne.Validating
Provides a transaction job action entity. A job action is part of a job step.
- Since:
- 4.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe "Expiry" action name.static final StringThe Job "Assigned" status.static final StringThe Job Action "Cancelled" status.static final StringThe Job Action "Completed" status.static final StringThe Job "Error" status.static final StringThe Job Action "Expired" status.static final StringThe Job Action "In Progress" status.static final StringThe Job Action "Invoked" status.static final StringThe Job "Pending" status.static final StringThe Job Action "Ready" status.static final String[]The valid Job Action status values.static final String[]The Job Action type values.Fields inherited from class com.avoka.fc.core.entity.auto._JobAction
ACTION_ATTEMPTS, ACTION_ATTEMPTS_PROPERTY, ACTION_MAX_ATTEMPTS, ACTION_MAX_ATTEMPTS_PROPERTY, ACTION_MESSAGE, ACTION_MESSAGE_PROPERTY, ACTION_SERVICE, ACTION_SERVICE_PROPERTY, ASSIGN_REPEAT_INDEX, ASSIGN_REPEAT_INDEX_PROPERTY, ASSIGN_REPEAT_ITEM, ASSIGN_REPEAT_ITEM_PROPERTY, CURRENT_ACTION_STEP, CURRENT_ACTION_STEP_PROPERTY, ERRORS, ERRORS_PROPERTY, EXTERNAL_REFERENCE_NUMBER, EXTERNAL_REFERENCE_NUMBER_PROPERTY, JOB, JOB_ACTION_KEY, JOB_ACTION_KEY_PROPERTY, JOB_ACTION_OID_PK_COLUMN, JOB_EVENTS, JOB_EVENTS_PROPERTY, JOB_PROPERTY, JOB_STEP, JOB_STEP_PROPERTY, NAME, NAME_PROPERTY, REDIRECT_NEXT_FLAG, REDIRECT_NEXT_FLAG_PROPERTY, ROUTE_RESULT, ROUTE_RESULT_PROPERTY, SEQUENCE, SEQUENCE_PROPERTY, STATUS, STATUS_PROPERTY, SUBMISSION, SUBMISSION_PROPERTY, TIME_ACTION_EXECUTED, TIME_ACTION_EXECUTED_PROPERTY, TIME_ACTION_NEXT_ATTEMPT, TIME_ACTION_NEXT_ATTEMPT_PROPERTY, TIME_CREATED, TIME_CREATED_PROPERTY, TIME_FINISHED, TIME_FINISHED_PROPERTY, TYPE, TYPE_PROPERTYFields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTYFields inherited from class org.apache.cayenne.CayenneDataObject
valuesFields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersionFields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceStateFields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIncrement the number of action service attempts by one.booleanReturn true if the action service is ready to execute.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetTimeActionExecuted(Date timeActionExecuted) Set the timeActionExecuted value.voidsetTimeCreated(Date timeCreated) Set the timeCreated value.voidsetTimeFinished(Date timeFinished) Set the timeFinished value.voidSet the type value.toString()Methods inherited from class com.avoka.fc.core.entity.auto._JobAction
addToErrors, addToJobEvents, getActionAttempts, getActionMaxAttempts, getActionMessage, getActionService, getAssignRepeatIndex, getAssignRepeatItem, getCurrentActionStep, getErrors, getExternalReferenceNumber, getJob, getJobActionKey, getJobEvents, getJobStep, getName, getRouteResult, getSequence, getStatus, getSubmission, getTimeActionExecuted, getTimeActionNextAttempt, getTimeCreated, getTimeFinished, getType, isRedirectNextFlag, removeFromErrors, removeFromJobEvents, setActionAttempts, setActionMaxAttempts, setActionMessage, setActionService, setAssignRepeatIndex, setAssignRepeatItem, setCurrentActionStep, setExternalReferenceNumber, setJob, setJobActionKey, setJobStep, setName, setRedirectNextFlag, setRouteResult, setSequence, setStatus, setSubmission, setTimeActionNextAttemptMethods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setIdMethods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeStateMethods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerializedMethods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Field Details
-
EXPIRY_ACTION_NAME
The "Expiry" action name.- See Also:
-
STATUS_ASSIGNED
The Job "Assigned" status. The Task assignment action has completed successfully, but awaiting the user submission to be fully completed.- See Also:
-
STATUS_CANCELLED
The Job Action "Cancelled" status. The job action is cancelled manually and will never be run again.- See Also:
-
STATUS_COMPLETED
The Job Action "Completed" status. The job action is completed and will never run again.- See Also:
-
STATUS_ERROR
The Job "Error" status. The job action is in an error state (potentially looping) will be executed next time job runs.- See Also:
-
STATUS_EXPIRED
The Job Action "Expired" status. The job action has expired (automaticallY) and will never run again.- See Also:
-
STATUS_IN_PROGRESS
The Job Action "In Progress" status. The job action is in progress (looping) and will be executed next time job runs.- See Also:
-
STATUS_INVOKED
The Job Action "Invoked" status. The asynchronous job action has been invoked.- See Also:
-
STATUS_PENDING
The Job "Pending" status. The job action is paused and waiting for an external event to move it forward.- See Also:
-
STATUS_READY
The Job Action "Ready" status. The action will be executed next time job runs.- See Also:
-
STATUS_VALUES
The valid Job Action status values. -
TYPE_VALUES
The Job Action type values.
-
-
Constructor Details
-
JobAction
public JobAction()
-
-
Method Details
-
isStatusAssigned
public boolean isStatusAssigned()- Returns:
- true if the action status is "Assigned"
-
isStatusCompleted
public boolean isStatusCompleted()- Returns:
- true if the action status is "Completed"
-
isStatusCancelled
public boolean isStatusCancelled()- Returns:
- true if the action status is "Cancelled"
-
isStatusError
public boolean isStatusError()- Returns:
- true if the action status is "Error"
-
isStatusExpired
public boolean isStatusExpired()- Returns:
- true if the action status is "Expired"
-
isStatusInProgress
public boolean isStatusInProgress()- Returns:
- true if the action status is "In Progress"
-
isStatusInvoked
public boolean isStatusInvoked()- Returns:
- true if the action status is "Invoked"
-
isStatusPending
public boolean isStatusPending()- Returns:
- true if the action status is "Pending"
-
isStatusReady
public boolean isStatusReady()- Returns:
- true if the action status is "Ready"
-
isTypeJobAction
public boolean isTypeJobAction()- Returns:
- type if type is "Job Action"
-
isTypeJobAsyncActionWait
public boolean isTypeJobAsyncActionWait()- Returns:
- type if type is "Job Action Wait"
-
isTypeJobDelivery
public boolean isTypeJobDelivery()- Returns:
- type if type is "Job Delivery"
-
isTypeJobDeliveryWait
public boolean isTypeJobDeliveryWait()- Returns:
- type if type is "Job Delivery Wait"
-
isTypeJobExpiry
public boolean isTypeJobExpiry()- Returns:
- type if type is "Job Expiry"
-
isTypeJobFormStart
public boolean isTypeJobFormStart()- Returns:
- type if type is "Job Form Start"
-
isTypeJobReceiptWait
public boolean isTypeJobReceiptWait()- Returns:
- type if type is "Job Receipt Wait"
-
isTypeJobTaskAssign
public boolean isTypeJobTaskAssign()- Returns:
- type if type is "Job Task Assign"
-
isTypeJobTaskWait
public boolean isTypeJobTaskWait()- Returns:
- type if type is "Job Task Wait"
-
isExpiryAction
public boolean isExpiryAction()- Returns:
- if an expiry action with the name "Expiry".
-
setType
Set the type value.- Overrides:
setTypein class_JobAction- Parameters:
type- the type value to set
-
incrementActionServiceAttempts
public void incrementActionServiceAttempts()Increment the number of action service attempts by one. -
isActionServiceExecutable
public boolean isActionServiceExecutable()Return true if the action service is ready to execute.- Returns:
- true if the action service is ready to execute
-
toString
- Overrides:
toStringin classBaseEntity- Returns:
- the string representation of this object.
-
setTimeActionExecuted
Description copied from class:_JobActionSet the timeActionExecuted value.- Overrides:
setTimeActionExecutedin class_JobAction- Parameters:
timeActionExecuted- the timeActionExecuted value to set
-
setTimeCreated
Description copied from class:_JobActionSet the timeCreated value.- Overrides:
setTimeCreatedin class_JobAction- Parameters:
timeCreated- the timeCreated value to set
-
setTimeFinished
Description copied from class:_JobActionSet the timeFinished value.- Overrides:
setTimeFinishedin class_JobAction- Parameters:
timeFinished- the timeFinished value to set
-