Add a recover transition

A recover transition is executed when a user clicks Reactivate in a form of a deleted or deactivated object, or if an internal process reactivates the object. An object can only be reactivated if it has an inactive state containing a recover transition. Other states cannot have outgoing recover transitions. The Reactivate function is not available for inactive objects without outgoing recover 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 delete transitions within the <transitions> element. A recover element must refer to an inactive 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 recover transition added must refer to an existing active 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 recover transition