OS1 Services
Orchestrator Service

Workflow Manager Plugin

9min

This plugin will read the current event data from the config files, and then it will decide which job workflow to be used and what is the input data for that workflow.

Use case

The plugin helps in deciding what job workflow and input data to use for which work order.

Input

Input for this plugin is totally configurable and depends on what the configuration file needs in its logic. Input required for current configuration file - 

  1. paymentType
  2. amount

Output

  1. Job workflow id
  2. Job workflow input
  3. customData

Logic 

This plugin uses a configuration file to give output. The configuration file is an array of configs and a single configuration has the following structure - 

  1. Logic - JSON logic, if true, should return the output.
  2. Output - Consists of a combination of actual value and a JSON path pointing to a value in the input.

Current Configuration

Rule

Create a new job

Create a new job


Create a job after the previous one fails.

Create a job after the previous one fails


Plugin Workflow

Create a new job

Create a new job


Create a job after the previous one fails.

Create a job after the previous one fails


Plugin

JSON