Add a command chain

If a workflow is extended by a new transition and no chain to be used exists, you must add a new chain to the catalog.

Location

XML file in the xml folder

Procedure

  1. Copy a <catalog> element from the default configuration to the customizing file.
  2. Adapt one or more command chains within the <catalog> element.
  3. Add any number of command elements to the new chain. A chain can also be empty, that is, it does not contain a command element. Each command element has an ID representing a command implementation. These IDs are located in the file commandClassMapping.xml. Detailed information on the use and parameterization of the commands is provided in the Java doc of the relevant command.

Remark

After a chain was modified, the target state of a transition may no longer be valid from the perspective of the workflow configuration.

Example

If a transition ends in a state that is defined by the value X of the attribute A, but a command sets the value of attribute A to Y, the target state is invalid or not achieved. In this case, the transition execution is undone and an error message is displayed.

Documents

commandChains.xsd, commandChains_*.xml

Example

ModifyObjectLifecycle

\WEB-INF\config\custom\xml\testcase_catalog_custom.xml: Add custom command chain