Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 8 Mapping and Transforming Data : Repairing Incorrect Mappings

Repairing Incorrect Mappings
Any incorrect statements are displayed in red in the Activity Input panel. Errors can occur for a number of reasons. For example,
You should correct any errors before attempting to test or deploy your process definition.
To help find potential problems in your mappings, click the Mapper Check and Repair button. This button displays a dialog with all potential problems in the specified mappings. You can select the Fix checkbox for potential errors, and TIBCO ActiveMatrix BusinessWorks will attempt to fix the problem.
For example, Figure 26 illustrates an activity input schema for the External Command activity. A new element named foo has been added to the schema and the expected element token has been removed. The Mapper Check and Repair dialog displays these problems with the Fix checkbox checked. You can select or clear the Fix checkbox for each item, depending upon whether you wish to fix the problem or leave the problem until a later time. When you click OK, any items that are marked for fixing are repaired.
Figure 26 Mapper check and repair dialog
 
Some potential problems in the Mapper Check or Repair dialog cannot be fixed easily, and therefore there is no checkbox in the Fix column for these items. For example, if an element expects a string and you supply a complex type, the corrective action to fix the problem is not clear, and therefore TIBCO ActiveMatrix BusinessWorks cannot automatically fix the problem. You must repair these items manually.
If you want to return to the original expected activity input and remove all of the currently specified mappings, perform the following:
1.
2.
3.
4.
Alternatively, you can simply select the root input element and press the delete key on your keyboard as a shortcut for the procedure above.
After deleting all mappings and schema items and then repairing the input schema, the activity’s input reverts to the state when the activity is first dragged into the design panel.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved