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

ActionField753

Beschrijving: If ProgressStatus is a default ProgressStatus, give a message if the ProgressStatus record status does not match the default status. Custom: Nee

Propertiesbewerken

Property Type Accessor
ProgressStatus ProgressStatus Root

XMLbewerken

<Workflow Name="ActionField753" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>If ProgressStatus is a default ProgressStatus, give a message if the ProgressStatus record status does not match the default status.</Description>
	<Properties>
		<Property	Name="ProgressStatus"			Type="ProgressStatus"									Accessor="Root"		Direction="In" />

		<Property	Name="DefaultProgressStatuses"	Type="List[DefaultProgressStatusContextRecordStatus]"	Accessor="Internal" />
		<Property	Name="RecordStatusFound"		Type="Boolean"											Accessor="Internal"						Default="False" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetList Name="Get default progress status" Type="DefaultProgressStatusContextRecordStatus" OutputProperty="${DefaultProgressStatuses}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="ProgressStatus"	Operator="="		PropertyValue="${ProgressStatus}" />
				</Filters>
			</GetList>

			<When Name="Default progress statuses found" Condition="${DefaultProgressStatuses} != Empty">
				<ForEach Name="Default progress status" In="${DefaultProgressStatuses}" As="DefaultProgressStatus">
					<When Name="Look for matching record status" Condition="${DefaultProgressStatus.Id.Status} == ${ProgressStatus.NextStatus}">
						<Assign Name="RecordStatus found" Property="${RecordStatusFound}" Value="True" />
					</When>
				</ForEach>

				<Validation Name="NoMatchDefaultProgressStatus" Condition="${RecordStatusFound} == True" MessageCode="1494" Comment="Warn user when record status was not found." />
			</When>
		</Transaction>

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