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

ActionField464

Beschrijving: Change GeneralRoster. Custom: Nee

Propertiesbewerken

Property Type Accessor
GeneralRoster GeneralRoster Root
OutputGeneralRoster GeneralRoster Optional

XMLbewerken

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

		<Property	Name="OutputGeneralRoster"				Type="GeneralRoster"		Accessor="Optional"	Direction="Out" />

		<Property	Name="DayProgrammeContextFilter"		Type="List[Context]"		Accessor="Internal"						Default="Empty"	Comment="Used to filter the selectable DayProgrammes by context, set in UserContent" />
		<Property	Name="RosterGroupCount"					Type="Int64"				Accessor="Internal" />
		<Property	Name="RosterGroupsWithoutDescription"	Type="List[RosterGroup]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetCount Name="Get Rostergroup" Type="RosterGroup" OutputProperty="${RosterGroupCount}">
				<Filters>
					<PropertyFilter	PropertyName="GeneralRoster"	Operator="="		PropertyValue="${GeneralRoster}" />
				</Filters>
			</GetCount>

			<Validation Name="Check if there are rostergroups" Condition="${RosterGroupCount} &gt; 0" MessageCode="1982">
				<Parameter	Name="GeneralRoster"	Direction="In"		Value="${GeneralRoster}" />
			</Validation>

			<GetList Name="Get RosterGroup without description" Type="RosterGroup" OutputProperty="${RosterGroupsWithoutDescription}" OrderBy="Id" OrderDirection="Ascending" Comment="Get Rostergroup by GeneralRoster where description is null or string.empty">
				<Filters>
					<PropertyFilter	PropertyName="GeneralRoster"	Operator="="		PropertyValue="${GeneralRoster}" />
					<CombinedFilter FilterOperator="Or">
						<PropertyEmptyFilter PropertyName="Description" />
						<PropertyFilter	PropertyName="Description"	Operator="="		PropertyValue="=#upper('')" />
					</CombinedFilter>
				</Filters>
			</GetList>

			<Validation Name="Validate if there are RosterGroups without description" Condition="${RosterGroupsWithoutDescription.Count} == 0" MessageCode="1976">
				<Parameter	Name="GeneralRoster"					Direction="In"		Value="${GeneralRoster}" />
				<Parameter	Name="RosterGroupsWithoutDescription"	Direction="In"		Value="${RosterGroupsWithoutDescription}" />
			</Validation>
		</Transaction>

		<SystemDialog Name="ChangeRosterDialog" DialogName="GeneralRosterDialog">
			<Parameter	Name="DayProgrammeContextFilter"	Direction="In"		Value="${DayProgrammeContextFilter}" />
			<Parameter	Name="GeneralRoster"				Direction="InOut"	Value="${GeneralRoster}"				OutputProperty="${OutputGeneralRoster}" />
		</SystemDialog>

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