app-workflow_engine Schemas

On this page:

jobTaskDocument

{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "jobTaskDocument", "type": "object", "title": "The Root Schema", "required": [ "name", "summary", "displayName", "type", "x", "y", "status" ], "definitions": { "variables": { "type": "object", "properties": { "incoming": { "type": "object", "examples": [ { "inputVariable": "inputValue" } ] }, "outgoing": { "type": "object", "examples": [ { "outputVariable": null } ] }, "error": { "type": "string", "pattern": "" } } } }, "properties": { "name": { "$id": "#/properties/name", "type": "string", "title": "The Name of the task", "examples": [ "TestTask" ] }, "summary": { "$id": "#/properties/summary", "type": "string", "title": "The Summary for the task", "examples": [ "Test Task" ] }, "description": { "$id": "#/properties/description", "type": "string", "title": "The Description of the task", "examples": [ "Test Task" ] }, "app": { "$id": "#/properties/app", "type": "string", "title": "The associated app for this task", "description": "The app this task is a part of", "examples": [ "WorkflowBuilder" ] }, "displayName": { "$id": "#/properties/displayName", "type": "string", "title": "The display name of the app", "description": "The display name of the app associated with this task", "examples": [ "WorkflowBuilder" ] }, "canvasName": { "$id": "#/properties/canvasName", "type": "string", "title": "The canvas name of the app", "description": "The name that appears on the automation builder canvas for this task", "examples": [ "taskName1" ] }, "canvasTab": { "$id": "#/properties/canvasTab", "type": "string", "title": "The canvas tab of the task", "description": "The name of the tab that the task goes under", "examples": [ "taskName1" ] }, "type": { "$id": "#/properties/type", "type": "string", "title": "The task type", "description": "The task type, usually 'automated' or 'manual'", "examples": [ "automated" ] }, "view": { "$id": "#/properties/view", "type": "string", "title": "URL to view the running task", "description": "If available, a relative URL to view this task", "examples": [ "/workflow_builder/task/TestTask" ] }, "deprecated": { "$id": "#/properties/deprecated", "type": "boolean", "title": "Deprecation indicator", "description": "If applicable, this will be an indicator on whether or not this is a deprecated task", "examples": [ false ] }, "x": { "$ref": "wfEngineCommon#/definitions/x" }, "y": { "$ref": "wfEngineCommon#/definitions/y" }, "scheduled": { "$id": "#/properties/scheduled", "type": "boolean", "title": "Schedule task indicator", "description": "Indicator on whether or not this is a scheduled task", "examples": [ false ] }, "status": { "$id": "#/properties/status", "type": "string", "enum": [ "complete", "error", "canceled", "active", "incomplete", "running", "primed", "paused" ], "title": "The status", "description": "The status of the task (running, error, incomplete, etc)", "examples": [ "complete" ] }, "metrics": { "$id": "#/properties/metrics", "type": "object", "title": "The task metrics ", "description": "Metrics of the currently running iteration", "required": [], "properties": { "owner": { "$id": "#/properties/metrics/properties/owner", "type": [ "object", "string" ], "title": "The owner of the task" }, "start_time": { "$id": "#/properties/metrics/properties/start_time", "type": "number", "title": "Task start time", "description": "When the task started, in milliseconds since the UNIX epoh", "examples": [ 1555430149763 ] }, "end_time": { "$id": "#/properties/metrics/properties/end_time", "type": "number", "title": "Task end time", "description": "When the task ended, in milliseconds since the UNIX epoh", "examples": [ 1555430169683 ] }, "run_time": { "$id": "#/properties/metrics/properties/run_time", "type": "number", "title": "Task run time", "description": "How long, in milliseconds, the task took to run", "examples": [ 75069184 ] }, "finish_state": { "$id": "#/properties/metrics/properties/finish_state", "type": "string", "enum": [ "success", "failure", "error" ], "title": "The end state for the task", "description": "What the status of the task was when it finished (error, completed, etc)", "examples": [ "success" ] }, "server_id": { "$id": "#/properties/metrics/properties/server_id", "type": "string", "title": "The id of the server the task ran on ", "description": "Identified the specific server the task ran/is running on", "examples": [ "ac:de:48:00:11:22:3000" ] }, "app": { "$id": "#/properties/metrics/properties/app", "type": "object", "title": "The application tied to the task", "description": "Details on the application that's tied to the task", "required": [ "id" ], "properties": { "id": { "$id": "#/properties/metrics/properties/app/properties/id", "type": "string", "title": "Id of the app", "examples": [ "WorkFlowEngine" ] }, "version": { "$id": "#/properties/metrics/properties/app/properties/version", "type": "string", "title": "Version of the app", "examples": [ "1.2.3" ] } } } } }, "iterations": { "$id": "#/properties/iterations", "type": "array", "title": "The Task Iterations ", "description": "", "items": { "$ref": "wfEngineCommon#/definitions/mongoObjectId" } }, "variables": { "$ref": "#/definitions/variables" } } }