Versions Compared

Key

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

...

5. Once the user decides to Proceed, the service and its dependencies are moved (or copied) to the Production (or branches/production) environment.

6. Other than the given parameters in the below configuration, there are more parameters which can be defined to instruct the executor to forward community features, associations and dependencies of a resource to the new environment. The parameters are as given below.

a. copyComments - When set to true this parameter instructs the executor to forward the comments of a service to the new environment. set to false by default.

b. copyTags - When set to true this parameter instructs the executor to forward the tags of a service to the new environment. set to false by default.

c. copyRatings - When set to true this parameter instructs the executor to forward the ratings of a service to the new environment. set to false by default.

d. copyAssociations - When set to true this parameter instructs the executor to forward the associations of a service to the new environment. set to false by default.

e. copyDependencies - When set to true this parameter instructs the executor to forward the dependencies of a service to the new environment. set to true by default.

However, the default configuration might not always be the ideal, and users are given the option to tailor their environments using the following configuration.

Code Block

<execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.ServiceVersionExecutor">
   <parameter name="currentEnvironment" value="/_system/governance/trunk/{@resourcePath}/{@resourceName}"/>
   <parameter name="targetEnvironment" value="/_system/governance/branches/testing/{@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>

...

The configuration of the copy executor is somewhat similar to the service version executor.

Code Block

<execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.CopyExecutor">
   <parameter name="currentEnvironment" value="/_system/governance/e1"/>
   <parameter name="targetEnvironment" value="/_system/governance/e2"/>                                
<execution>