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

ActionField1092

Beschrijving: Delete ObjectBatch. Custom: Nee

Propertiesbewerken

Property Type Accessor
ObjectBatch ObjectBatch Root

XMLbewerken

<Workflow Name="ActionField1092" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Delete ObjectBatch.</Description>
	<Properties>
		<Property	Name="ObjectBatch"			Type="ObjectBatch"	Accessor="Root"		Direction="In" />

		<Property	Name="CountObjectBatches"	Type="Int64"		Accessor="Internal"						Default="0" />
	</Properties>
	<Settings>
		<SettingsGroup Name="ObjectBatch">
			<Setting	Name="UpdateDomainObjectQuantityAfterDelete"	Type="Boolean"	Value="False" />
		</SettingsGroup>
	</Settings>
	<Execution>
		<UserContent Name="Pre" />

		<Assign Name="Set Update To False" Property="#{Settings.ObjectBatch.UpdateDomainObjectQuantityAfterDelete}" Value="True" />

		<Transaction>
			<When Name="From receiptLine? and InventoryMethod" Condition="${ObjectBatch.ReceiptLine} != Empty &amp;&amp; ${ObjectBatch.ReceiptLine.Article.InventoryMethod?} != Empty">
				<GetCount Name="Get ObjectBatch" Type="ObjectBatch" OutputProperty="${CountObjectBatches}">
					<Filters>
						<PropertyFilter	PropertyName="ReceiptLine"	Operator="="		PropertyValue="${ObjectBatch.ReceiptLine}" />
					</Filters>
				</GetCount>

				<Validation Name="One ObjectBatch must exist" Condition="${CountObjectBatches} &gt; 1" MessageCode="1282">
					<Parameter	Name="ObjectBatch"	Direction="In"		Value="${ObjectBatch}" />
				</Validation>
			</When>

			<DeleteObject Name="Delete objectbatch" DomainObject="${ObjectBatch}" />
		</Transaction>

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