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

ActionField040

Beschrijving: Create LabourWeek for Employee in hourregistration. Weeknumber from Employee.CurrentWeek is used. Custom: Nee

Propertiesbewerken

Property Type Accessor
Employee Employee Root

XMLbewerken

<Workflow Name="ActionField040" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create LabourWeek for Employee in hourregistration. Weeknumber from Employee.CurrentWeek is used.</Description>
	<Properties>
		<Property	Name="Employee"			Type="Employee"			Accessor="Root"		Direction="In" />

		<Property	Name="DomainGlobals"	Type="DomainGlobals"	Accessor="Internal"						Default="#{UltimoSettings.Id}" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="Check company employee" Condition="${Employee.SystemCompany} == #{Company}" MessageCode="3017">
			<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
		</Validation>

		<Transaction>
			<Validation Name="Check LastClosedWeek" Condition="${DomainGlobals.LastClosedWeek} &lt; ${Employee.CurrentWeek}" MessageCode="0383">
				<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
			</Validation>

			<WorkflowCall Name="Employee_CreateLabourWeek" WorkflowName="Employee_CreateLabourWeek">
				<Parameter	Name="CreateMethod"	Direction="In"		Value="Standard" />
				<Parameter	Name="Employee"		Direction="In"		Value="${Employee}" />
			</WorkflowCall>
		</Transaction>

		<Message Name="ummEMPWEEKCREATED" MessageCode="0385">
			<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
		</Message>

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