...
Code Block |
---|
<execution forEvent="promote" class="org.wso2.carbon.registry.extensions.ServiceVersionExecutor"/> |
...
<parameter>
Anchor | ||||
---|---|---|---|---|
|
XML Syntax | <execution forEvent<parameter name="" classvalue=""/> | |
---|---|---|
Description | An executor is business logic that is executed once a state transition happens in a lifecycle. The | Type The element is defined under the <execution> element. The parameter element contains the name and value attributes itself. The parameter will be referred by its name attribute by the business logic that has been defined by the "class" attribute defined within the "<execution>" element and the corresponding parameter's value which is denoted by the value attribute will be used to compute the logic. |
Type | ||
Default Value | ||
Fixed Values | ||
Mandatory/Optional |
...
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 eventname | The parameter will be referred by its name attribute by the business logic that has been defined by the "class" attribute defined within the "<execution>" element |
| |||||
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 value | parameter's value which is denoted by the value attribute will be used to compute the logic. |
Sample Implementations
...