Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1825
ActionField1825
Beschrijving: Change the measurement point on maintenance route line Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| InspectionLine | InspectionLine | Root |
XMLbewerken
<Workflow Name="ActionField1825" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change the measurement point on maintenance route line</Description>
<Properties>
<Property Name="InspectionLine" Type="InspectionLine" Accessor="Root" Direction="In" />
<Property Name="MeasurementPoint" Type="DomainObject" Accessor="Internal" />
<Property Name="NumberOfGeneratedJobs" Type="Int32" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetCount Name="Get the number of generated jobs for the current maintenance route line" Type="Job" OutputProperty="${NumberOfGeneratedJobs}">
<Filters>
<InFilter PropertyName="Id">
<Subquery Type="JobInspectionLine">
<Joins>
<Join Name="InspectionLine" Alias="Insp" Type="InnerJoin" />
</Joins>
<Filters>
<PropertyFilter PropertyName="Insp.Id" Operator="=" PropertyValue="${InspectionLine}" />
</Filters>
<Properties>
<Property Name="Id.Job.Id" Alias="Id" Type="Property" />
</Properties>
</Subquery>
</InFilter>
</Filters>
</GetCount>
</Transaction>
<Validation Name="Are there already generated jobs for the current maintenance route line?" Condition="${NumberOfGeneratedJobs} == 0" MessageCode="3789">
<Parameter Name="NumberOfGeneratedJobs" Direction="In" Value="${NumberOfGeneratedJobs}" />
</Validation>
<Choose>
<When Name="It is for ProcessFunction" Condition="${InspectionLine.ProcessFunction} != Empty">
<SystemDialog Name="Select measurement point ProcessFunction" DialogName="SelectDomainObject">
<Parameter Name="EntityName" Direction="In" Value="ProcessFunctionMeasurementPoint" />
<Parameter Name="SelectionListConfiguration" Direction="In" Value="Default" />
<Parameter Name="SqlWhereClause" Direction="In" Value="PrfMspPrfId = '${InspectionLine.ProcessFunction.Id}'" />
<Parameter Name="DomainObject" Direction="Out" OutputProperty="${MeasurementPoint}" />
</SystemDialog>
<Transaction>
<Assign Name="Set ProcessFunctionMeasurementPoint on InspectionLine" Property="${InspectionLine.ProcessFunctionMeasurementPoint}" Value="${MeasurementPoint}" />
</Transaction>
</When>
<When Name="It is for Equipment" Condition="${InspectionLine.Equipment} != Empty">
<SystemDialog Name="Select measurement point Equipment" DialogName="SelectDomainObject">
<Parameter Name="EntityName" Direction="In" Value="EquipmentMeasurementPoint" />
<Parameter Name="SelectionListConfiguration" Direction="In" Value="Default" />
<Parameter Name="SqlWhereClause" Direction="In" Value="EqmMspEqmId = '${InspectionLine.Equipment.Id}'" />
<Parameter Name="DomainObject" Direction="Out" OutputProperty="${MeasurementPoint}" />
</SystemDialog>
<Transaction>
<Assign Name="Set EquipmentMeasurementPoint on InspectionLine" Property="${InspectionLine.EquipmentMeasurementPoint}" Value="${MeasurementPoint}" />
</Transaction>
</When>
</Choose>
<UserContent Name="Post" />
</Execution>
</Workflow>