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

ActionField1817

Beschrijving: Copy 'From warehouse' to 'To warehouse' for pick list Custom: Nee

Propertiesbewerken

Property Type Accessor
PickList PickList Root

XMLbewerken

<Workflow Name="ActionField1817" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Copy 'From warehouse' to 'To warehouse' for pick list</Description>
	<Properties>
		<Property	Name="PickList"	Type="PickList"	Accessor="Root"		Direction="In" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="PickList Warehouse has a value" Condition="${PickList.Warehouse} != Empty ">
			<WorkflowCall Name="PickList_ValidateChangingWarehouse" WorkflowName="PickList_ValidateChangingWarehouse">
				<Parameter	Name="PickList"	Direction="In"		Value="${PickList}" />
			</WorkflowCall>

			<When Name="To warehouse has no value" Condition="${PickList.ToWarehouse} == Empty">
				<Transaction>
					<Choose Name="Basic choose for performance">
						<When Name="Picklist has no job" Condition="${PickList.Job} == Empty">
							<AssignWhenEmpty Name="Copy warehouse" Property="${PickList.ToWarehouse}" Value="${PickList.Warehouse}" />
						</When>


						<When Name="Job and warehouse site are equal" Condition="${PickList.Warehouse.Site} != Empty &amp;&amp; ${PickList.Warehouse.Site} == ${PickList.Job.Site?}">
							<AssignWhenEmpty Name="Copy warehouse" Property="${PickList.ToWarehouse}" Value="${PickList.Warehouse}" />
						</When>


						<When Name="StockLevelPerSite is false and Warehouse or Job has no site" Condition="#{UltimoSettings.StockLevelPerSite} == False &amp;&amp; (${PickList.Warehouse.Site} == Empty || ${PickList.Job.Site} == Empty)">
							<AssignWhenEmpty Name="Copy warehouse" Property="${PickList.ToWarehouse}" Value="${PickList.Warehouse}" />
						</When>
					</Choose>
				</Transaction>
			</When>
		</When>

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