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

ActionField562

Beschrijving: Create ReservableObject for Equipment (Make Equipment reservable). Custom: Nee

Propertiesbewerken

Property Type Accessor
Equipment Equipment Root
CanBePartOf Boolean Optional
CanHaveParts Boolean Optional
Context Context Optional
IgnoreEndTime Boolean Optional
IsDeliveryLocation Boolean Optional
IsScarce Boolean Optional
OpenScreen Boolean Optional

XMLbewerken

<Workflow Name="ActionField562" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create ReservableObject for Equipment (Make Equipment reservable).</Description>
	<Properties>
		<Property	Name="Equipment"			Type="Equipment"		Accessor="Root"		Direction="In" />

		<Property	Name="CanBePartOf"			Type="Boolean"			Accessor="Optional"	Direction="In"		Default="True"								Comment="Create ReservableObject with CanBePartOf filled with this value" />
		<Property	Name="CanHaveParts"			Type="Boolean"			Accessor="Optional"	Direction="In"		Default="False"								Comment="Create ReservableObject with CanHaveParts filled with this value" />
		<Property	Name="Context"				Type="Context"			Accessor="Optional"	Direction="In"		Default="ReservableObjectContext.Equipment"	Comment="Create ReservableObject with this context" />
		<Property	Name="IgnoreEndTime"		Type="Boolean"			Accessor="Optional"	Direction="In"		Default="False"								Comment="Create ReservableObject with IgnoreEndTime filled with this value" />
		<Property	Name="IsDeliveryLocation"	Type="Boolean"			Accessor="Optional"	Direction="In"		Default="False"								Comment="Create ReservableObject with IsDeliveryLocation filled with this value" />
		<Property	Name="IsScarce"				Type="Boolean"			Accessor="Optional"	Direction="In"		Default="True"								Comment="Create ReservableObject with IsScarce filled with this value" />
		<Property	Name="OpenScreen"			Type="Boolean"			Accessor="Optional"	Direction="In"		Default="True"								Comment="Open screen with created ReservableObject?" />

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

		<Choose Name="Reservable check">
			<When Name="Equipment not reservable yet" Condition="${Equipment.ReservableObject} == Empty">
				<Transaction>
					<Insert Name="Create Reservable Object" ObjectType="ReservableObject" OutputProperty="${ReservableObject}">
						<Parameter	Name="Context"				Direction="In"		Value="${Context}" />
						<Parameter	Name="CanBePartOf"			Direction="In"		Value="${CanBePartOf}" />
						<Parameter	Name="CanHaveParts"			Direction="In"		Value="${CanHaveParts}" />
						<Parameter	Name="IgnoreEndTime"		Direction="In"		Value="${IgnoreEndTime}" />
						<Parameter	Name="IsDeliveryLocation"	Direction="In"		Value="${IsDeliveryLocation}" />
						<Parameter	Name="IsScarce"				Direction="In"		Value="${IsScarce}" />
					</Insert>

					<Assign Name="set Equipment.ReservableObject" Property="${Equipment.ReservableObject}" Value="${ReservableObject}" />
				</Transaction>
			</When>

			<Otherwise Name="Equipment already reservable">
				<Assign Name="set ReservableObject" Property="${ReservableObject}" Value="${Equipment.ReservableObject}" />
			</Otherwise>
		</Choose>

		<UserContent Name="Post" />

		<When Name="Choose check open screen » Open screen is set" Condition="${OpenScreen} == True">
			<View Name="OpenScreen" ViewName="DataEntryScreen">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${ReservableObject}" />
			</View>
		</When>
	</Execution>
</Workflow>