...
Attribute | Description | Type | Default Value | Fixed Values | Mandatory/Optional | Notes | ||
---|---|---|---|---|---|---|---|---|
forEvent | Defines the event for which this execution should be performed. It gives user the flexibility to define executions for each event. A valid event value must be given to this attribute. | String | N/A |
| Mandatory | promote/demote/publish - When this event is invoked, the life cycle's state changes from its current state to the target state which is defined in the "target" attribute of the <transition> element. | ||
class | Defines the class that needs to be executed at runtime, when the user invokes the corresponding event within a given state. This class consists of business logic to be executed and facilitates environment changes during state transitions. A user must give the full, qualified name of a class that implements the | String | N/A | Mandatory | org.wso2.carbon.governance.registry.extensions. | Mandatory | The class named "org.wso2.carbon.governance .registry.extensions.executors.ServiceVersionExecutor" does provide the necessary business logic for the complete default lifecycle configuration model. |
Sample Implementations
Code Block |
---|
<execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.ServiceVersionExecutor"> |
...