Moving an Application to a Folder

You can move a an application to a folder from the GUI or by using the CLI.

GUI

Procedure

  1. Click Applications.
  2. Select an environment from the Environment drop-down list.
  3. In Applications list, select an application folder and click Move .
  4. Select the folder where you want to move the application and click Save.
    The application is added to the specified folder.

CLI

Procedure

  1. In the data file, specify an ApplicationFolder element in full format. For example:
    <Environment xsi:type="amxdata:Environment" name="DevEnvironment08" >	
    <Node xsi:type="amxdata:Node" name="DevNode08">
    ..
    </Node>
    <Application xsi:type="amxdata:Application" name="mediation.helloworld.log" folderPath="myAppFolder2">
    <Node name="DevNode08" environmentName="DevEnvironment08" />
    <Property xsi:type="amxdata:Property" name="Property1" value="propertyValue"/>
    <PromotedReference xsi:type="amxdata_base:Reference_base" name="Reference2">
    ..	
    </PromotedReference>
    <TargetFolder xsi:type="amxdata_reference:ApplicationFolder_reference" name="root" />
    <ApplicationTemplate xsi:type="amxdata_reference:ApplicationTemplate_reference" name="testApp"/>
    <ImportResourceTemplateName>ALL</ImportResourceTemplateName>
    <Logger xsi:type="amxdata:Logger" name ="com.tibco.amf.admin.api.amx.node.impl" additivity="true">
    ..
    </Logger>
    </Application>
    </Environment>
    
  2. In the build file application_build.xml, set the action attribute of the AMXAdminTask element to move and the objectSelector attribute to Environment/Application.
    <target name="move-app">
    <AMXAdminTask 
    action="move" 
    objectSelector="Environment/Application" 
    remote="true" 
    propsFile="$
    {instanceProperties}
    " 
    dataFile="$
    {dataFile}
    " 
    overwrite="true" merge="true" createIfNotExists="true" force="false" failOnError="false" /> 
    </target>
  3. Invoke the command-line interface on the build file.