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
Modifier and TypeFieldDescriptionstatic final String
The "Expiry" action name.static final String
The Job "Assigned" status.static final String
The Job Action "Cancelled" status.static final String
The Job Action "Completed" status.static final String
The Job "Error" status.static final String
The Job Action "Expired" status.static final String
The Job Action "In Progress" status.static final String
The Job Action "Invoked" status.static final String
The Job "Pending" status.static final String
The 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_PROPERTY
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
Fields inherited from class org.apache.cayenne.CayenneDataObject
values
Fields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersion
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Increment the number of action service attempts by one.boolean
Return true if the action service is ready to execute.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
Set 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, setTimeActionExecuted, setTimeActionNextAttempt, setTimeCreated, setTimeFinished
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId
Methods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeState
Methods 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, writeSerialized
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
setType
in 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:
toString
in classBaseEntity
- Returns:
- the string representation of this object.
-