Class TaskRouting

    • Constructor Detail

      • TaskRouting

        public TaskRouting​(List<WorkflowRule> workflowRules,
                           WorkflowRuleTarget defaultTarget)
        Constructor for creating based on json..
        Parameters:
        workflowRules - Workflow Rule configuration
        defaultTarget - Default Rule target
    • Method Detail

      • getWorkflowRules

        public List<WorkflowRule> getWorkflowRules()
        Get the workflow rules for the workflow.
        Returns:
        the list of workflow rules
      • getDefaultTarget

        public WorkflowRuleTarget getDefaultTarget()
        Get the default filter for the workflow.
        Returns:
        the default filter
      • fromJson

        public static TaskRouting fromJson​(String json)
                                    throws IOException
        Converts a JSON workflow configuration to a workflow rule object.
        Parameters:
        json - JSON for workflow rule
        Returns:
        a workflow rule target object
        Throws:
        IOException - if unable to create object