The following code shows an example of a wizards.xml file that defines a custom CIM plugin. The plugin helps a user install an Oracle ATG Web Commerce hot fix, and shows the elements previously described in this chapter working together.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wizards SYSTEM "http://www.atg.com/dtds/wizard_1_0.dtd">
<wizards>
  <wizard id="MyPlugin">
    <title>Configure ATG11 Hotfix 2</title>
      <detail>Installs a test hotfix</detail>

      <process id="TestProcess">
        <step id="FirstStep">
           <title>First Step</title>
           <detail>Choose the task you want to perform:</detail>
           <navoption id="install">
             <label>[I]nstall hotfix</label>
             <command type="GOTO_STEP" value="InstallHotfix"/>
           </navoption>
           <navoption id="uninstall">
             <label>[U]ninstall hotfix</label>
             <command type="GOTO_STEP" value="UninstallHotfix"/>
           </navoption>
        </step>

        <step id="InstallHotfix">
          <title>Test Hotfix Installation</title>
            <detail></detail>
            <navoption id="install">
              <label>[I]nstall hotfix</label>
              <command type="GOTO_STEP" value="UnjarHotfix"/>
            </navoption>
        </step>
        <step id="UnjarHotfix">
          <title>Test Hotfix Installation</title>
            <detail></detail>
            <task id="UnjarHotfix"/>
            <task id="CreateProperties"/>
            <validator id="AlwaysTrueValidator" phase="PRENAVIGATION">
              <if-true>
                <command type="EXECUTE_STEP_TASKS"  />
                  <command type="GOTO_STEP" value="FirstStep"/>
              </if-true>
            </validator>
        </step>

        <step id="UninstallHotfix">
          <title>Test Hotfix Uninstallation</title>
          <detail></detail>
          <navoption id="install">
            <label>[U]ninstall hotfix</label>
            <command type="GOTO_STEP" value="RemoveHotfix"/>
          </navoption>
        </step>

        <step id="RemoveHotfix">
          <title>Uninstall Hotfix</title>
          <detail>Uninstalls the test hotfix</detail>
          <task id="RemoveHotfix"/>
          <task id="RemoveProperties"/>
          <validator id="AlwaysTrueValidator" phase="PRENAVIGATION">
            <if-true>
              <command type="EXECUTE_STEP_TASKS"  />
                <command type="DISPLAY_TEXT" value="Hotfix has been
                    uninstalled" />
              <command type="GOTO_STEP" value="FirstStep"/>
            </if-true>
          </validator>
        </step>

      </process>
  </wizard>
</wizards>

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices