Created
March 21, 2018 05:59
-
-
Save Madhuka/46cb1cdf225592c2b6c268d09e9001e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aspect name="BookServiceLifeCycle" class="org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle"> | |
<configuration type="literal"> | |
<lifecycle> | |
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initialstate="Acquisitions"> | |
<state id="Acquisitions"> | |
<datamodel> | |
<data name="checkItems"> | |
<item name="Proposal Completed" forEvent="" /> | |
<item name="Submit manuscript" forEvent="" /> | |
<item name="Peer Review done" forEvent="" /> | |
<item name="Approved by editorial board" forEvent="" /> | |
<item name="Launched in to editorial department" forEvent="" /> | |
</data> | |
<data name="transitionExecution"> | |
<execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.ServiceVersionExecutor"> | |
<parameter name="currentEnvironment" value="/_system/governance/trunk/{@resourcePath}/{@version}/{@resourceName}" /> | |
<parameter name="targetEnvironment" value="/_system/governance/branches/editorial/{@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> | |
</data> | |
<data name="transitionUI"> | |
<ui forEvent="Promote" href="../lifecycles/pre_invoke_aspect_ajaxprocessor.jsp?currentEnvironment=/_system/governance/trunk/" /> | |
</data> | |
<data name="transitionScripts"> | |
<js forEvent="Promote"> | |
<console function="showServiceList"> | |
<script type="text/javascript">showServiceList = function() { var element = document.getElementById('hidden_media_type'); var mediaType = ""; if (element) { mediaType = element.value;} if (mediaType == "application/vnd.wso2-service+xml") { location.href = unescape("../generic/list.jsp?region=region3%26item=governance_list_service_menu%26key=service%26breadcrumb=Services%26singularLabel=Service%26pluralLabel=Services"); } }</script> | |
</console> | |
</js> | |
</data> | |
</datamodel> | |
<transition event="Promote" target="Editorial" /> | |
</state> | |
<state id="Editorial"> | |
<datamodel> | |
<data name="checkItems"> | |
<item name="Copyediting Inspection Completed" forEvent="" /> | |
<item name="Author review done" forEvent="" /> | |
<item name="Typesetting and design" forEvent="" /> | |
<item name="Proofreading Passed" forEvent="" /> | |
<item name="Author review done" forEvent="" /> | |
</data> | |
<data name="transitionExecution"> | |
<execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions.executors.WSExecutor"> | |
<parameter name="async" value="false" /> | |
<parameter name="save.type" value="property" /> | |
<parameter name="save.name" value="response" /> | |
<parameter name="response.xpath" value="//ns:return" /> | |
<parameter name="response.namespace" value="http://ws.apache.org/axis2" /> | |
<parameter name="response.namespace.prefix" value="ns" /> | |
<parameter name="epr" value="http://localhost:8080/axis2/services/AdderService.AdderServiceHttpSoap11Endpoint/" /> | |
<parameter name="payload"> | |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://ws.apache.org/axis2"> | |
<soapenv:Header /> | |
<soapenv:Body> | |
<axis:add> | |
<axis:args0>5345</axis:args0> | |
<axis:args1>600</axis:args1> | |
</axis:add> | |
</soapenv:Body> | |
</soapenv:Envelope> | |
</parameter> | |
</execution> | |
<execution forEvent="Demote" class="org.wso2.carbon.governance.registry.extensions.executors.DemoteActionExecutor" /> | |
</data> | |
<data name="transitionUI"> | |
<ui forEvent="Promote" href="../lifecycles/pre_invoke_aspect_ajaxprocessor.jsp?currentEnvironment=/_system/governance/branches/editorial/" /> | |
</data> | |
<data name="transitionScripts"> | |
<js forEvent="Promote"> | |
<console function="showServiceList"> | |
<script type="text/javascript">showServiceList = function() { var element = document.getElementById('hidden_media_type'); var mediaType = ""; if (element) { mediaType = element.value;} if (mediaType == "application/vnd.wso2-service+xml") { location.href = unescape("../generic/list.jsp?region=region3%26item=governance_list_service_menu%26key=service%26breadcrumb=Services%26singularLabel=Service%26pluralLabel=Services"); } }</script> | |
</console> | |
</js> | |
</data> | |
</datamodel> | |
<transition event="Promote" target="Production" /> | |
<transition event="Demote" target="Acquisitions" /> | |
</state> | |
<state id="Production"> | |
<datamodel> | |
<data name="transitionExecution"> | |
<execution forEvent="Demote" class="org.wso2.carbon.governance.registry.extensions.executors.DemoteActionExecutor" /> | |
<execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.ApiStoreExecutor" /> | |
</data> | |
</datamodel> | |
<transition event="Publish" target="Published.to.APIStore" /> | |
<transition event="Demote" target="Editorial" /> | |
</state> | |
<state id="Published.to.APIStore" /> | |
</scxml> | |
</lifecycle> | |
</configuration> | |
</aspect> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment