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

ActionField634

Beschrijving: Check if the part-of-structure of Site is valid. Custom: Nee

Propertiesbewerken

Property Type Accessor
Site Site Root

XMLbewerken

<Workflow Name="ActionField634" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Check if the part-of-structure of Site is valid.</Description>
	<Properties>
		<Property	Name="Site"			Type="Site"				Accessor="Root"		Direction="In" />

		<Property	Name="ErrorType"	Type="PartOfErrorType"	Accessor="Internal" />
		<Property	Name="OtherSite"	Type="Site"				Accessor="Internal" />
		<Property	Name="SiteIdList"	Type="String"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Command Name="Check PartOf" CommandName="DomainObject_CheckPartOf">
				<Parameter	Name="DomainObject"			Direction="In"		Value="${Site}" />
				<Parameter	Name="PartOfPropertyName"	Direction="In"		Value="PartOfSite" />
				<Parameter	Name="ChainWithPartOfIds"	Direction="Out"							OutputProperty="${SiteIdList}" />
				<Parameter	Name="OtherDomainObject"	Direction="Out"							OutputProperty="${OtherSite}" />
				<Parameter	Name="PartOfErrorType"		Direction="Out"							OutputProperty="${ErrorType}" />
			</Command>
		</Transaction>

		<UserContent Name="Post" />

		<Choose Name="Check Error Type">
			<When Name="Error Type is Self" Condition="${ErrorType} == Self">
				<Message Name="ErrorSelf" MessageCode="0945">
					<Parameter	Name="Site"	Direction="In"		Value="${Site}" />
				</Message>
			</When>


			<When Name="Error Type is Other" Condition="${ErrorType} == Other">
				<Message Name="ErrorOther" MessageCode="0972">
					<Parameter	Name="OtherSite"	Direction="In"		Value="${OtherSite}" />
					<Parameter	Name="Site"			Direction="In"		Value="${Site}" />
				</Message>
			</When>


			<When Name="Error Type is List" Condition="${ErrorType} == List">
				<Message Name="ErrorList" MessageCode="0973">
					<Parameter	Name="OtherSite"	Direction="In"		Value="${OtherSite}" />
					<Parameter	Name="Site"			Direction="In"		Value="${Site}" />
					<Parameter	Name="SiteIdList"	Direction="In"		Value="${SiteIdList}" />
				</Message>
			</When>
		</Choose>
	</Execution>
</Workflow>