|
| 1 | +{ |
| 2 | + "$id": "io.miranum.bpmn.command.v1.ActivateJobsResponse", |
| 3 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 4 | + "type": "object", |
| 5 | + "properties": { |
| 6 | + "jobs": { |
| 7 | + "description": "list of activated jobs", |
| 8 | + "type": "array", |
| 9 | + "items": { |
| 10 | + "$ref": "#/definitions/ActivatedJob" |
| 11 | + } |
| 12 | + } |
| 13 | + }, |
| 14 | + "definitions": { |
| 15 | + "ActivatedJob": { |
| 16 | + "type": "object", |
| 17 | + "properties": { |
| 18 | + "key": { |
| 19 | + "description": "the key, a unique identifier for the job", |
| 20 | + "type": "number" |
| 21 | + }, |
| 22 | + "type": { |
| 23 | + "description": "the type of the job (should match what was requested)", |
| 24 | + "type": "string" |
| 25 | + }, |
| 26 | + "processInstanceKey": { |
| 27 | + "description": "the job's process instance key", |
| 28 | + "type": "number" |
| 29 | + }, |
| 30 | + "bpmnProcessId": { |
| 31 | + "description": "the bpmn process ID of the job process definition", |
| 32 | + "type": "string" |
| 33 | + }, |
| 34 | + "processDefinitionVersion": { |
| 35 | + "description": "the version of the job process definition", |
| 36 | + "type": "number" |
| 37 | + }, |
| 38 | + "processDefinitionKey": { |
| 39 | + "description": "the key of the job process definition", |
| 40 | + "type": "number" |
| 41 | + }, |
| 42 | + "elementId": { |
| 43 | + "description": "the associated task element ID", |
| 44 | + "type": "string" |
| 45 | + }, |
| 46 | + "elementInstanceKey": { |
| 47 | + "description": "the unique key identifying the associated task, unique within the scope of the\nprocess instance", |
| 48 | + "type": "number" |
| 49 | + }, |
| 50 | + "customHeaders": { |
| 51 | + "description": "a set of custom headers defined during modelling; returned as a serialized\nJSON document", |
| 52 | + "type": "string" |
| 53 | + }, |
| 54 | + "worker": { |
| 55 | + "description": "the name of the worker which activated this job", |
| 56 | + "type": "string" |
| 57 | + }, |
| 58 | + "retries": { |
| 59 | + "description": "the amount of retries left to this job (should always be positive)", |
| 60 | + "type": "number" |
| 61 | + }, |
| 62 | + "deadline": { |
| 63 | + "description": "when the job can be activated again, sent as a UNIX epoch timestamp", |
| 64 | + "type": "number" |
| 65 | + }, |
| 66 | + "variables": { |
| 67 | + "description": "JSON document, computed at activation time, consisting of all visible variables to\nthe task scope", |
| 68 | + "type": "string" |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | +} |
0 commit comments