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

ActionField637

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

Propertiesbewerken

Property Type Accessor
MaintenancePart MaintenancePart Root

XMLbewerken

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

		<Property	Name="ErrorType"				Type="PartOfErrorType"	Accessor="Internal" />
		<Property	Name="MaintenancePartIdList"	Type="String"			Accessor="Internal" />
		<Property	Name="OtherMaintenancePart"		Type="MaintenancePart"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Command Name="Check PartOf" CommandName="DomainObject_CheckPartOf">
				<Parameter	Name="DomainObject"			Direction="In"		Value="${MaintenancePart}" />
				<Parameter	Name="PartOfPropertyName"	Direction="In"		Value="PartOfMaintenancePart" />
				<Parameter	Name="ChainWithPartOfIds"	Direction="Out"										OutputProperty="${MaintenancePartIdList}" />
				<Parameter	Name="OtherDomainObject"	Direction="Out"										OutputProperty="${OtherMaintenancePart}" />
				<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="0948">
					<Parameter	Name="MaintenancePart"	Direction="In"		Value="${MaintenancePart}" />
				</Message>
			</When>


			<When Name="Error Type is Other" Condition="${ErrorType} == Other">
				<Message Name="ErrorOther" MessageCode="0976">
					<Parameter	Name="MaintenancePart"		Direction="In"		Value="${MaintenancePart}" />
					<Parameter	Name="OtherMaintenancePart"	Direction="In"		Value="${OtherMaintenancePart}" />
				</Message>
			</When>


			<When Name="Error Type is List" Condition="${ErrorType} == List">
				<Message Name="ErrorList" MessageCode="0977">
					<Parameter	Name="MaintenancePart"			Direction="In"		Value="${MaintenancePart}" />
					<Parameter	Name="MaintenancePartIdList"	Direction="In"		Value="${MaintenancePartIdList}" />
					<Parameter	Name="OtherMaintenancePart"		Direction="In"		Value="${OtherMaintenancePart}" />
				</Message>
			</When>
		</Choose>
	</Execution>
</Workflow>