Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield1033

ActionField1033

Beschrijving: Continuation question and delete or trash the DomainObject depending on its EntityName. Custom: Nee

Propertiesbewerken

Property Type Accessor
DomainObject DomainObject Root
ConfirmationForDelete Boolean Optional

XMLbewerken

<Workflow Name="ActionField1033" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Continuation question and delete or trash the DomainObject depending on its EntityName.</Description>
	<Properties>
		<Property	Name="DomainObject"				Type="DomainObject"	Accessor="Root"		Direction="In" />

		<Property	Name="ConfirmationForDelete"	Type="Boolean"		Accessor="Optional"	Direction="In"		Default="True" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="ConfirmationForDelete" Condition="${ConfirmationForDelete} == True">
			<ContinuationQuestion Name="Delete confirmation" MessageCode="2008">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${DomainObject}" />
			</ContinuationQuestion>
		</When>

		<Transaction>
			<Choose Name="Entity">
				<When Name="SpaceMaintenance?" Condition="${DomainObject.EntityName} == SpaceMaintenance">
					<TrashObject Name="Trash SpaceMaintenance" DomainObject="${DomainObject}" />
				</When>

				<Otherwise Name="Default">
					<DeleteObject Name="Delete DomainObject" DomainObject="${DomainObject}" />
				</Otherwise>
			</Choose>
		</Transaction>

		<UserContent Name="Post" />
	</Execution>
</Workflow>