Add a state to a deleted object

Users can delete or disable an object by clicking Delete. If this object is a versioned object, it is removed from the database, but only deactivated. A deactivated object can be reactivated. For details, see Add a transition and Add a 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 new <state.deleted> within the <workflow> element below the active states. The id attribute must have a value that is unique within the workflow for deleted states.

Remark

The state of an object must be uniquely identifiable by the values of the <Attribute> elements, that is, an object is in a particular state if values are defined for it in the <Attribute> elements. The persistent values of an object are used to determine the state. An added state.deleted must be accessible by at least one delete transition. See Add a delete transition.

Documents

workflow_*.xml, workflow.xsd

Example

ModifyObjectLifecycle

\WEB-INF\config\custom\xml\testcase_workflow_custom.xml: New custom deleted workflow state