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

ActionField391

Beschrijving: Change status of ReservationLine to Reserved (status must be Created and ReservationType must be Manually). Custom: Nee

Propertiesbewerken

Property Type Accessor
ReservationLine ReservationLine Root

XMLbewerken

<Workflow Name="ActionField391" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change status of ReservationLine to Reserved (status must be Created and ReservationType must be Manually).</Description>
	<Properties>
		<Property	Name="ReservationLine"	Type="ReservationLine"	Accessor="Root"		Direction="In" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="Status validation" Condition="${ReservationLine.Status} == ReservationLineStatus.Created" MessageCode="0088">
			<Parameter	Name="ReservationLine"	Direction="In"		Value="${ReservationLine}" />
		</Validation>
		<Validation Name="TypeValidation" Condition="${ReservationLine.ReservationType} == Manually" MessageCode="0089">
			<Parameter	Name="ReservationLine"	Direction="In"		Value="${ReservationLine}" />
		</Validation>
		<Validation Name="ObjectTypeValidation" Condition="${ReservationLine.ReservableObject.Equipment} != Empty" MessageCode="0761">
			<Parameter	Name="ReservationLine"	Direction="In"		Value="${ReservationLine}" />
		</Validation>

		<Transaction>
			<ChangeStatus Name="StatusToDefinitive" DomainObject="${ReservationLine}" NewStatus="ReservationLineStatus.Reserved" />

			<When Name="ChooseProcessLine » Reservation Requested" Condition="${ReservationLine.ReservationOccurrence.Id.Reservation.Status} == ReservationStatus.Requested">
				<ChangeStatus Name="Process line" DomainObject="${ReservationLine}" NewStatus="ReservationLineStatus.Processed" />
			</When>
		</Transaction>

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