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

ActionField1014

Beschrijving: Create EmployeeLabourPeriod (start hour administration) for this Job. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
ScreenName UltimoString Optional

XMLbewerken

<Workflow Name="ActionField1014" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create EmployeeLabourPeriod (start hour administration) for this Job.</Description>
	<Properties>
		<Property	Name="Job"							Type="Job"										Accessor="Root"		Direction="In" />

		<Property	Name="ScreenName"					Type="UltimoString"								Accessor="Optional"	Direction="In"		Default="OBJISP03" />

		<Property	Name="EmployeeLabourPeriod"			Type="EmployeeLabourPeriod"						Accessor="Internal" />
		<Property	Name="IsHourRegistrationStarted"	Type="Boolean"									Accessor="Internal" />
		<Property	Name="LastMinuteRiskAssessment"		Type="ObjectInspectionPlan"						Accessor="Internal" />
		<Property	Name="ValidationResult"				Type="LastMinuteRiskAssessmentValidationResult"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="Job_ValidateLastMinuteRiskAssessment" WorkflowName="Job_ValidateLastMinuteRiskAssessment">
			<Parameter	Name="Job"				Direction="In"		Value="${Job}" />
			<Parameter	Name="ShowMessage"		Direction="In"		Value="True" />
			<Parameter	Name="ValidationResult"	Direction="Out"						OutputProperty="${ValidationResult}" />
		</WorkflowCall>

		<Choose Name="Choose whether a fresh LMRA is needed or not">
			<When Name="When needed" Condition="${ValidationResult} == NotFound || ${ValidationResult} == Expired">
				<WorkflowCall Name="Job_AddLastMinuteRiskAssessment" WorkflowName="Job_AddLastMinuteRiskAssessment">
					<Parameter	Name="Job"						Direction="In"		Value="${Job}" />
					<Parameter	Name="LastMinuteRiskAssessment"	Direction="Out"						OutputProperty="${LastMinuteRiskAssessment}" />
				</WorkflowCall>
			</When>


			<When Name="When LMRA is not completed yet or not OK" Condition="${ValidationResult} == NotCompleted || ${ValidationResult} == NotOk">
				<WorkflowCall Name="Job_GetLastMinuteRiskAssessmentToComplete" WorkflowName="Job_GetLastMinuteRiskAssessmentToComplete">
					<Parameter	Name="Job"						Direction="In"		Value="${Job}" />
					<Parameter	Name="LastMinuteRiskAssessment"	Direction="Out"						OutputProperty="${LastMinuteRiskAssessment}" />
				</WorkflowCall>
			</When>


			<When Name="When disabled, passed or not needed" Condition="${ValidationResult} == Disabled || ${ValidationResult} == Passed || ${ValidationResult} == Excluded">
				<WorkflowCall Name="Job_StartHourAdministration" WorkflowName="Job_StartHourAdministration">
					<Parameter	Name="Job"					Direction="In"		Value="${Job}" />
					<Parameter	Name="EmployeeLabourPeriod"	Direction="Out"						OutputProperty="${EmployeeLabourPeriod}" />
				</WorkflowCall>

				<Assign Name="Mark hour registration has been started" Property="${IsHourRegistrationStarted}" Value="True" />

				<Message Name="Employee Labour Period Started" MessageCode="1946">
					<Parameter	Name="EmployeeLabourPeriod"	Direction="In"		Value="${EmployeeLabourPeriod}" />
				</Message>
			</When>
		</Choose>

		<UserContent Name="Post" />

		<When Name="When hour registration has not been started" Condition="${IsHourRegistrationStarted} == False">
			<View Name="Open LMRA screen" ViewName="DataEntryScreen">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${LastMinuteRiskAssessment}" />
				<Parameter	Name="ScreenName"	Direction="In"		Value="${ScreenName}" />
			</View>
		</When>
	</Execution>
</Workflow>