...
XML Syntax | <execution forEvent="" class=""/> |
---|---|
Description | An executor is business logic that is executed once a state transition happens in a lifecycle. The |
Type | |
Default Value | |
Fixed Values | |
Mandatory/Optional |
Attributes of the Element
Attribute | Description | Type | Default Value | Fixed Values | Mandatory/Optional | Notes | |||
---|---|---|---|---|---|---|---|---|---|
forEvent | Defines the event for which this execution should be performed. This gives user the flexibility to define executions for each event. | String | promote |
| demote
| publish
|
| Mandatory - A valid event value must be given. | promote/demote/publish - When invokeinvokinf this event, the LC state changechanges from its current state to target state which is defined within the <transition> element by the "target" attribute. |
class | Defines the class that needs to be executed at runtime. A user must give the full, qualified name of a class that implements the Execution interface, as the value of the attribute class . | String | mandatoryMandatory | This class consists of business logic which will be executed when the user invoke the corresponding event within a given state. This class facilitates the environment changes during the state transition |
...
Attribute | Description | Type | Default Value | Fixed Values | Mandatory/Optional | Notes |
---|---|---|---|---|---|---|
name | The 'name' attribute is referred by the business logic defined in the 'class' attribute of the <execution> element. | String Literal: The values 'currentEnvironment' and 'targetEnvironment' are of String Literal type.MIME Media Type: The values 'service.mediatype', 'wsdl.mediatype' and 'endpoint.mediatype' denote the parameters. | N/A |
| Mandatory | Since the artifacts are to be governed, the current and target environment have to start with "/_system/governance". In other words, the artifacts that are governed must be stored under "/_system/governance/" directory at any state transition. |
value | The 'value' attribute is used to compute the parameter's logic. | String | N/A | N/A | Mandatory |
Sample Implementations
...