Add an insert transition

An insert transition with the state.prepared status is executed when an object is saved for the first time. After the transition was executed, the object must be in a state defined in the workflow.

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 insert transition within the <state.prepared> element. An insert 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

Insert 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 insert transition