Class AbstractJobActionService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.job.impl.AbstractJobActionService
-
- All Implemented Interfaces:
IServiceDefinitionAware
,IJobActionService
- Direct Known Subclasses:
GroovyJobActionService
,JobActionWaitService
,JobDeliveryService
,JobDeliveryWaitService
,JobFormStartService
,JobProcessMessageService
,JobReceiptWaitService
,JobTaskAssignService
,JobTaskWaitService
public abstract class AbstractJobActionService extends CayenneService implements IJobActionService, IServiceDefinitionAware
Provides an abstract Job Action Service.- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected JobEventLogService
jobEventLogService
The JobEventLog service.protected int
maxErrorRetryAttempts
The maximum number of error retry attempts, default 0.protected Integer
retryDelayMins
The execute retry delay in minutes.protected ServiceDefinition
serviceDefinition
The service definition.
-
Constructor Summary
Constructors Constructor Description AbstractJobActionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JobEventLogService
getJobEventLogService()
Integer
getMaxErrorRetryAttempts()
Return the maximum number of error retry attempts should be performed.Integer
getRetryDelayMins()
Return the minimum action execute retry delay in minutes.ServiceDefinition
getServiceDefinition()
Return the service definition.void
setMaxErrorRetryAttempts(Integer attempts)
Set the maximum number of action attempts.void
setRetryDelayMins(Integer delayMins)
Set the minimum action execute retry delay in minutes.void
setServiceDefinition(ServiceDefinition serviceDefinition)
Set the service definition.String
validateProperties(ActionStepProperties actionStepProperties, Client client)
Validate the action service using the given action step service properties, returning null if valid or an error string otherwise.-
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.avoka.fc.core.service.job.IJobActionService
execute
-
-
-
-
Field Detail
-
jobEventLogService
protected JobEventLogService jobEventLogService
The JobEventLog service.
-
maxErrorRetryAttempts
protected int maxErrorRetryAttempts
The maximum number of error retry attempts, default 0.
-
retryDelayMins
protected Integer retryDelayMins
The execute retry delay in minutes.
-
serviceDefinition
protected ServiceDefinition serviceDefinition
The service definition.
-
-
Method Detail
-
validateProperties
public String validateProperties(ActionStepProperties actionStepProperties, Client client)
Validate the action service using the given action step service properties, returning null if valid or an error string otherwise.- Specified by:
validateProperties
in interfaceIJobActionService
- Parameters:
actionStepProperties
- the action step properties (required)client
- the Job Controller client (optional)- Returns:
- null if the properties are valid or null otherwise
- See Also:
IJobActionService.validateProperties(ActionStepProperties, Client)
-
getMaxErrorRetryAttempts
public Integer getMaxErrorRetryAttempts()
Description copied from interface:IJobActionService
Return the maximum number of error retry attempts should be performed.- Specified by:
getMaxErrorRetryAttempts
in interfaceIJobActionService
- Returns:
- the maximum number of error retry attempts should be performed
- See Also:
IJobActionService.getMaxErrorRetryAttempts()
-
setMaxErrorRetryAttempts
public void setMaxErrorRetryAttempts(Integer attempts)
Set the maximum number of action attempts.- Parameters:
attempts
- the maximum number of error retry attempts should be performed
-
getRetryDelayMins
public Integer getRetryDelayMins()
Description copied from interface:IJobActionService
Return the minimum action execute retry delay in minutes.- Specified by:
getRetryDelayMins
in interfaceIJobActionService
- Returns:
- the minimum action execute retry delay in minutes.
- See Also:
IJobActionService.getRetryDelayMins()
-
setRetryDelayMins
public void setRetryDelayMins(Integer delayMins)
Set the minimum action execute retry delay in minutes.- Parameters:
delayMins
- the retry delay in minutes
-
getServiceDefinition
public ServiceDefinition getServiceDefinition()
Return the service definition.- Specified by:
getServiceDefinition
in interfaceIServiceDefinitionAware
- Returns:
- the service definition
- See Also:
IServiceDefinitionAware.getServiceDefinition()
-
setServiceDefinition
public void setServiceDefinition(ServiceDefinition serviceDefinition)
Set the service definition.- Specified by:
setServiceDefinition
in interfaceIServiceDefinitionAware
- Parameters:
serviceDefinition
- the service definition- See Also:
IServiceDefinitionAware.setServiceDefinition(ServiceDefinition)
-
getJobEventLogService
protected JobEventLogService getJobEventLogService()
-
-