Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1763
ActionField1763
Beschrijving: Show a dialog to update the ExecutionPercentage for pmworkorder or maintenanceclassification per context. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| MaintenanceClassificationContext | Context | Optional |
| PmWorkOrderContext | Context | Optional |
| UpdateMaintenanceClassification | Boolean | Optional |
| UpdatePmWorkOrder | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1763" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Show a dialog to update the ExecutionPercentage for pmworkorder or maintenanceclassification per context.</Description>
<Properties>
<Property Name="MaintenanceClassificationContext" Type="Context" Accessor="Optional" Direction="In" Default="MaintenanceClassificationContext.Standard" Comment="Update MaintenanceClassifications with this Context" />
<Property Name="PmWorkOrderContext" Type="Context" Accessor="Optional" Direction="In" Default="PmWorkOrderContext.Standard" Comment="Update PmWorkOrders with this Context" />
<Property Name="UpdateMaintenanceClassification" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Update MaintenanceClassification Yes/No" />
<Property Name="UpdatePmWorkOrder" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="Update PmWorkOrder Yes/No" />
<Property Name="DialogTitle" Type="UltimoString" Accessor="Internal" />
<Property Name="Explanation" Type="String" Accessor="Internal" />
<Property Name="MaintenanceClassifications" Type="List[MaintenanceClassification]" Accessor="Internal" />
<Property Name="NewExecutionPercentage" Type="Int32" Accessor="Internal" Default="0" />
<Property Name="OldExecutionPercentage" Type="Int32" Accessor="Internal" Default="0" />
<Property Name="PmWorkOrders" Type="List[PmWorkOrder]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<When Name="UpdatePmWorkOrder" Condition="${UpdatePmWorkOrder} == True">
<When Name="Is setting enabled" Condition="#settingenabled(PmWorkOrder, ${PmWorkOrderContext}, PmWorkOrder.DefaultExecutionPercentage) == true">
<Assign Name="NewExecutionPercentage" Property="${NewExecutionPercentage}" Value="=#getsetting(PmWorkOrder, ${PmWorkOrderContext}, PmWorkOrder.DefaultExecutionPercentage)" />
<Assign Name="DialogTitle" Property="${DialogTitle}" Value="EXECUTIONPERCENTAGE_TITLE_PMWORKORDER" />
</When>
<Transaction>
<Command Name="Get label for conversion explanation" CommandName="GetLabel">
<Parameter Name="LabelCode" Direction="In" Value="EXECUTIONPERCENTAGE_EXPLANATION_PMWORKORDER" />
<Parameter Name="LabelValue" Direction="Out" OutputProperty="${Explanation}" />
</Command>
<Command Name="Get most used ExecutionPercentage" CommandName="PmWorkOrder_GetMostUsedExecutionPercentage">
<Parameter Name="PmWorkOrderContext" Direction="In" Value="${PmWorkOrderContext}" />
<Parameter Name="ExecutionPercentage" Direction="Out" OutputProperty="${OldExecutionPercentage}" />
</Command>
</Transaction>
</When>
<When Name="UpdatePmWorkOrderOrMaintenanceClassification" Condition="${UpdateMaintenanceClassification} == True">
<When Name="Is setting enabled" Condition="#settingenabled(MaintenanceClassification, ${MaintenanceClassificationContext}, MaintenanceClassification.DefaultExecutionPercentage) == true">
<Assign Name="NewExecutionPercentage" Property="${NewExecutionPercentage}" Value="=#getsetting(MaintenanceClassification, ${MaintenanceClassificationContext}, MaintenanceClassification.DefaultExecutionPercentage)" />
<Assign Name="DialogTitle" Property="${DialogTitle}" Value="EXECUTIONPERCENTAGE_TITLE_MAINTENANCECLASSIFICATION" />
</When>
<Transaction>
<Command Name="Get label for conversion explanation" CommandName="GetLabel">
<Parameter Name="LabelCode" Direction="In" Value="EXECUTIONPERCENTAGE_EXPLANATION_MAINTENANCECLASSIFICATION" />
<Parameter Name="LabelValue" Direction="Out" OutputProperty="${Explanation}" />
</Command>
<Command Name="Get most used ExecutionPercentage" CommandName="MaintenanceClassification_GetMostUsedExecutionPercentage">
<Parameter Name="MaintenanceClassificationContext" Direction="In" Value="${MaintenanceClassificationContext}" />
<Parameter Name="ExecutionPercentage" Direction="Out" OutputProperty="${OldExecutionPercentage}" />
</Command>
</Transaction>
</When>
<Dialog Name="Dialog_SetExecutionPercentage" TitleCode="${DialogTitle}" LabelWidth="300">
<Container>
<Container>
<Literal Name="Explanation" Width="600" Value="${Explanation}" />
</Container>
<Number Name="OldExecutionPercentage" Visible="True" Value="${OldExecutionPercentage}" OutputProperty="${OldExecutionPercentage}" ReadOnly="False" LabelCode="EXECUTIONPERCENTAGE_OLD" MinValue="0" MaxValue="100" DecimalPrecision="0" />
<Number Name="NewExecutionPercentage" Visible="True" Value="${NewExecutionPercentage}" ReadOnly="True" LabelCode="EXECUTIONPERCENTAGE_NEW" MinValue="0" MaxValue="100" DecimalPrecision="0" />
</Container>
</Dialog>
<Transaction>
<WorkflowCall Name="PmWorkOrder_SetDefaultExecutionPercentageEvent" WorkflowName="PmWorkOrder_SetDefaultExecutionPercentageEvent">
<Parameter Name="MaintenanceClassificationContext" Direction="In" Value="${MaintenanceClassificationContext}" />
<Parameter Name="OldMaintenanceClassificationExecutionPercentage" Direction="In" Value="${OldExecutionPercentage}" />
<Parameter Name="OldPmWorkOrderExecutionPercentage" Direction="In" Value="${OldExecutionPercentage}" />
<Parameter Name="PmWorkOrderContext" Direction="In" Value="${PmWorkOrderContext}" />
<Parameter Name="UpdateMaintenanceClassification" Direction="In" Value="${UpdateMaintenanceClassification}" />
<Parameter Name="UpdatePmWorkOrder" Direction="In" Value="${UpdatePmWorkOrder}" />
</WorkflowCall>
</Transaction>
<Choose Name="Update PmWorkOrder or MaintenanceClassification">
<When Name="UpdatePmWorkOrder" Condition="${UpdatePmWorkOrder} == True">
<Message Name="PmWorkOrders updated" MessageCode="3563">
<Parameter Name="PmWorkOrderContext" Direction="In" Value="${PmWorkOrderContext}" />
</Message>
</When>
<Otherwise Name="UpdateMaintenanceClassification">
<Message Name="MaintenanceClassifications updated" MessageCode="3564">
<Parameter Name="MaintenanceClassificationContext" Direction="In" Value="${MaintenanceClassificationContext}" />
</Message>
</Otherwise>
</Choose>
<UserContent Name="Post" />
</Execution>
</Workflow>