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

ActionField319

Beschrijving: Delete EmployeeLabourLine (status must be Created). Custom: Nee

Propertiesbewerken

Property Type Accessor
EmployeeLabourLine EmployeeLabourLine Root

XMLbewerken

<Workflow Name="ActionField319" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Delete EmployeeLabourLine (status must be Created).</Description>
	<Properties>
		<Property	Name="EmployeeLabourLine"	Type="EmployeeLabourLine"	Accessor="Root"		Direction="In" />

		<Property	Name="RowsRemaining"		Type="Boolean"				Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="UserIsSuperCheck » UserIsSuperIsTrue" Condition="#{User.IsSuper} != True">
			<Validation Name="UserValidation" Condition="${EmployeeLabourLine.Id.EmployeeLabour.Id.Employee.Id} == #{User.EmployeeId}" MessageCode="0416">
				<Parameter	Name="EmployeeLabour"	Direction="In"		Value="${EmployeeLabourLine.Id.EmployeeLabour}" />
			</Validation>
		</When>

		<Choose Name="RegistrationTypeCheck">
			<When Name="RegistrationTypeIsNull" Condition="${EmployeeLabourLine.RegistrationType} == 0">
				<Validation Name="StatusValidation" Condition="${EmployeeLabourLine.Status} == EmployeeLabourStatus.Created" MessageCode="0417" />

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

				<Message Name="ummLINEDELETED" MessageCode="0418" Comment="Line is deleted" />
			</When>

			<Otherwise Name="RegistrationTypeIsNotNull">
				<Message Name="ummLINENOTDELETED" MessageCode="0419" Comment="Line is not deleted">
					<Parameter	Name="EmployeeLabourLine"	Direction="In"		Value="${EmployeeLabourLine}" />
				</Message>
			</Otherwise>
		</Choose>

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