|
| 1 | +# Copyright 2017-2024 Ericsson AB and others. |
| 2 | +# For a full list of individual contributors, please see the commit history. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +--- |
| 16 | +$schema: http://json-schema.org/draft-04/schema# |
| 17 | +_abbrev: ActC |
| 18 | +_description: The EiffelActivityCanceledEvent signals that a previously |
| 19 | + triggered activity execution has been canceled _before it has started_. |
| 20 | + This is typically used in queuing situations where a queued execution |
| 21 | + is dequeued. It is recommended that __CAUSE__ links be used to indicate |
| 22 | + the reason. |
| 23 | +type: object |
| 24 | +properties: |
| 25 | + meta: |
| 26 | + $ref: ../EiffelMetaProperty/3.1.0.yml |
| 27 | + data: |
| 28 | + type: object |
| 29 | + properties: |
| 30 | + reason: |
| 31 | + _description: Any human readable information as to the reason |
| 32 | + for dequeueing. |
| 33 | + type: string |
| 34 | + customData: |
| 35 | + type: array |
| 36 | + items: |
| 37 | + $ref: ../EiffelCustomDataProperty/1.0.0.yml |
| 38 | + additionalProperties: false |
| 39 | + links: |
| 40 | + type: array |
| 41 | + items: |
| 42 | + $ref: ../EiffelEventLink/1.1.1.yml |
| 43 | +required: |
| 44 | + - meta |
| 45 | + - data |
| 46 | + - links |
| 47 | +additionalProperties: false |
| 48 | +_links: |
| 49 | + ACTIVITY_EXECUTION: |
| 50 | + description: Declares the activity execution that was canceled. |
| 51 | + In other words, [EiffelActivityTriggeredEvent](../eiffel-vocabulary/EiffelActivityTriggeredEvent.md) |
| 52 | + acts as a handle for the activity execution. This differs from |
| 53 | + __CONTEXT__. In __ACTIVITY_EXECUTION__ the source carries information |
| 54 | + pertaining to the target (i.e. the activity started, finished |
| 55 | + or was canceled). In __CONTEXT__, on the other hand, the source |
| 56 | + constitutes a subset of the target (e.g. this test case was executed |
| 57 | + as part of that activity or test suite). |
| 58 | + required: true |
| 59 | + multiple: false |
| 60 | + targets: |
| 61 | + any_type: false |
| 62 | + types: |
| 63 | + - EiffelActivityTriggeredEvent |
| 64 | + CAUSE: |
| 65 | + description: While for most events it is recommended that __CAUSE__ |
| 66 | + SHOULD not be used in conjunction with __CONTEXT__, EiffelActivityCanceledEvent |
| 67 | + is a special case as it represents a deviation from previous |
| 68 | + intention. Therefore it is recommended that __CAUSE__ always |
| 69 | + be included where applicable. |
| 70 | + required: false |
| 71 | + multiple: true |
| 72 | + targets: |
| 73 | + any_type: true |
| 74 | + types: [] |
| 75 | + CONTEXT: |
| 76 | + description: Identifies the activity or test suite of which this |
| 77 | + event constitutes a part. |
| 78 | + required: false |
| 79 | + multiple: false |
| 80 | + targets: |
| 81 | + any_type: false |
| 82 | + types: |
| 83 | + - EiffelActivityTriggeredEvent |
| 84 | + - EiffelTestSuiteStartedEvent |
| 85 | + FLOW_CONTEXT: |
| 86 | + description: 'Identifies the flow context of the event: which is |
| 87 | + the continuous integration and delivery flow in which this occurred |
| 88 | + – e.g. which product, project, track or version this is applicable |
| 89 | + to.' |
| 90 | + required: false |
| 91 | + multiple: true |
| 92 | + targets: |
| 93 | + any_type: false |
| 94 | + types: |
| 95 | + - EiffelFlowContextDefinedEvent |
| 96 | +_history: |
| 97 | + - version: 4.0.0 |
| 98 | + changes: Fix bug in schema regarding additionalProperties (see [Issue 376](https://github.com/eiffel-community/eiffel/issues/376)). |
| 99 | + - version: 3.2.0 |
| 100 | + introduced_in: edition-arica |
| 101 | + changes: Add schema URL to the meta object (see [Issue 280](https://github.com/eiffel-community/eiffel/issues/280)). |
| 102 | + - version: 3.1.0 |
| 103 | + introduced_in: edition-lyon |
| 104 | + changes: Add links.domainId member (see [Issue 233](https://github.com/eiffel-community/eiffel/issues/233)). |
| 105 | + - version: 3.0.0 |
| 106 | + introduced_in: edition-agen |
| 107 | + changes: Improved information integrity protection (see [Issue |
| 108 | + 185](https://github.com/eiffel-community/eiffel/issues/185)). |
| 109 | + - version: 2.0.0 |
| 110 | + introduced_in: edition-agen |
| 111 | + changes: Introduced purl identifiers instead of GAVs (see [Issue |
| 112 | + 182](https://github.com/eiffel-community/eiffel/issues/182)) |
| 113 | + - version: 1.1.0 |
| 114 | + introduced_in: edition-toulouse |
| 115 | + changes: Multiple links of type FLOW_CONTEXT allowed. |
| 116 | + - version: 1.0.0 |
| 117 | + introduced_in: edition-bordeaux |
| 118 | + changes: Initial version. |
| 119 | +_examples: |
| 120 | + - title: Simple example |
| 121 | + url: ../examples/events/EiffelActivityCanceledEvent/simple.json |
0 commit comments