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

ActionField545

Beschrijving: Assign an Employee to a RosterGroup (via a dialog). Custom: Nee

Propertiesbewerken

Property Type Accessor
EmployeeSqlFilter String Optional
GeneralRosterSqlFilter String Optional
RosterGroup RosterGroup Optional

XMLbewerken

<Workflow Name="ActionField545" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Assign an Employee to a RosterGroup (via a dialog).</Description>
	<Properties>
		<Property	Name="EmployeeSqlFilter"		Type="String"			Accessor="Optional"	Direction="In"		Comment="SQL filter for employees selectable in dialog" />
		<Property	Name="GeneralRosterSqlFilter"	Type="String"			Accessor="Optional"	Direction="In"		Comment="SQL filter for general rosters selectable in dialog" />
		<Property	Name="RosterGroup"				Type="RosterGroup"		Accessor="Optional"	Direction="In"		Comment="Default roster group in the dialog" />

		<Property	Name="Employees"				Type="List[Employee]"	Accessor="Internal" />
		<Property	Name="EndDate"					Type="DateTime"			Accessor="Internal" />
		<Property	Name="StartDate"				Type="DateTime"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<SystemDialog Name="AllocateEmployeeToScheduleGroupDialog" DialogName="AllocateEmployeeToScheduleGroupDialog">
			<Parameter	Name="EmployeeSqlFilter"		Direction="In"		Value="${EmployeeSqlFilter}" />
			<Parameter	Name="GeneralRosterSqlFilter"	Direction="In"		Value="${GeneralRosterSqlFilter}" />
			<Parameter	Name="RosterGroup"				Direction="InOut"	Value="${RosterGroup}"				OutputProperty="${RosterGroup}" />
			<Parameter	Name="Employees"				Direction="Out"											OutputProperty="${Employees}" />
			<Parameter	Name="EndDate"					Direction="Out"											OutputProperty="${EndDate}" />
			<Parameter	Name="StartDate"				Direction="Out"											OutputProperty="${StartDate}" />
		</SystemDialog>

		<Assign Name="Add one day to make until date inclusive" Property="${EndDate}" Value="=#adddays(${EndDate}, 1)" />

		<Transaction>
			<ForEach Name="Add employees to rostergroup" In="${Employees}" As="SelectedEmployee">
				<Command Name="Add employee to rostergroup" CommandName="RosterGroup_AddEmployee">
					<Parameter	Name="Employee"		Direction="In"		Value="${SelectedEmployee}" />
					<Parameter	Name="EndDate"		Direction="In"		Value="${EndDate}" />
					<Parameter	Name="RosterGroup"	Direction="In"		Value="${RosterGroup}" />
					<Parameter	Name="StartDate"	Direction="In"		Value="${StartDate}" />
				</Command>

				<Command Name="Recalculate EmployeeLabourDatelines based on TimeReservation" CommandName="TimeReservation_RecalculateAllEmployeeLabourDatelines">
					<Parameter	Name="Employee"		Direction="In"		Value="${SelectedEmployee}" />
					<Parameter	Name="EndDate"		Direction="In"		Value="${EndDate}" />
					<Parameter	Name="StartDate"	Direction="In"		Value="${StartDate}" />
				</Command>
			</ForEach>
		</Transaction>

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