In addition to whatever error handling you may build into your Java classes, CIM includes an XML-level form of basic error handling. If one of your steps encounters an error during execution, you can use the <error> element to specify an alternative step.
In this example. the error element checks to see if there have been changes to CIM’s persisted data made outside of CIM; if so, the UI prompts the user to re-select a product for configuration.
<error> <step id="ProductionSelectionPersistenceCheckErrorStep"> <title>Product Selection Model Update</title> <detail> <![CDATA[ The CIM Product object model has been updated. REQUIRED ACTION: Re-Execute the Product Selection wizard. Select [p] from the Main Menu. ]]> </detail> <navoption id="continue"> <label>Continue</label> <command type="NEXT_STEP" /> </navoption> </step> </error>