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

ActionField1198

Beschrijving: Set ConfirmationRole.LastConfirmation to True, and for the other ConfirmationRoles to False. Custom: Nee

Propertiesbewerken

Property Type Accessor
ConfirmationRole ConfirmationRole Root

XMLbewerken

<Workflow Name="ActionField1198" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Set ConfirmationRole.LastConfirmation to True, and for the other ConfirmationRoles to False.</Description>
	<Properties>
		<Property	Name="ConfirmationRole"		Type="ConfirmationRole"			Accessor="Root"		Direction="In" />

		<Property	Name="ConfirmationRoles"	Type="List[ConfirmationRole]"	Accessor="Internal" />
		<Property	Name="UseThisRole"			Type="RequestResult"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetList Name="Get Other Confirmation roles for LastConfirmation role" Type="ConfirmationRole" OutputProperty="${ConfirmationRoles}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="LastConfirmation"	Operator="="		PropertyValue="True" />
					<PropertyFilter	PropertyName="Id"				Operator="!="		PropertyValue="${ConfirmationRole}" />
					<PropertyFilter	PropertyName="Context"			Operator="="		PropertyValue="${ConfirmationRole.Context}" />
				</Filters>
			</GetList>
		</Transaction>

		<When Name="There is a ConfirmationRole with LastConfirmation True" Condition="${ConfirmationRoles.Count} &gt; 0">
			<Question Name="Use This Role for LastConfirmation" Type="YesNo" MessageCode="2553" OutputProperty="${UseThisRole}">
				<Parameter	Name="ConfirmationRole"	Direction="In"		Value="${ConfirmationRole}" />
			</Question>

			<Transaction>
				<Choose Name="Result">
					<When Name="Do not use this role" Condition="${UseThisRole} == No">
						<Toggle Name="Toggle LastConfirmation" Property="${ConfirmationRole.LastConfirmation}" />
					</When>

					<Otherwise Name="Use this role">
						<ForEach Name="Clear role" In="${ConfirmationRoles}" As="ClearConfirmationRole">
							<Assign Name="Reset LastConfirmation" Property="${ClearConfirmationRole.LastConfirmation}" Value="False" />
						</ForEach>
					</Otherwise>
				</Choose>
			</Transaction>
		</When>

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