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

ActionField1783

Beschrijving: Register inspection findings/result with optional follow-up job or fault Custom: Nee

Propertiesbewerken

Property Type Accessor
JobInspectionLine JobInspectionLine Root
ConditionFlawPresentContext Context Optional
ConditionFlawPresentStatus Status Optional
InspectionResult InspectionResult? Optional

XMLbewerken

<Workflow Name="ActionField1783" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Register inspection findings/result with optional follow-up job or fault</Description>
	<Properties>
		<Property	Name="JobInspectionLine"			Type="JobInspectionLine"			Accessor="Root"		Direction="In" />

		<Property	Name="ConditionFlawPresentContext"	Type="Context"						Accessor="Optional"	Direction="In"		Default="=${JobInspectionLine.Id.Job.Context} == JobContext.Fleet ? ConditionFlawPresentContext.Fleet : ${JobInspectionLine.Id.Job.Context} == JobContext.Infra ? ConditionFlawPresentContext.Infra : Empty" />
		<Property	Name="ConditionFlawPresentStatus"	Type="Status"						Accessor="Optional"	Direction="In"		Default="=${JobInspectionLine.Id.Job.Context} == JobContext.Fleet || ${JobInspectionLine.Id.Job.Context} == JobContext.Infra ? ConditionFlawPresentStatus.Active : Empty" />
		<Property	Name="InspectionResult"				Type="InspectionResult?"			Accessor="Optional"	Direction="In"																																																						Comment="Initially OK or Empty (= Not OK); when Not OK, process setting determines default behavior." />

		<Property	Name="DefaultActionInspectionNotOk"	Type="DefaultActionInspectionNotOk"	Accessor="Internal"						Default="NotOk" />
		<Property	Name="Description"					Type="UltimoString"					Accessor="Internal"																																																										Comment="For follow-up job" />
		<Property	Name="Equipment"					Type="Equipment"					Accessor="Internal"																																																										Comment="For follow-up job" />
		<Property	Name="Findings"						Type="UltimoString"					Accessor="Internal" />
		<Property	Name="InspectionImage1"				Type="String"						Accessor="Internal" />
		<Property	Name="InspectionImage2"				Type="String"						Accessor="Internal" />
		<Property	Name="InspectionImage3"				Type="String"						Accessor="Internal" />
		<Property	Name="InspectionImage4"				Type="String"						Accessor="Internal" />
		<Property	Name="ProcessFunction"				Type="ProcessFunction"				Accessor="Internal"																																																										Comment="For follow-up job" />
		<Property	Name="WorkOrderType"				Type="WorkOrderType"				Accessor="Internal"																																																										Comment="For follow-up job" />
	</Properties>
	<Execution>
		<When Name="When InspectionResult is Not OK" Condition="${InspectionResult} == Empty">
			<Assign Name="Get default action for Not OK" Property="${DefaultActionInspectionNotOk}" Value="=#settingenabled(Job, ${JobInspectionLine.Id.Job.Context}, Job.DefaultActionInspectionNotOk) ? #getsetting(Job, ${JobInspectionLine.Id.Job.Context}, Job.DefaultActionInspectionNotOk) : ${DefaultActionInspectionNotOk}" />

			<Choose Name="Set InspectionResult based on default action">
				<When Name="When default action is NotOkAndReportJob" Condition="${DefaultActionInspectionNotOk} == NotOkAndReportJob">
					<Assign Name="Set InspectionResult" Property="${InspectionResult}" Value="NotOkReportJob" />
				</When>


				<When Name="When default action is NotOk" Condition="${DefaultActionInspectionNotOk} == NotOk">
					<Assign Name="Set InspectionResult" Property="${InspectionResult}" Value="NotOk" />
				</When>


				<When Name="When default action is NotOkAndReportFault" Condition="${DefaultActionInspectionNotOk} == NotOkAndReportFault">
					<Assign Name="Set InspectionResult" Property="${InspectionResult}" Value="NotOkReportFault" />
				</When>
			</Choose>
		</When>

		<UserContent Name="Pre" />

		<WorkflowCall Name="Call dialog to register inspection findings/result" WorkflowName="Dialog_JobInspectionLine_RegisterMeasurementValueAndOrInspectionResult">
			<Parameter	Name="CorrectionNotOkToOk"		Direction="In"		Value="=${InspectionResult} == Ok &amp;&amp; ${JobInspectionLine.QualityNotOk}" />
			<Parameter	Name="InspectionType"			Direction="In"		Value="${JobInspectionLine.InspectionLineType.InspectionType}" />
			<Parameter	Name="IsFaultPresent"			Direction="In"		Value="=${JobInspectionLine.NumberOfConditionFlawPresents} &gt; 0" />
			<Parameter	Name="IsFollowUpJobPresent"		Direction="In"		Value="=${JobInspectionLine.FollowUpJob} != Empty" />
			<Parameter	Name="JobContext"				Direction="In"		Value="${JobInspectionLine.Id.Job.Context}" />
			<Parameter	Name="JobInspectionLineContext"	Direction="In"		Value="${JobInspectionLine.Context}" />
			<Parameter	Name="Description"				Direction="InOut"	Value="#label(DESCRIPTION_FOLLOWUPJOB_INSPECTIONLINE)"							OutputProperty="${Description}" />
			<Parameter	Name="Equipment"				Direction="InOut"	Value="${JobInspectionLine.Id.Job.Equipment}"									OutputProperty="${Equipment}" />
			<Parameter	Name="Findings"					Direction="InOut"	Value="${JobInspectionLine.Text1}"												OutputProperty="${Findings}" />
			<Parameter	Name="InspectionImage1"			Direction="InOut"	Value="${JobInspectionLine.InspectionImageFile1}"								OutputProperty="${InspectionImage1}" />
			<Parameter	Name="InspectionImage2"			Direction="InOut"	Value="${JobInspectionLine.InspectionImageFile2}"								OutputProperty="${InspectionImage2}" />
			<Parameter	Name="InspectionImage3"			Direction="InOut"	Value="${JobInspectionLine.InspectionImageFile3}"								OutputProperty="${InspectionImage3}" />
			<Parameter	Name="InspectionImage4"			Direction="InOut"	Value="${JobInspectionLine.InspectionImageFile4}"								OutputProperty="${InspectionImage4}" />
			<Parameter	Name="InspectionResult"			Direction="InOut"	Value="${InspectionResult}"														OutputProperty="${InspectionResult}" />
			<Parameter	Name="ProcessFunction"			Direction="InOut"	Value="${JobInspectionLine.Id.Job.ProcessFunction}"								OutputProperty="${ProcessFunction}" />
			<Parameter	Name="WorkOrderType"			Direction="Out"																						OutputProperty="${WorkOrderType}" />
		</WorkflowCall>

		<WorkflowCall Name="JobInspectionLine_ProcessInspectionResult" WorkflowName="JobInspectionLine_ProcessInspectionResult">
			<Parameter	Name="ConditionFlawPresentContext"	Direction="In"		Value="${ConditionFlawPresentContext}" />
			<Parameter	Name="ConditionFlawPresentStatus"	Direction="In"		Value="${ConditionFlawPresentStatus}" />
			<Parameter	Name="Description"					Direction="In"		Value="${Description}" />
			<Parameter	Name="Equipment"					Direction="In"		Value="${Equipment}" />
			<Parameter	Name="Findings"						Direction="In"		Value="${Findings}" />
			<Parameter	Name="InspectionImage1"				Direction="In"		Value="${InspectionImage1}" />
			<Parameter	Name="InspectionImage2"				Direction="In"		Value="${InspectionImage2}" />
			<Parameter	Name="InspectionImage3"				Direction="In"		Value="${InspectionImage3}" />
			<Parameter	Name="InspectionImage4"				Direction="In"		Value="${InspectionImage4}" />
			<Parameter	Name="InspectionResult"				Direction="In"		Value="${InspectionResult}" />
			<Parameter	Name="JobInspectionLine"			Direction="In"		Value="${JobInspectionLine}" />
			<Parameter	Name="ProcessFunction"				Direction="In"		Value="${ProcessFunction}" />
			<Parameter	Name="WorkOrderType"				Direction="In"		Value="${WorkOrderType}" />
		</WorkflowCall>

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