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

ActionField1244

Beschrijving: Change, copy or add a new WorkSchedulePartDay to WorkSchedule. Custom: Nee

Propertiesbewerken

Property Type Accessor
DomainObject DomainObject Root
Copy Boolean Optional

XMLbewerken

<Workflow Name="ActionField1244" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change, copy or add a new WorkSchedulePartDay to WorkSchedule.</Description>
	<Properties>
		<Property	Name="DomainObject"			Type="DomainObject"			Accessor="Root"		Direction="In"												Comment="WorkSchedule or WorkSchedulePartDay" />

		<Property	Name="Copy"					Type="Boolean"				Accessor="Optional"	Direction="In"												Comment="Copy fields from WorkSchedulePartDay (DomainObject)" />

		<Property	Name="Add"					Type="Boolean"				Accessor="Internal" />
		<Property	Name="Date"					Type="Date"					Accessor="Internal"						Default="#{Environment.CurrentDate}" />
		<Property	Name="Day"					Type="Day?"					Accessor="Internal" />
		<Property	Name="StartDateTime1"		Type="Time?"				Accessor="Internal" />
		<Property	Name="StartDateTime2"		Type="Time?"				Accessor="Internal" />
		<Property	Name="StartDateTime3"		Type="Time?"				Accessor="Internal" />
		<Property	Name="StartDateTime4"		Type="Time?"				Accessor="Internal" />
		<Property	Name="StartDateTime5"		Type="Time?"				Accessor="Internal" />
		<Property	Name="Table"				Type="String"				Accessor="Internal"						Default="WorkSchedulePartDay" />
		<Property	Name="TillDateTime1"		Type="Time?"				Accessor="Internal" />
		<Property	Name="TillDateTime2"		Type="Time?"				Accessor="Internal" />
		<Property	Name="TillDateTime3"		Type="Time?"				Accessor="Internal" />
		<Property	Name="TillDateTime4"		Type="Time?"				Accessor="Internal" />
		<Property	Name="TillDateTime5"		Type="Time?"				Accessor="Internal" />
		<Property	Name="WorkKindEntry"		Type="WorkKindEntry"		Accessor="Internal"						Default="Nonworking" />
		<Property	Name="WorkSchedule"			Type="WorkSchedule"			Accessor="Internal" />
		<Property	Name="WorkSchedulePartDay"	Type="WorkSchedulePartDay"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Choose Name="DomainObject">
			<When Name="WorkSchedule" Condition="${DomainObject.EntityName} == WorkSchedule">
				<Assign Name="Set WorkSchedule" Property="${WorkSchedule}" Value="${DomainObject}" />
				<Assign Name="Set Add" Property="${Add}" Value="True" />
			</When>


			<When Name="WorkSchedulePartDay" Condition="${DomainObject.EntityName} == WorkSchedulePartDay">
				<Assign Name="Set WorkSchedulePartDay" Property="${WorkSchedulePartDay}" Value="${DomainObject}" />
				<Assign Name="Set WorkSchedule" Property="${WorkSchedule}" Value="${WorkSchedulePartDay.Id.WorkSchedule}" />

				<When Name="Do not copy" Condition="${Copy} == False">
					<Assign Name="Set WorkSchedule" Property="${Day}" Value="${WorkSchedulePartDay.Id.Day}" />
				</When>

				<Assign Name="Set StartDateTime1" Property="${StartDateTime1}" Value="${WorkSchedulePartDay.NonDefFrom1}" />
				<Assign Name="Set StartDateTime2" Property="${StartDateTime2}" Value="${WorkSchedulePartDay.NonDefFrom2}" />
				<Assign Name="Set StartDateTime3" Property="${StartDateTime3}" Value="${WorkSchedulePartDay.NonDefFrom3}" />
				<Assign Name="Set StartDateTime4" Property="${StartDateTime4}" Value="${WorkSchedulePartDay.NonDefFrom4}" />
				<Assign Name="Set StartDateTime5" Property="${StartDateTime5}" Value="${WorkSchedulePartDay.NonDefFrom5}" />
				<Assign Name="Set TillDateTime1" Property="${TillDateTime1}" Value="${WorkSchedulePartDay.NonDefTill1}" />
				<Assign Name="Set TillDateTime2" Property="${TillDateTime2}" Value="${WorkSchedulePartDay.NonDefTill2}" />
				<Assign Name="Set TillDateTime3" Property="${TillDateTime3}" Value="${WorkSchedulePartDay.NonDefTill3}" />
				<Assign Name="Set TillDateTime4" Property="${TillDateTime4}" Value="${WorkSchedulePartDay.NonDefTill4}" />
				<Assign Name="Set TillDateTime5" Property="${TillDateTime5}" Value="${WorkSchedulePartDay.NonDefTill5}" />
				<Assign Name="Set WorkKindEntry" Property="${WorkKindEntry}" Value="${WorkSchedulePartDay.WorkKind}" />

				<When Name="Copy" Condition="${Copy} == True">
					<Assign Name="Set Add" Property="${Add}" Value="True" />
				</When>
			</When>

			<Otherwise Name="DomainObject">
				<Stop Name="Stop" Mode="EndAll" />
			</Otherwise>
		</Choose>

		<WorkflowCall Name="WorkSchedule_AddChangeCopyPart" WorkflowName="WorkSchedule_AddChangeCopyPart">
			<Parameter	Name="Add"				Direction="In"		Value="${Add}" />
			<Parameter	Name="Copy"				Direction="In"		Value="${Copy}" />
			<Parameter	Name="Date"				Direction="In"		Value="${Date}" />
			<Parameter	Name="Table"			Direction="In"		Value="${Table}" />
			<Parameter	Name="WorkSchedule"		Direction="In"		Value="${WorkSchedule}" />
			<Parameter	Name="Day"				Direction="InOut"	Value="${Day}"				OutputProperty="${Day}" />
			<Parameter	Name="StartTime1"		Direction="InOut"	Value="${StartDateTime1}"	OutputProperty="${StartDateTime1}" />
			<Parameter	Name="StartTime2"		Direction="InOut"	Value="${StartDateTime2}"	OutputProperty="${StartDateTime2}" />
			<Parameter	Name="StartTime3"		Direction="InOut"	Value="${StartDateTime3}"	OutputProperty="${StartDateTime3}" />
			<Parameter	Name="StartTime4"		Direction="InOut"	Value="${StartDateTime4}"	OutputProperty="${StartDateTime4}" />
			<Parameter	Name="StartTime5"		Direction="InOut"	Value="${StartDateTime5}"	OutputProperty="${StartDateTime5}" />
			<Parameter	Name="TillTime1"		Direction="InOut"	Value="${TillDateTime1}"	OutputProperty="${TillDateTime1}" />
			<Parameter	Name="TillTime2"		Direction="InOut"	Value="${TillDateTime2}"	OutputProperty="${TillDateTime2}" />
			<Parameter	Name="TillTime3"		Direction="InOut"	Value="${TillDateTime3}"	OutputProperty="${TillDateTime3}" />
			<Parameter	Name="TillTime4"		Direction="InOut"	Value="${TillDateTime4}"	OutputProperty="${TillDateTime4}" />
			<Parameter	Name="TillTime5"		Direction="InOut"	Value="${TillDateTime5}"	OutputProperty="${TillDateTime5}" />
			<Parameter	Name="WorkKindEntry"	Direction="InOut"	Value="${WorkKindEntry}"	OutputProperty="${WorkKindEntry}" />
		</WorkflowCall>

		<Transaction>
			<When Name="Adding" Condition="${Add} == True">
				<Insert Name="Create WorkSchedulePartDay" ObjectType="WorkSchedulePartDay" OutputProperty="${WorkSchedulePartDay}">
					<Parameter	Name="Id.Day"			Direction="In"		Value="${Day}" />
					<Parameter	Name="Id.WorkSchedule"	Direction="In"		Value="${WorkSchedule}" />
				</Insert>
			</When>

			<Assign Name="Set NonDefFrom1" Property="${WorkSchedulePartDay.NonDefFrom1}" Value="${StartDateTime1}" />
			<Assign Name="Set NonDefFrom2" Property="${WorkSchedulePartDay.NonDefFrom2}" Value="${StartDateTime2}" />
			<Assign Name="Set NonDefFrom3" Property="${WorkSchedulePartDay.NonDefFrom3}" Value="${StartDateTime3}" />
			<Assign Name="Set NonDefFrom4" Property="${WorkSchedulePartDay.NonDefFrom4}" Value="${StartDateTime4}" />
			<Assign Name="Set NonDefFrom5" Property="${WorkSchedulePartDay.NonDefFrom5}" Value="${StartDateTime5}" />
			<Assign Name="Set NonDefTill1" Property="${WorkSchedulePartDay.NonDefTill1}" Value="${TillDateTime1}" />
			<Assign Name="Set NonDefTill2" Property="${WorkSchedulePartDay.NonDefTill2}" Value="${TillDateTime2}" />
			<Assign Name="Set NonDefTill3" Property="${WorkSchedulePartDay.NonDefTill3}" Value="${TillDateTime3}" />
			<Assign Name="Set NonDefTill4" Property="${WorkSchedulePartDay.NonDefTill4}" Value="${TillDateTime4}" />
			<Assign Name="Set NonDefTill5" Property="${WorkSchedulePartDay.NonDefTill5}" Value="${TillDateTime5}" />
			<Assign Name="Set WorkKind" Property="${WorkSchedulePartDay.WorkKind}" Value="${WorkKindEntry}" />
		</Transaction>

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