Class 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