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

ActionField1043

Beschrijving: Make this SpaceSetup the default if there is not a default SpaceSetup for this Space. Custom: Nee

Propertiesbewerken

Property Type Accessor
NewSpaceSetup SpaceSetup Root

XMLbewerken

<Workflow Name="ActionField1043" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Make this SpaceSetup the default if there is not a default SpaceSetup for this Space.</Description>
	<Properties>
		<Property	Name="NewSpaceSetup"	Type="SpaceSetup"	Accessor="Root"		Direction="In" />

		<Property	Name="SpaceSetupCount"	Type="Int64"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetCount Name="Get relevant setups" Type="SpaceSetup" OutputProperty="${SpaceSetupCount}">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="Id.Space.Id"	Operator="="		PropertyValue="${NewSpaceSetup.Id.Space.Id}" />
						<NotFilter>
							<PropertyFilter	PropertyName="Id"			Operator="="		PropertyValue="${NewSpaceSetup.Id}" />
						</NotFilter>
						<PropertyFilter	PropertyName="Default"		Operator="="		PropertyValue="True" />
					</CombinedFilter>
				</Filters>
			</GetCount>

			<When Name="if no default found, set this one the default" Condition="${SpaceSetupCount} == 0">
				<Assign Name="Set Default to this" Property="${NewSpaceSetup.Default}" Value="True" />
			</When>
		</Transaction>

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