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

ActionField1243

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

Propertiesbewerken

Property Type Accessor
DomainObject DomainObject Root
Copy Boolean Optional

XMLbewerken

<Workflow Name="ActionField1243" 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 WorkSchedulePart to WorkSchedule.</Description>
	<Properties>
		<Property	Name="DomainObject"		Type="DomainObject"		Accessor="Root"		Direction="In"									Comment="WorkSchedule or WorkSchedulePart" />

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

		<Property	Name="Add"				Type="Boolean"			Accessor="Internal" />
		<Property	Name="Date"				Type="Date?"			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="WorkSchedulePart" />
		<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="WorkSchedulePart"	Type="WorkSchedulePart"	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="WorkSchedulePart" Condition="${DomainObject.EntityName} == WorkSchedulePart">
				<Assign Name="Set WorkSchedulePart" Property="${WorkSchedulePart}" Value="${DomainObject}" />
				<Assign Name="Set WorkSchedule" Property="${WorkSchedule}" Value="${WorkSchedulePart.Id.WorkSchedule}" />

				<When Name="Do not copy" Condition="${Copy} == False">
					<Assign Name="Set WorkSchedule" Property="${Date}" Value="${WorkSchedulePart.Start}" />
				</When>

				<Assign Name="Set StartDateTime1" Property="${StartDateTime1}" Value="${WorkSchedulePart.NonDefFrom1}" />
				<Assign Name="Set StartDateTime2" Property="${StartDateTime2}" Value="${WorkSchedulePart.NonDefFrom2}" />
				<Assign Name="Set StartDateTime3" Property="${StartDateTime3}" Value="${WorkSchedulePart.NonDefFrom3}" />
				<Assign Name="Set StartDateTime4" Property="${StartDateTime4}" Value="${WorkSchedulePart.NonDefFrom4}" />
				<Assign Name="Set StartDateTime5" Property="${StartDateTime5}" Value="${WorkSchedulePart.NonDefFrom5}" />
				<Assign Name="Set TillDateTime1" Property="${TillDateTime1}" Value="${WorkSchedulePart.NonDefTill1}" />
				<Assign Name="Set TillDateTime2" Property="${TillDateTime2}" Value="${WorkSchedulePart.NonDefTill2}" />
				<Assign Name="Set TillDateTime3" Property="${TillDateTime3}" Value="${WorkSchedulePart.NonDefTill3}" />
				<Assign Name="Set TillDateTime4" Property="${TillDateTime4}" Value="${WorkSchedulePart.NonDefTill4}" />
				<Assign Name="Set TillDateTime5" Property="${TillDateTime5}" Value="${WorkSchedulePart.NonDefTill5}" />
				<Assign Name="Set WorkKindEntry" Property="${WorkKindEntry}" Value="${WorkSchedulePart.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="Table"			Direction="In"		Value="${Table}" />
			<Parameter	Name="WorkSchedule"		Direction="In"		Value="${WorkSchedule}" />
			<Parameter	Name="Date"				Direction="InOut"	Value="${Date}"				OutputProperty="${Date}" />
			<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 WorkSchedulePart" ObjectType="WorkSchedulePart" OutputProperty="${WorkSchedulePart}">
					<Parameter	Name="Id.WorkSchedule"	Direction="In"		Value="${WorkSchedule}" />
					<Parameter	Name="Start"			Direction="In"		Value="${Date}" />
				</Insert>
			</When>

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

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