Class JobFormStartService
- 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.JobFormStartService
-
- All Implemented Interfaces:
IServiceDefinitionAware
,IJobActionService
public class JobFormStartService extends AbstractJobActionService
Provides a 'Job Form Start' Action Service.This action service associates the initial form submission with the initial step. It can add a submission processing status messages to the initial Submission. These appear in the user's submission history.
It can also send a status update via email.
Configuration
Below is a list of the Job Action Properties which can be use to configure this step action.
Name Description Examples Process Message Text The submission processing status message text. As this is the form start the submission message will go against its associated submission. { "name": "Process Message Text", "value": "${formDataMap.name} your application has been approved" }
Process Message Send Email Specify whether to send an processing message email. { "name": "Process Message Send Email", "value": "true" } Process Message Email To Specify whether to send an processing message email. If not specified then the submissions contact email address will be used. { "name": "Process Message Email To", "value": "${formDataMap.email}" } Process Message Email Subject Template Specify an alternative email subject template to the default Form and Organization email template: 'Email Submission Status Subject'
{ "name": "Process Message Email Subject Template", "value": "Welcome Email Subject" } Process Message Email Message Template Specify an alternative email subject template to the default Form and Organization property email template: 'Email Submission Status Message'
{ "name": "Process Message Email Message Template", "value": "Welcome Email Message" } 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.
Since: 17.10{ "name": "Conditional Route Name", "value": "#if ( $formDataMap.routeName == 'Approve' && $formDataMap.loanAmount >= 20000 ) Exceeds Threshold #end" } { "name": "Conditional Route Name", "value": "$func.invoke('Job Form Start 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 JobFormStartService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResult
execute(ActionContext actionContext)
Execute the action and return the result.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.job.impl.AbstractJobActionService
getJobEventLogService, getMaxErrorRetryAttempts, getRetryDelayMins, getServiceDefinition, setMaxErrorRetryAttempts, setRetryDelayMins, setServiceDefinition
-
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)
-
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
- Overrides:
validateProperties
in classAbstractJobActionService
- 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)
-
-