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

ActionField1221

Beschrijving: Check part-of relation for a DomainObject. Custom: Nee

Propertiesbewerken

Property Type Accessor
DomainObject DomainObject Root
PartOfPropertyName String Required
ShowDescriptionsInMessages Boolean Required
ShowIdsInMessages Boolean Required

XMLbewerken

<Workflow Name="ActionField1221" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Check part-of relation for a DomainObject.</Description>
	<Properties>
		<Property	Name="DomainObject"					Type="DomainObject"		Accessor="Root"		Direction="In" />

		<Property	Name="PartOfPropertyName"			Type="String"			Accessor="Required"	Direction="In"		Comment="Specify the property name that is used for the part-of relation" />
		<Property	Name="ShowDescriptionsInMessages"	Type="Boolean"			Accessor="Required"	Direction="In"		Comment="Specify whether DomainObject descriptions should be shown in messages" />
		<Property	Name="ShowIdsInMessages"			Type="Boolean"			Accessor="Required"	Direction="In"		Comment="Specify whether DomainObject ids should be shown in messages" />

		<Property	Name="ChainWithPartOfIds"			Type="String"			Accessor="Internal" />
		<Property	Name="ErrorType"					Type="PartOfErrorType"	Accessor="Internal" />
		<Property	Name="OtherDomainObject"			Type="DomainObject"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Command Name="Check part-of relation for DomainObject" CommandName="DomainObject_CheckPartOf">
				<Parameter	Name="DomainObject"			Direction="In"		Value="${DomainObject}" />
				<Parameter	Name="PartOfPropertyName"	Direction="In"		Value="${PartOfPropertyName}" />
				<Parameter	Name="ChainWithPartOfIds"	Direction="Out"										OutputProperty="${ChainWithPartOfIds}" />
				<Parameter	Name="OtherDomainObject"	Direction="Out"										OutputProperty="${OtherDomainObject}" />
				<Parameter	Name="PartOfErrorType"		Direction="Out"										OutputProperty="${ErrorType}" />
			</Command>
		</Transaction>

		<Choose Name="Check ErrorType">
			<When Name="ErrorType is Self" Condition="${ErrorType} == Self">
				<Message Name="ErrorSelf" MessageCode="2623">
					<Parameter	Name="DomainObject"	Direction="In"		Value="${DomainObject}" />
					<Parameter	Name="ShowDescr"	Direction="In"		Value="${ShowDescriptionsInMessages}" />
					<Parameter	Name="ShowId"		Direction="In"		Value="${ShowIdsInMessages}" />
				</Message>
			</When>


			<When Name="ErrorType is Other" Condition="${ErrorType} == Other">
				<Message Name="ErrorOther" MessageCode="2624">
					<Parameter	Name="DomainObject"			Direction="In"		Value="${DomainObject}" />
					<Parameter	Name="OtherDomainObject"	Direction="In"		Value="${OtherDomainObject}" />
					<Parameter	Name="ShowDescr"			Direction="In"		Value="${ShowDescriptionsInMessages}" />
					<Parameter	Name="ShowId"				Direction="In"		Value="${ShowIdsInMessages}" />
				</Message>
			</When>


			<When Name="ErrorType is List" Condition="${ErrorType} == List">
				<Message Name="ErrorList" MessageCode="2625">
					<Parameter	Name="ChainWithPartOfIds"	Direction="In"		Value="${ChainWithPartOfIds}" />
					<Parameter	Name="DomainObject"			Direction="In"		Value="${DomainObject}" />
					<Parameter	Name="OtherDomainObject"	Direction="In"		Value="${OtherDomainObject}" />
					<Parameter	Name="ShowDescr"			Direction="In"		Value="${ShowDescriptionsInMessages}" />
					<Parameter	Name="ShowId"				Direction="In"		Value="${ShowIdsInMessages}" />
				</Message>
			</When>
		</Choose>

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