Class JobTaskWaitService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.job.impl.AbstractJobActionService
-
- com.avoka.fc.core.service.job.impl.JobTaskWaitService
-
- All Implemented Interfaces:
IServiceDefinitionAware
,IJobActionService
public class JobTaskWaitService extends AbstractJobActionService
Provides a 'Job Task Wait' Action Service.The is usually configured in the same step as a Job Task Assign action service which has creates and assigns an Task. This service waits for the Task to be submitted. It then route the task based upon the the route name specified in the form data //SystemProfile/Job/RouteName.
Configuration
Below is a list of the Job Action Properties which can be use to configure this action step.
Name Description Examples Conditional Route Name This provides an alternate route name
to that provided by the form. This my
be based upon a dynamic value such as
a velocity template or a property
function. If a non blank value
is returned then this will be used in
place of the forms route name.{ "name": "Conditional Route Name", "value": "#if ( $formDataMap.routeName == 'Approve' && $formDataMap.loanAmount >= 20000 ) Exceeds Threshold #end" } { "name": "Conditional Route Name", "value": "##EXECUTE_GROOVY_SERVICE('2 Step Review Applicant Update Routing', 'RouteName:${formDataMap.routeName}|LoanAmount:${formDataMap.loanAmount}')" }
- Since:
- 4.0.0
-
-
Field Summary
-
Fields inherited from class com.avoka.fc.core.service.job.impl.AbstractJobActionService
jobEventLogService, maxErrorRetryAttempts, retryDelayMins, serviceDefinition
-
-
Constructor Summary
Constructors Constructor Description JobTaskWaitService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResult
execute(ActionContext actionContext)
Execute the action and return the result.-
Methods inherited from class com.avoka.fc.core.service.job.impl.AbstractJobActionService
getJobEventLogService, getMaxErrorRetryAttempts, getRetryDelayMins, getServiceDefinition, setMaxErrorRetryAttempts, setRetryDelayMins, setServiceDefinition, validateProperties
-
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
-
-
-
-
Method Detail
-
execute
public ActionResult execute(ActionContext actionContext)
Description copied from interface:IJobActionService
Execute the action and return the result.- Parameters:
actionContext
- the job action execution context (required)- Returns:
- the action result
- See Also:
IJobActionService.execute(ActionContext)
-
-