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

ActionField1871

Beschrijving: Delete Employee from ApprovalLevel (whitelisted for 'DisableWhenReadOnly == False' in ViewWorkflows.cs). Custom: Nee

Propertiesbewerken

Property Type Accessor
Employee Employee Root

XMLbewerken

<Workflow Name="ActionField1871" Version="2025.07.28" WorkflowType="Standard" AllowUserInteraction="False" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Delete Employee from ApprovalLevel (whitelisted for 'DisableWhenReadOnly == False' in ViewWorkflows.cs).</Description>
	<Properties>
		<Property	Name="Employee"					Type="Employee"	Accessor="Root"		Direction="In" />

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

		<Transaction>
			<GetCount Name="Get ApprovalLevelRule" Type="ApprovalLevelRule" OutputProperty="${ApprovalLevelRuleCount}">
				<Filters>
					<PropertyFilter	PropertyName="Employee"				Operator="="		PropertyValue="${Employee}" />
					<PropertyFilter	PropertyName="NextApprovalLevel"	Operator="="		PropertyValue="${Employee.ApprovalLevel}" />
				</Filters>
			</GetCount>

			<Validation Name="No ApprovalLevelRules found for this employee" Condition="${ApprovalLevelRuleCount} == 0" MessageCode="3918">
				<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
			</Validation>
			<Assign Name="Empty Employee ApprovalLevel" Property="${Employee.ApprovalLevel}" Value="Empty" />
		</Transaction>

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