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

ActionField632

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

Propertiesbewerken

Property Type Accessor
Department Department Root

XMLbewerken

<Workflow Name="ActionField632" 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 Department is valid.</Description>
	<Properties>
		<Property	Name="Department"		Type="Department"		Accessor="Root"		Direction="In" />

		<Property	Name="DepartmentIdList"	Type="String"			Accessor="Internal" />
		<Property	Name="ErrorType"		Type="PartOfErrorType"	Accessor="Internal" />
		<Property	Name="OtherDepartment"	Type="Department"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Command Name="Check PartOf" CommandName="DomainObject_CheckPartOf">
				<Parameter	Name="DomainObject"			Direction="In"		Value="${Department}" />
				<Parameter	Name="PartOfPropertyName"	Direction="In"		Value="PartOfDepartment" />
				<Parameter	Name="ChainWithPartOfIds"	Direction="Out"									OutputProperty="${DepartmentIdList}" />
				<Parameter	Name="OtherDomainObject"	Direction="Out"									OutputProperty="${OtherDepartment}" />
				<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="0943">
					<Parameter	Name="Department"	Direction="In"		Value="${Department}" />
				</Message>
			</When>


			<When Name="Error Type is Other" Condition="${ErrorType} == Other">
				<Message Name="ErrorOther" MessageCode="0968">
					<Parameter	Name="Department"		Direction="In"		Value="${Department}" />
					<Parameter	Name="OtherDepartment"	Direction="In"		Value="${OtherDepartment}" />
				</Message>
			</When>


			<When Name="Error Type is List" Condition="${ErrorType} == List">
				<Message Name="ErrorList" MessageCode="0969">
					<Parameter	Name="Department"		Direction="In"		Value="${Department}" />
					<Parameter	Name="DepartmentIdList"	Direction="In"		Value="${DepartmentIdList}" />
					<Parameter	Name="OtherDepartment"	Direction="In"		Value="${OtherDepartment}" />
				</Message>
			</When>
		</Choose>
	</Execution>
</Workflow>