Modify a command chain

If you want to execute additional actions such as sending messages, changing data, etc. when a transition is run, you must add commands to an existing chain.

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 by extending the chain with a command element or removing 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

It is possible that the target state of a transition is no longer valid from the perspective of the workflow configuration after a chain was changed.

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: Change command chain