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

ActionField723

Beschrijving: Toggle Done for ObjectInspectionLine. Custom: Nee

Propertiesbewerken

Property Type Accessor
ObjectInspectionLine ObjectInspectionLine Root
ValidateJobsExist Boolean Optional

XMLbewerken

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

		<Property	Name="ValidateJobsExist"	Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"								Comment="Validate if Job exists for this ObjectInspectionLine" />

		<Property	Name="Date"					Type="DateTime"				Accessor="Internal"						Default="#{Environment.CurrentDateTime}" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="Done" Condition="${ObjectInspectionLine.Done} == True">
			<WorkflowCall Name="ObjectInspectionLine_ValidateToggleDone" WorkflowName="ObjectInspectionLine_ValidateToggleDone">
				<Parameter	Name="ObjectInspectionLine"	Direction="In"		Value="${ObjectInspectionLine}" />
				<Parameter	Name="ValidateJobsExist"	Direction="In"		Value="${ValidateJobsExist}" />
			</WorkflowCall>
		</When>

		<Transaction>
			<When Name="ObjectInspectionPlanStatus is not open" Condition="${ObjectInspectionLine.Id.ObjectInspectionPlan.Status} != ObjectInspectionPlanStatus.Open">
				<WorkflowCall Name="ObjectInspectionLine_FinishObjectInspectionPlanWhenAllLinesAreDone" WorkflowName="ObjectInspectionLine_FinishObjectInspectionPlanWhenAllLinesAreDone">
					<Parameter	Name="ObjectInspectionPlan"	Direction="In"		Value="${ObjectInspectionLine.Id.ObjectInspectionPlan}" />
				</WorkflowCall>
			</When>

			<WorkflowCall Name="Done values" WorkflowName="ObjectInspectionLine_SetDoneValues">
				<Parameter	Name="Date"					Direction="In"		Value="${Date}" />
				<Parameter	Name="ObjectInspectionLine"	Direction="In"		Value="${ObjectInspectionLine}" />
			</WorkflowCall>
		</Transaction>

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