Add a delete transition

A delete transition is executed when a user clicks Delete in a form, or if an internal process deletes an object. An object can only be deleted if it has a state containing a delete transition. The Delete function is not available for objects in a state without outgoing delete transition.

Location

XML file in the xml folder

Procedure

  1. Copy a <workflow> element from the default configuration to the customizing file.
  2. Create one or more new delete transitions within the <transitions> element. A delete element must always refer to an active state existing in the workflow in the to.state.id attribute, and to an existing command chain of the command catalog (commandChains_*.xml) associated with the workflow in the chain.id attribute.

Remark

A delete transition added must refer to an existing state (to.state.id) and a command chain (chain.id).

Documents

workflow.xsd, workflow_*.xml, commandChains_*.xml

Example

ModifyObjectLifecycle

\WEB-INF\config\custom\xml\testcase_workflow_custom.xml: New custom delete transition