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

ActionField1593

Beschrijving: Validate workperiod times Custom: Nee

Propertiesbewerken

Property Type Accessor
WorkPeriod WorkPeriod Root
ActionFieldCalledByStartTime Boolean Required

XMLbewerken

<Workflow Name="ActionField1593" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Validate workperiod times</Description>
	<Properties>
		<Property	Name="WorkPeriod"					Type="WorkPeriod"	Accessor="Root"		Direction="In" />

		<Property	Name="ActionFieldCalledByStartTime"	Type="Boolean"		Accessor="Required"	Direction="In" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="Validate times" Condition="${WorkPeriod.StartTime} == ${WorkPeriod.EndTime} &amp;&amp; ${WorkPeriod.StartTime} != Empty &amp;&amp; ${WorkPeriod.EndTime} != Empty">
			<Message Name="Show error message" MessageCode="2966" />

			<Transaction>
				<Choose Name="Check ActionFieldCalledByStartTime">
					<When Name="ActionFieldCalledByStartTime is true" Condition="${ActionFieldCalledByStartTime} == True">
						<Assign Name="Empty StartTime" Property="${WorkPeriod.StartTime}" Value="Empty" />
					</When>

					<Otherwise Name="ActionFieldCalledByStartTime is false">
						<Assign Name="Empty EndTime" Property="${WorkPeriod.EndTime}" Value="Empty" />
					</Otherwise>
				</Choose>
			</Transaction>
		</When>

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