OS1 Services
Orchestrator Service

Job Manager Plugin

8min

This plugin will interpret the current event and, if required, it will either create a new job or update an existing one.

Use case

  1. Create a Job for a work-order created event.
  2. Create a Job for the job completed event where reasonCode != R-0065 (re-attempt).

Input

  1. tenantId
  2. pickupLocation
  3. pickupContact
  4. deliverLocation
  5. deliverContact
  6. jobWorkflowId
  7. jobTypeId
  8. jobTypeName
  9. objectives
  10. customData
  11. orderId
  12. workOrderId
  13. callback

Output

CreateJobCommand

Logic

If pickupLocation != deliverLocation -> CreateJobCommand returned

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

JSON


Create a job after the previous one fails.

Create Another Job


Plugin

Plugin