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,
-
a required element has no statement, and therefore must be specified
-
the activity’s input schema has changed and existing statements may no longer be valid
-
the XPath formula for an element may contain an error
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 ActiveMatrix BusinessWorks will attempt to fix the problem.
For example, the following figure 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.
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 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:
Procedure
-
Delete the root element of the activity’s input by selecting it and clicking the Delete button.
-
Click the Mapper Check and Repair button.
-
Select the Fix checkbox for all items.
-
Click OK.
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.