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

ActionField926

Beschrijving: Change date of blocked period (StateTimeslot). Custom: Nee

Propertiesbewerken

Property Type Accessor
StateTimeslot StateTimeslot Root

XMLbewerken

<Workflow Name="ActionField926" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change date of blocked period (StateTimeslot).</Description>
	<Properties>
		<Property	Name="StateTimeslot"		Type="StateTimeslot"	Accessor="Root"		Direction="In" />

		<Property	Name="Description"			Type="String"			Accessor="Internal" />
		<Property	Name="DisUseDate"			Type="Date"				Accessor="Internal"						Default="#{Environment.CurrentDate}" />
		<Property	Name="EndDate"				Type="Date?"			Accessor="Internal" />
		<Property	Name="PreviousStartDate"	Type="Date?"			Accessor="Internal" />
		<Property	Name="Reason"				Type="Int32"			Accessor="Internal"						Default="1" />
		<Property	Name="Space"				Type="Space"			Accessor="Internal" />
		<Property	Name="StartDate"			Type="Date?"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="CheckStatusStateTimeslotIsRented" Condition="${StateTimeslot.Status} != StateTimeslotStatus.Rented" MessageCode="1740">
			<Parameter	Name="StateTimeslot"	Direction="In"		Value="${StateTimeslot}" />
		</Validation>

		<Transaction>
			<Assign Name="Set previous StartDate" Property="${PreviousStartDate}" Value="${StateTimeslot.StartDate}" />

			<GetItem Name="GetSpaceWithSameStateAgenda" Type="Space" OutputProperty="${Space}">
				<Filters>
					<PropertyFilter	PropertyName="StateAgenda"	Operator="="		PropertyValue="${StateTimeslot.StateAgenda}" />
				</Filters>
			</GetItem>
		</Transaction>

		<WorkflowCall Name="RentableRealEstate_AskDateAndCheck" WorkflowName="Space_AskDateAndCheck">
			<Parameter	Name="Space"			Direction="In"		Value="${Space}" />
			<Parameter	Name="StateTimeslot"	Direction="In"		Value="${StateTimeslot}" />
			<Parameter	Name="Type"				Direction="In"		Value="0" />
			<Parameter	Name="Description"		Direction="InOut"	Value="${StateTimeslot.Description}"	OutputProperty="${Description}" />
			<Parameter	Name="EndDate"			Direction="InOut"	Value="${StateTimeslot.EndDate}"		OutputProperty="${EndDate}" />
			<Parameter	Name="StartDate"		Direction="InOut"	Value="${StateTimeslot.StartDate}"		OutputProperty="${StartDate}" />
		</WorkflowCall>

		<Transaction>
			<Assign Name="Set new StartDate" Property="${StateTimeslot.StartDate}" Value="${StartDate}" />
			<Assign Name="Set new EndDate" Property="${StateTimeslot.EndDate}" Value="${EndDate}" />
			<Assign Name="Set new Description" Property="${StateTimeslot.Description}" Value="${Description}" />
		</Transaction>

		<When Name="Status is DisUsed and previous StartDate not equals new StartDate" Condition="${StateTimeslot.Status} == StateTimeslotStatus.Disused &amp;&amp; ${PreviousStartDate} != ${StartDate}">
			<WorkflowCall Name="Ask for removal date and reason" WorkflowName="Dialog_RentableRealEstateDisUse">
				<Parameter	Name="DisUseDate"	Direction="InOut"	Value="${StartDate}"	OutputProperty="${DisUseDate}" />
				<Parameter	Name="Reason"		Direction="InOut"	Value="${Reason}"		OutputProperty="${Reason}" />
			</WorkflowCall>

			<WorkflowCall Name="RentableRealEstate_DisUse" WorkflowName="RentableRealEstate_DisUse">
				<Parameter	Name="DisUseDate"			Direction="In"		Value="${DisUseDate}" />
				<Parameter	Name="Reason"				Direction="In"		Value="${Reason}" />
				<Parameter	Name="RentableRealEstate"	Direction="In"		Value="${Space}" />
			</WorkflowCall>
		</When>

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