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

ActionField1793

Beschrijving: Report a follow-up job for an inspection line Custom: Nee

Propertiesbewerken

Property Type Accessor
JobInspectionLine JobInspectionLine Root

XMLbewerken

<Workflow Name="ActionField1793" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Report a follow-up job for an inspection line</Description>
	<Properties>
		<Property	Name="JobInspectionLine"	Type="JobInspectionLine"	Accessor="Root"		Direction="In" />

		<Property	Name="Description"			Type="UltimoString"			Accessor="Internal" />
		<Property	Name="Equipment"			Type="Equipment"			Accessor="Internal"						Default="${JobInspectionLine.InspectionLine.Equipment?}" />
		<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"						Default="${JobInspectionLine.InspectionLine.ProcessFunction?}" />
		<Property	Name="WorkOrderType"		Type="WorkOrderType"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="Only 1 follow-up job is allowed" Condition="${JobInspectionLine.FollowUpJob} == Empty">
			<When Name="Only statuses Finished and Skipped are allowed" Condition="${JobInspectionLine.Status} == JobInspectionLineStatus.Finished || ${JobInspectionLine.Status} == JobInspectionLineStatus.Skipped">
				<When Name="Prefill dialog with assets on Job?" Condition="${Equipment} == Empty &amp;&amp; ${ProcessFunction} == Empty">
					<Assign Name="Equipment from Job" Property="${Equipment}" Value="${JobInspectionLine.Id.Job.Equipment}" />
					<Assign Name="ProcessFunction from Job" Property="${ProcessFunction}" Value="${JobInspectionLine.Id.Job.ProcessFunction}" />
				</When>

				<WorkflowCall Name="Call dialog to report a follow-up job" WorkflowName="Dialog_JobInspectionLine_ReportFollowUpJob">
					<Parameter	Name="JobContext"		Direction="In"		Value="${JobInspectionLine.Id.Job.Context}" />
					<Parameter	Name="Description"		Direction="InOut"	Value="#label(DESCRIPTION_FOLLOWUPJOB_INSPECTIONLINE)"	OutputProperty="${Description}" />
					<Parameter	Name="Equipment"		Direction="InOut"	Value="${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="ProcessFunction"	Direction="InOut"	Value="${ProcessFunction}"								OutputProperty="${ProcessFunction}" />
					<Parameter	Name="WorkOrderType"	Direction="Out"																OutputProperty="${WorkOrderType}" />
				</WorkflowCall>

				<WorkflowCall Name="JobInspectionLine_CreateFollowUpJob" WorkflowName="JobInspectionLine_CreateFollowUpJob">
					<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="JobInspectionLine"	Direction="In"		Value="${JobInspectionLine}" />
					<Parameter	Name="ProcessFunction"		Direction="In"		Value="${ProcessFunction}" />
					<Parameter	Name="WorkOrderType"		Direction="In"		Value="${WorkOrderType}" />
				</WorkflowCall>
			</When>
		</When>

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