...
XML Syntax | <parameter name="" value=""/> |
---|---|
Description |
|
Mandatory/Optional | Optional |
Attributes of the Element
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. |
| If the user hasn't defined a value here, does it get a default value?N/A |
| Is the name attribute mandatory?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. | N/A | N/A | Mandatory |
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> |
...