...
XML Syntax | <parameter name="" value=""/> |
---|---|
Description | The parameter elements incorporate the transition of the underlying resource by changing the environment during the state transition by providing the necessary arguments for the methods defined on the in the business class which is declared by the class attribute within the <execution> element. The value of the name attribute can be given any name, but it has to be referred by the given name at the back end class defined within the <execution> element. If we omit the <parameter> element under the <execution> element during the state transition, the underlying resource does not move its environment(its storage path). |
Mandatory/Optional | Optional |
...
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 | N/A |
| Mandatory | User should define a name for the given name attribute of the <parameter> element. It does not have any default values. Parameter will be referred later on by its name. | |||||||
value | The 'value' attribute is used to compute the parameter's logic. | String | N/A | 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 | value of the media types are predefined. Those values can't be changed. |
Sample Implementations
Code Block |
---|
<execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.ServiceVersionExecutor"> <parameter name="currentEnvironment" value="/_system/governance/branches/testing/{@resourcePath}/{@version}/{@resourceName}"/> <parameter name="targetEnvironment" value="/_system/governance/branches/production/{@resourcePath}/{@version}/{@resourceName}"/> <parameter name="service.mediatype" value="application/vnd.wso2-service+xml"/> <parameter name="wsdl.mediatype" value="application/wsdl+xml"/> <parameter name="endpoint.mediatype" value="application/vnd.wso2.endpoint"/> </execution> |
...