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

ActionField779

Beschrijving: Create Leave (TimeReservation) for Employee. Custom: Nee

Propertiesbewerken

Property Type Accessor
Employee Employee Root
HourCode HourCode Optional

XMLbewerken

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

		<Property	Name="HourCode"						Type="HourCode"			Accessor="Optional"	Direction="In"						Comment="Create Leave (TimeReservation) with this Hourcode" />

		<Property	Name="Employees"					Type="List[Employee]"	Accessor="Internal" />
		<Property	Name="EndDate"						Type="DateTime"			Accessor="Internal" />
		<Property	Name="Recursive"					Type="Boolean"			Accessor="Internal" />
		<Property	Name="StartDate"					Type="DateTime"			Accessor="Internal" />
		<Property	Name="TimeslotPattern"				Type="TimeslotPattern"	Accessor="Internal" />
		<Property	Name="UnscheduleJobScheduleParts"	Type="Boolean"			Accessor="Internal"						Default="True"	Comment="If set to False in UserContent Pre, the checkbox 'Unschedule jobs' will be unticked as default." />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="Check company employee" Condition="${Employee.SystemCompany} == #{Company}" MessageCode="3018">
			<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
		</Validation>
		<Validation Name="SkillCategoryIsNotEmpty" Condition="${Employee.SkillCategory} != Empty" MessageCode="1635">
			<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
		</Validation>

		<WorkflowCall Name="Validate HourCodes" WorkflowName="HourCode_ValidateAbsenceHourCodes" />

		<SystemDialog Name="AllocateLeaveDialog" DialogName="AllocateLeaveDialog">
			<Parameter	Name="Employee"						Direction="In"		Value="${Employee}" />
			<Parameter	Name="HourCode"						Direction="InOut"	Value="${HourCode}"						OutputProperty="${HourCode}" />
			<Parameter	Name="UnscheduleJobScheduleParts"	Direction="InOut"	Value="${UnscheduleJobScheduleParts}"	OutputProperty="${UnscheduleJobScheduleParts}" />
			<Parameter	Name="Employees"					Direction="Out"												OutputProperty="${Employees}" />
			<Parameter	Name="EndDate"						Direction="Out"												OutputProperty="${EndDate}" />
			<Parameter	Name="Recursive"					Direction="Out"												OutputProperty="${Recursive}" />
			<Parameter	Name="StartDate"					Direction="Out"												OutputProperty="${StartDate}" />
			<Parameter	Name="TimeslotPattern"				Direction="Out"												OutputProperty="${TimeslotPattern}" />
		</SystemDialog>

		<Transaction>
			<WorkflowCall Name="TimeReservation_CreateLeaveForEmployee" WorkflowName="TimeReservation_CreateLeaveForEmployee">
				<Parameter	Name="Employees"					Direction="In"		Value="${Employees}" />
				<Parameter	Name="EndDate"						Direction="In"		Value="${EndDate}" />
				<Parameter	Name="HourCode"						Direction="In"		Value="${HourCode}" />
				<Parameter	Name="Recursive"					Direction="In"		Value="${Recursive}" />
				<Parameter	Name="StartDate"					Direction="In"		Value="${StartDate}" />
				<Parameter	Name="TimeslotPattern"				Direction="In"		Value="${TimeslotPattern}" />
				<Parameter	Name="UnscheduleJobScheduleParts"	Direction="In"		Value="${UnscheduleJobScheduleParts}" />
			</WorkflowCall>
		</Transaction>

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