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

ActionField1591

Beschrijving: Remove NL open data info on Equipment when license plate changes. Custom: Nee

Propertiesbewerken

Property Type Accessor
Equipment Equipment Root

XMLbewerken

<Workflow Name="ActionField1591" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Remove NL open data info on Equipment when license plate changes.</Description>
	<Properties>
		<Property	Name="Equipment"			Type="Equipment"			Accessor="Root"		Direction="In" />

		<Property	Name="EquipmentFeatures"	Type="List[ObjectFeature]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="Equipment is imported from NLOPENDATA" Condition="${Equipment.DataProvider} == 'NLOPENDATA'">
			<Transaction>
				<GetList Name="Get ObjectFeatures of this Equipment" Type="ObjectFeature" OutputProperty="${EquipmentFeatures}" OrderBy="Id" OrderDirection="Ascending">
					<Filters>
						<PropertyFilter	PropertyName="Equipment"	Operator="="		PropertyValue="${Equipment}" />
						<PropertyFilter	PropertyName="DataProvider"	Operator="="		PropertyValue="NLOPENDATA"		Comment="Do not touch (RDW) features the user has added manually." />
					</Filters>
				</GetList>
			</Transaction>

			<When Name="Equipment has ObjectFeatures" Condition="${EquipmentFeatures.Count} &gt; 0">
				<Message Name="Current ObjectFeatures will be deleted" MessageCode="2964" />

				<ForEach Name="Delete current features" In="${EquipmentFeatures}" As="Feature">
					<Transaction>
						<DeleteObject Name="Delete feature" DomainObject="${Feature}" />
					</Transaction>
				</ForEach>
			</When>

			<Transaction>
				<Assign Name="Remove ExternalId" Property="${Equipment.ExternalId}" Value="Empty" />
				<Assign Name="Remove DataProvider" Property="${Equipment.DataProvider}" Value="Empty" />
				<Assign Name="Remove TransferNextTime" Property="${Equipment.TransferNextTime}" Value="False" />
			</Transaction>
		</When>

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