Skip to content

Latest commit

 

History

History
82 lines (71 loc) · 1.39 KB

process_runs_schemas.md

File metadata and controls

82 lines (71 loc) · 1.39 KB

Process Run Schemas

Process Run
Process Run Request
Process Run Status

Process Run Types

Process Run Request Type Process Run Status Type


Process Run

type ProcessRun = {
    id: string
  ; name: string
  ; process: string
  ; description: string
  ; lastModifiedBy: string
  ; dateModified: string
  ; dateCreated: string
  ; alertEmailAddress: string
  ; alertSMS: string
}

Process Run Request

type ProcessRunRequest = {
    request: ProcessRunRequestType
  ; processRunId: string
}

Process Run Status

type ProcessRunStatus = {
    id: string
  ; dateStarted: string
  ; dateFinished: string
  ; runDurationInSeconds: number
  ; status: ProcessRunStatus
}

Process Run Request Type

enum ProcessRunRequestType {
  startRun = "ProcessRun_StartRq",
  cancelRun = "ProcessRun_CancelRq"
}

Process Run Status Type

enum ProcessRunStatusType {
  "NotStarted" = 1,
  "Scheduled" = 2,
  "Running" = 3,
  "Finished" = 4,
  "Cancelled" = 5,
  "TimedOut" = 6
}

Process Step Status Type

enum ProcessStepStatusType {
  "NotStarted" = 1,
  "Running" = 2,
  "Success" = 3,
  "Warning" = 4,
  "Failed" = 5,
  "Scheduled" = 6,
  "Cancelled" = 7,
  "Skipped" = 8
}