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

ActionField782

Beschrijving: Changed status of PurchaseRequest to Closed. Custom: Nee

Propertiesbewerken

Property Type Accessor
PurchaseRequest PurchaseRequest Root

XMLbewerken

<Workflow Name="ActionField782" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Changed status of PurchaseRequest to Closed.</Description>
	<Properties>
		<Property	Name="PurchaseRequest"	Type="PurchaseRequest"	Accessor="Root"		Direction="In" />

		<Property	Name="Count"			Type="Int64"			Accessor="Internal"						Default="-1" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetCount Name="Not delivered lines" Type="PurchaseRequestLine" OutputProperty="${Count}">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="PurchaseRequest"	Operator="="		PropertyValue="${PurchaseRequest}" />
						<CombinedFilter FilterOperator="Or">
							<PropertyFilter	PropertyName="ToDeliverQuantity"	Operator="&gt;"		PropertyValue="0" />
							<PropertyFilter	PropertyName="ReservedQuantity"		Operator="&gt;"		PropertyValue="0" />
						</CombinedFilter>
					</CombinedFilter>
				</Filters>
			</GetCount>
		</Transaction>

		<When Name="Not All delivered" Condition="${Count} &gt; 0">
			<ContinuationQuestion Name="Continue" MessageCode="1579">
				<Parameter	Name="PurchaseRequest"	Direction="In"		Value="${PurchaseRequest}" />
			</ContinuationQuestion>
		</When>

		<Transaction>
			<ChangeStatus Name="Close PurchaseRequest" DomainObject="${PurchaseRequest}" NewStatus="PurchaseRequestStatus.Closed" />
		</Transaction>

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