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

ActionField1690

Beschrijving: DeleteYearPlanDepartment. Custom: Nee

Propertiesbewerken

Property Type Accessor
YearPlanDepartment YearPlanDepartment Root

XMLbewerken

<Workflow Name="ActionField1690" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>DeleteYearPlanDepartment.</Description>
	<Properties>
		<Property	Name="YearPlanDepartment"		Type="YearPlanDepartment"	Accessor="Root"		Direction="In" />

		<Property	Name="YearPlanScenarioCount"	Type="Int64"				Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetCount Name="YearPlanScenario" Type="YearPlanScenario" OutputProperty="${YearPlanScenarioCount}">
				<Filters>
					<PropertyFilter	PropertyName="Id.YearPlan"	Operator="="		PropertyValue="${YearPlanDepartment.Id.YearPlan}" />
				</Filters>
			</GetCount>
		</Transaction>

		<Validation Name="No YearPlanScenario" Condition="${YearPlanScenarioCount} == 0" MessageCode="3290">
			<Parameter	Name="YearPlan"	Direction="In"		Value="${YearPlanDepartment.Id.YearPlan}" />
		</Validation>

		<Transaction>
			<DeleteObject Name="YearPlanDepartment" DomainObject="${YearPlanDepartment}" />
		</Transaction>

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