Hi,

I am trying to get the lifecycle history from registry. I used
getTextContent action in ResourceAdminService.

One application that run in STAGIN level, i needed to get the history.
Problem is, resource path that data xml stored in the registry  is not
for staging , but for it is TESTING. To get that xml I should know what is
the stage where it was before.

This is the path that store the data xml

/_system/governance/repository/components/org.wso2.carbon.governance/lifecycles/history/__system_governance_repository_applications_app2_
Testing_1.0.2_appversion

Data XML is

<lifecycleHistory>
       <item order="2" user="[email protected]" state="Testing"
targetState="Staging"
originalPath="/_system/governance/repository/applications/app2/Testing/1.0.2/appversion"
timestamp="2013-02-26 14:47:28.013" >
              <action type="transition" name="Smoke Tests Passed*" >
                     <executors>

<executorname="org.wso2.carbon.appfactory.core.governance.lifecycle.AppFactoryLCExecutor"
/>
                        </executors>
                     <value>value:true,true</value>
                 </action>
          </item>
       <item order="1" user="[email protected]" state="Testing"
originalPath="/_system/governance/repository/applications/app2/Testing/1.0.2/appversion"
timestamp="2013-02-26 14:47:27.135" >
              <action type="itemClick" name="Test Cases Passed*" >
                     <value>value:true</value>
                 </action>
          </item>
       <item order="0" user="[email protected]" state="Testing"
originalPath="/_system/governance/repository/applications/app2/Testing/1.0.2/appversion"
timestamp="2013-02-26 14:47:26.326" >
              <action type="itemClick" name="Smoke Tests Passed*" >
                     <value>value:true</value>
                 </action>
          </item>
   </lifecycleHistory>


Both highlighted shows , this app in Testing stage, but it is already
promoted to the Staging stage. So how we request this resource ?


thanks
Harsha Thirimanna
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to