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

ActionField1895

Beschrijving: Request a Purchase. Custom: Nee

Propertiesbewerken

Property Type Accessor
Purchase Purchase Root

XMLbewerken

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

		<Property	Name="PurchaseLinesCount"	Type="Int64"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetCount Name="PurchaseLines Count" Type="PurchaseLine" OutputProperty="${PurchaseLinesCount}">
				<Filters>
					<PropertyFilter	PropertyName="Id.Purchase"	Operator="="		PropertyValue="${Purchase}" />
				</Filters>
			</GetCount>

			<Validation Name="There are no PurchaseLines" Condition="${PurchaseLinesCount} != 0" MessageCode="3935">
				<Parameter	Name="Purchase"	Direction="In"		Value="${Purchase}" />
			</Validation>

			<ChangeStatus Name="Change status to requested" DomainObject="${Purchase}" NewStatus="PurchaseStatus.Requested" />
		</Transaction>

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