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

ActionField1839

Beschrijving: Delete a PermitPermitType with linked ObjectInspectionPlans Custom: Nee

Propertiesbewerken

Property Type Accessor
PermitPermitType PermitPermitType Root

XMLbewerken

<Workflow Name="ActionField1839" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Delete a PermitPermitType with linked ObjectInspectionPlans</Description>
	<Properties>
		<Property	Name="PermitPermitType"			Type="PermitPermitType"				Accessor="Root"		Direction="In" />

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

		<Transaction>
			<GetList Name="Get the linked ObjectInspectionPlans of this Permit" Type="ObjectInspectionPlan" OutputProperty="${ObjectInspectionPlans}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="PermitType"	Operator="="		PropertyValue="${PermitPermitType.PermitType}" />
					<PropertyFilter	PropertyName="Permit"		Operator="="		PropertyValue="${PermitPermitType.Permit}" />
				</Filters>
			</GetList>
		</Transaction>

		<ForEach Name="Delete the linked ObjectInspectionPlans" In="${ObjectInspectionPlans}" As="ObjectInspectionPlan">
			<WorkflowCall Name="Delete ObjectInspectionPlan" WorkflowName="DomainObject_Delete">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${ObjectInspectionPlan}" />
				<Parameter	Name="ShowMessage"	Direction="In"		Value="False" />
			</WorkflowCall>
		</ForEach>

		<WorkflowCall Name="Delete PermitPermitType" WorkflowName="DomainObject_Delete">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${PermitPermitType}" />
		</WorkflowCall>

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