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
public class JobAction extends _JobAction
Provides a transaction job action entity. A job action is part of a job step.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXPIRY_ACTION_NAME
The "Expiry" action name.static String
STATUS_ASSIGNED
The Job "Assigned" status.static String
STATUS_CANCELLED
The Job Action "Cancelled" status.static String
STATUS_COMPLETED
The Job Action "Completed" status.static String
STATUS_ERROR
The Job "Error" status.static String
STATUS_EXPIRED
The Job Action "Expired" status.static String
STATUS_IN_PROGRESS
The Job Action "In Progress" status.static String
STATUS_INVOKED
The Job Action "Invoked" status.static String
STATUS_PENDING
The Job "Pending" status.static String
STATUS_READY
The Job Action "Ready" status.static String[]
STATUS_VALUES
The valid Job Action status values.static String[]
TYPE_VALUES
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
-
-
Constructor Summary
Constructors Constructor Description JobAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
incrementActionServiceAttempts()
Increment the number of action service attempts by one.boolean
isActionServiceExecutable()
Return true if the action service is ready to execute.boolean
isExpiryAction()
boolean
isStatusAssigned()
boolean
isStatusCancelled()
boolean
isStatusCompleted()
boolean
isStatusError()
boolean
isStatusExpired()
boolean
isStatusInProgress()
boolean
isStatusInvoked()
boolean
isStatusPending()
boolean
isStatusReady()
boolean
isTypeJobAction()
boolean
isTypeJobAsyncActionWait()
boolean
isTypeJobDelivery()
boolean
isTypeJobDeliveryWait()
boolean
isTypeJobExpiry()
boolean
isTypeJobFormStart()
boolean
isTypeJobReceiptWait()
boolean
isTypeJobTaskAssign()
boolean
isTypeJobTaskWait()
void
setType(String type)
Set the type value.String
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
-
-
-
-
Field Detail
-
EXPIRY_ACTION_NAME
public static final String EXPIRY_ACTION_NAME
The "Expiry" action name.- See Also:
- Constant Field Values
-
STATUS_ASSIGNED
public static final String STATUS_ASSIGNED
The Job "Assigned" status. The Task assignment action has completed successfully, but awaiting the user submission to be fully completed.- See Also:
- Constant Field Values
-
STATUS_CANCELLED
public static final String STATUS_CANCELLED
The Job Action "Cancelled" status. The job action is cancelled manually and will never be run again.- See Also:
- Constant Field Values
-
STATUS_COMPLETED
public static final String STATUS_COMPLETED
The Job Action "Completed" status. The job action is completed and will never run again.- See Also:
- Constant Field Values
-
STATUS_ERROR
public static final String 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:
- Constant Field Values
-
STATUS_EXPIRED
public static final String STATUS_EXPIRED
The Job Action "Expired" status. The job action has expired (automaticallY) and will never run again.- See Also:
- Constant Field Values
-
STATUS_IN_PROGRESS
public static final String 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:
- Constant Field Values
-
STATUS_INVOKED
public static final String STATUS_INVOKED
The Job Action "Invoked" status. The asynchronous job action has been invoked.- See Also:
- Constant Field Values
-
STATUS_PENDING
public static final String STATUS_PENDING
The Job "Pending" status. The job action is paused and waiting for an external event to move it forward.- See Also:
- Constant Field Values
-
STATUS_READY
public static final String STATUS_READY
The Job Action "Ready" status. The action will be executed next time job runs.- See Also:
- Constant Field Values
-
STATUS_VALUES
public static final String[] STATUS_VALUES
The valid Job Action status values.
-
TYPE_VALUES
public static final String[] TYPE_VALUES
The Job Action type values.
-
-
Method Detail
-
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
public void setType(String type)
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
public String toString()
- Overrides:
toString
in classBaseEntity
- Returns:
- the string representation of this object.
-
-