Add a prepare transition

A prepare transition is executed when an object is created by a user or a server task. After this transition was executed, the object is always in the state.prepared state.

Location

XML file in the xml folder

Procedure

  1. Copy a <workflow> element from the default configuration to the customizing file.
  2. Create a new prepare transition within the <state.initial> element. A prepare element must refer to an existing command chain of the command catalog that belongs to the workflow (commandChains_*.xml) in the chain.id attribute.

Remark

Prepare transitions can either have a <permission.workflow> or a <permission.job> child element.

  • <permission.job> is used to execute a transition by the specified server task only.
  • <permission.workflow> is used to execute a transition by the specified workflow only.

Documents

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

Example

ModifyObjectLifecycle

\WEB-INF\config\custom\xml\user_workflow_custom.xml: New custom prepare transition