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

ActionField1675

Beschrijving: Unlink PnID from LOTO request/plan by deleting it Custom: Nee

Propertiesbewerken

Property Type Accessor
PlotPlan PlotPlan Root

XMLbewerken

<Workflow Name="ActionField1675" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Unlink PnID from LOTO request/plan by deleting it</Description>
	<Properties>
		<Property	Name="PlotPlan"						Type="PlotPlan"		Accessor="Root"		Direction="In" />

		<Property	Name="PlotPlanContextDescription"	Type="UltimoString"	Accessor="Internal"						Default="#contextdescription_capital(${PlotPlan})" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Comment><![CDATA[	DomainObject_Delete will remove the image file reference by the ImageFile property from FSD. However, the image file set on this (copy) P&ID is also
								set on the original P&ID. It should therefore not be removed from FSD. To prevent this, empty the property and then call DomainObject_Delete. ]]></Comment>

			<Assign Name="Reset reference to image file" Property="${PlotPlan.ImageFile}" Value="Empty" />
			<Validation Name="a PnID on a request derived from a plan, cannot be removed" Condition="${PlotPlan.LockoutTagoutRequest} == Empty || ${PlotPlan.LockoutTagoutPlan} == Empty" MessageCode="3236">
				<Parameter	Name="PlotPlan"	Direction="In"		Value="${PlotPlan}" />
			</Validation>
			<Assign Name="reset copy from property" Property="${PlotPlan.CopyFromPlotPlan}" Value="Empty" />

			<WorkflowCall Name="Call WF DomainObject_Delete and suppress message while in transaction" WorkflowName="DomainObject_Delete">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${PlotPlan}" />
				<Parameter	Name="ShowMessage"	Direction="In"		Value="False" />
			</WorkflowCall>
		</Transaction>

		<Message Name="PnIDUnlinked" MessageCode="3234">
			<Parameter	Name="PlotPlanContextDescription"	Direction="In"		Value="${PlotPlanContextDescription}" />
		</Message>

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