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

ActionField1684

Beschrijving: When WarehouseLocation.WhslMultipleArticlesAllowed is OFF, then check if there are already multiple articles. Custom: Nee

Propertiesbewerken

Property Type Accessor
WarehouseLocation WarehouseLocation Root

XMLbewerken

<Workflow Name="ActionField1684" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>When WarehouseLocation.WhslMultipleArticlesAllowed is OFF, then check if there are already multiple articles.</Description>
	<Properties>
		<Property	Name="WarehouseLocation"				Type="WarehouseLocation"	Accessor="Root"		Direction="In" />

		<Property	Name="ArticleWarehouseLocationCount"	Type="Int64"				Accessor="Internal"						Default="0" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<When Name="WarehouseLocation.MultipleArticlesAllowed is False" Condition="${WarehouseLocation.MultipleArticlesAllowed} == False">
				<GetCount Name="Count WarehouseLocationArticles" Type="ArticleWarehouseLocation" OutputProperty="${ArticleWarehouseLocationCount}">
					<Filters>
						<PropertyFilter	PropertyName="Id.WarehouseLocation"	Operator="="		PropertyValue="${WarehouseLocation}" />
					</Filters>
				</GetCount>

				<When Name="ArticleWarehouseLocationCount gt 1" Condition="${ArticleWarehouseLocationCount} &gt; 1">
					<Assign Name="Set WarehouseLocation.MultipleArticlesAllowed" Property="${WarehouseLocation.MultipleArticlesAllowed}" Value="True" />
				</When>
			</When>
		</Transaction>

		<When Name="ArticleWarehouseLocationCount gt 1" Condition="${ArticleWarehouseLocationCount} &gt; 1">
			<Message Name="MultipleArticlesAllowed cannot set to false" MessageCode="3253">
				<Parameter	Name="WarehouseLocation"	Direction="In"		Value="${WarehouseLocation}" />
			</Message>
		</When>

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