Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AttributeDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
name

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

  • currentEnvironment/targetEnvironment - denotes the resource path at the current and target state. Its String literal type.
  • service.mediatype/wsdl.mediatype/endpoint.mediatype - denotes the mime "MediaType" parameters.
 
  • currentEnvironment - denotes the fully qualified path of the resource under the current state; current state is the state in which the resource currently in.
  • targetEnvironment - denotes the path to which the resource has to move during the state transition. 
  • service.mediatype - points out the MIME mediatype of the service artifact.
  • wsdl.mediatype - points out the MIME mediatype of the WSDL artifact.
  • endpoint.mediatype - points out the MIME mediatype of the artifact name Endpoint.
all the fields are mandatory.
  • Since the artifacts are to be governed,the current and target environment have to start with "/_system/governance". In other words, the artifact which are governed must be stored under "/_system/governance/" directory. Therefore the artifact has to be under the above directory at any state transition.
value parameter's value which is denoted by the value attribute will be used to compute the logic.     
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>

Back to Top ^

...

<ui>
Anchor
ui
ui

...