Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1788
ActionField1788
Beschrijving: Register measurement value and optionally 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 |
| Description | UltimoString | Optional |
| InspectionResult | InspectionResult? | Optional |
| SolveWithJob | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1788" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Register measurement value and optionally 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="Description" Type="UltimoString" Accessor="Optional" Direction="In" Comment="For follow-up job or fault" />
<Property Name="InspectionResult" Type="InspectionResult?" Accessor="Optional" Direction="In" Comment="Ok, NotOk, NotOkReportJob or NotOkAndReportFault" />
<Property Name="SolveWithJob" Type="Boolean" Accessor="Optional" Direction="In" Comment="For fault" />
<Property Name="Equipment" Type="Equipment" Accessor="Internal" Default="${JobInspectionLine.InspectionLine.Equipment?}" 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="MeasurementPoint" Type="DomainObject" Accessor="Internal" Comment="For follow-up job" />
<Property Name="MeasurementValue" Type="UltimoString" Accessor="Internal" />
<Property Name="MessageText" Type="String" Accessor="Internal" Comment="Has to be shown when database transaction has been ended." />
<Property Name="ProcessFunction" Type="ProcessFunction" Accessor="Internal" Default="${JobInspectionLine.InspectionLine.ProcessFunction?}" Comment="For follow-up job" />
<Property Name="WorkOrderType" Type="WorkOrderType" Accessor="Internal" Comment="For follow-up job" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Assign Name="Reset MessageText" Property="${MessageText}" Value="Empty" />
<Choose Name="Inspection or maintenance route?">
<When Name="Inspection" Condition="${JobInspectionLine.Context} == JobInspectionLineContext.Inspection">
<Assign Name="Set InspectionResult for inspection" Property="${InspectionResult}" Value="=${JobInspectionLine.QualityOk} ? Ok : (${JobInspectionLine.QualityNotOk} ? NotOk : Empty)" />
<Assign Name="Set MeasurementValue for inspection" Property="${MeasurementValue}" Value="${JobInspectionLine.Value}" />
</When>
<When Name="Maintenance route" Condition="${JobInspectionLine.Context} == JobInspectionLineContext.CourseRoute">
<Assign Name="Set InspectionResult for maintenance route" Property="${InspectionResult}" Value="=${InspectionResult} != Empty ? Ok : NotOk" />
<Assign Name="Set MeasurementValue for maintenance route" Property="${MeasurementValue}" Value="${JobInspectionLine.Value2}" />
<Assign Name="Set MeasurementPoint" Property="${MeasurementPoint}" Value="=${JobInspectionLine.InspectionLine.EquipmentMeasurementPoint?} != Empty ? ${JobInspectionLine.InspectionLine.EquipmentMeasurementPoint} : (${JobInspectionLine.InspectionLine.ProcessFunctionMeasurementPoint?} != Empty ? ${JobInspectionLine.InspectionLine.ProcessFunctionMeasurementPoint} : Empty)" />
</When>
</Choose>
<When Name="Prefill dialog with assets on Job?" Condition="${Equipment} == Empty && ${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 register measurement value and optionally inspection findings/result" WorkflowName="Dialog_JobInspectionLine_RegisterMeasurementValueAndOrInspectionResult">
<Parameter Name="InspectionType" Direction="In" Value="${JobInspectionLine.InspectionLineType.InspectionType?}" />
<Parameter Name="IsFaultPresent" Direction="In" Value="=${JobInspectionLine.NumberOfConditionFlawPresents} > 0" />
<Parameter Name="IsFollowUpJobPresent" Direction="In" Value="=${JobInspectionLine.FollowUpJob} != Empty" />
<Parameter Name="IsJobInspectionLineFinished" Direction="In" Value="=${JobInspectionLine.Status} == JobInspectionLineStatus.Finished" />
<Parameter Name="JobContext" Direction="In" Value="${JobInspectionLine.Id.Job.Context}" />
<Parameter Name="JobInspectionLineContext" Direction="In" Value="${JobInspectionLine.Context}" />
<Parameter Name="MeasureCode" Direction="In" Value="${JobInspectionLine.MeasureCode}" />
<Parameter Name="MeasurementPoint" Direction="In" Value="${MeasurementPoint}" />
<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="InspectionResult" Direction="InOut" Value="${InspectionResult}" OutputProperty="${InspectionResult}" />
<Parameter Name="MeasurementValue" Direction="InOut" Value="${MeasurementValue}" OutputProperty="${MeasurementValue}" />
<Parameter Name="ProcessFunction" Direction="InOut" Value="${ProcessFunction}" OutputProperty="${ProcessFunction}" />
<Parameter Name="SolveWithJob" Direction="InOut" Value="${SolveWithJob}" OutputProperty="${SolveWithJob}" />
<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="MeasurementValue" Direction="In" Value="${MeasurementValue}" />
<Parameter Name="ProcessFunction" Direction="In" Value="${ProcessFunction}" />
<Parameter Name="SolveWithJob" Direction="In" Value="${SolveWithJob}" />
<Parameter Name="WorkOrderType" Direction="In" Value="${WorkOrderType}" />
<Parameter Name="MessageText" Direction="Out" OutputProperty="${MessageText}" />
</WorkflowCall>
<When Name="When MessageText available" Condition="${MessageText} != Empty">
<Message Name="Message 2060" MessageCode="2060">
<Parameter Name="Message" Direction="In" Value="${MessageText}" />
</Message>
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>