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

ActionField302

Beschrijving: Copy Features and SpareParts from EquipmentType to ProcessFunction. Custom: Nee

Propertiesbewerken

Property Type Accessor
ProcessFunction ProcessFunction Root

XMLbewerken

<Workflow Name="ActionField302" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Copy Features and SpareParts from EquipmentType to ProcessFunction.</Description>
	<Properties>
		<Property	Name="ProcessFunction"	Type="ProcessFunction"	Accessor="Root"		Direction="In" />

		<Property	Name="ApplyAnswer"		Type="RequestResult"	Accessor="Internal" />
		<Property	Name="CopyFeatures"		Type="Boolean"			Accessor="Internal"						Default="True" />
		<Property	Name="Count"			Type="Int64"			Accessor="Internal"										Comment="Elements which are not compliant with Nen-2767 Part 4" />
		<Property	Name="SkipQuestion"		Type="Boolean"			Accessor="Internal"						Default="False" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Comment><![CDATA[ All parameters that internal to this AF are passed into and afterwards back out of this sub workflow to ensure possible user content logic remains functional! ]]></Comment>

		<WorkflowCall Name="ProcessFunction_CopyFeaturesAndSparePartsFromEquipmentType" WorkflowName="ProcessFunction_CopyFeaturesAndSparePartsFromEquipmentType">
			<Parameter	Name="ProcessFunction"	Direction="In"		Value="${ProcessFunction}" />
			<Parameter	Name="ApplyAnswer"		Direction="InOut"	Value="${ApplyAnswer}"		OutputProperty="${ApplyAnswer}" />
			<Parameter	Name="CopyFeatures"		Direction="InOut"	Value="${CopyFeatures}"		OutputProperty="${CopyFeatures}" />
			<Parameter	Name="Count"			Direction="InOut"	Value="${Count}"			OutputProperty="${Count}" />
			<Parameter	Name="SkipQuestion"		Direction="InOut"	Value="${SkipQuestion}"		OutputProperty="${SkipQuestion}" />
		</WorkflowCall>

		<When Name="Object" Condition="${ProcessFunction.Context} == ProcessFunctionContext.Object">
			<Comment><![CDATA[ Check nen compliance ]]></Comment>

			<Transaction>
				<GetCount Name="Get Equipments Not compliant" Type="Equipment" OutputProperty="${Count}">
					<Filters>
						<PropertyFilter	PropertyName="Context"				Operator="="		PropertyValue="EquipmentContext.Element" />
						<PropertyFilter	PropertyName="Nen2767P4Compliant"	Operator="="		PropertyValue="False" />
						<PropertyFilter	PropertyName="ProcessFunction"		Operator="="		PropertyValue="${ProcessFunction}" />
					</Filters>
				</GetCount>
			</Transaction>
		</When>

		<UserContent Name="Post" />

		<When Name="Not compliant Equipments" Condition="${Count} != 0">
			<Message Name="Check EquipmentTypeHierarchy" MessageCode="2500">
				<Parameter	Name="Context"	Direction="In"		Value="EquipmentContext.Element" />
				<Parameter	Name="Count"	Direction="In"		Value="${Count}" />
			</Message>
		</When>
	</Execution>
</Workflow>