Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield298
ActionField298
Beschrijving: Create a PmWorkOrder for an Equipment and open the PmWorkOrder. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Equipment | Equipment | Root |
| CopyProcessFunctionToPmWorkOrder | Boolean | Optional |
| FormName | UltimoString | Optional |
| NewPmWorkOrderId | String | Optional |
| PmWorkOrderContext | Context? | Optional |
XMLbewerken
<Workflow Name="ActionField298" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create a PmWorkOrder for an Equipment and open the PmWorkOrder.</Description>
<Properties>
<Property Name="Equipment" Type="Equipment" Accessor="Root" Direction="In" />
<Property Name="CopyProcessFunctionToPmWorkOrder" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="When true, PmWorkOrder obtains the ProcessFunction from Equipment" />
<Property Name="FormName" Type="UltimoString" Accessor="Optional" Direction="In" Comment="Open this screen with the created PmWorkOrder" />
<Property Name="NewPmWorkOrderId" Type="String" Accessor="Optional" Direction="In" Default="Empty" Comment="New PmWorkOrder is created with this Id (even when PmWorkOrder has an AutoKey)" />
<Property Name="PmWorkOrderContext" Type="Context?" Accessor="Optional" Direction="In" Comment="Create the PmWorkOrder with this context" />
<Property Name="PmWorkOrder" Type="PmWorkOrder" Accessor="Internal" />
<Property Name="PmWorkOrderTest" Type="PmWorkOrder" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="UseWorkOrder false?" Condition="#{UltimoSettings.UseWorkOrder} == False" MessageCode="0229" />
<Validation Name="Equipment OK?" Condition="${Equipment.IndividualPM} == True || ${Equipment.Context} != EquipmentContext.Instrument" MessageCode="0319">
<Parameter Name="Equipment" Direction="In" Value="${Equipment}" />
</Validation>
<When Name="A new pmworkorderId is given" Condition="${NewPmWorkOrderId} != Empty">
<Transaction>
<GetItem Name="GetPmWorkorder" Type="PmWorkOrder" OutputProperty="${PmWorkOrderTest}">
<Filters>
<PropertyFilter PropertyName="Id" Operator="=" PropertyValue="${NewPmWorkOrderId}" />
</Filters>
</GetItem>
<Validation Name="PmWorkOrder found" Condition="${PmWorkOrderTest} == Empty" MessageCode="2737">
<Parameter Name="NewPmWorkOrderId" Direction="In" Value="${NewPmWorkOrderId}" />
<Parameter Name="PmWorkOrder" Direction="In" Value="${PmWorkOrderTest}" />
</Validation>
</Transaction>
</When>
<Transaction>
<Command Name="Create pmworkorder for equipment" CommandName="Equipment_CreatePmWorkOrder">
<Parameter Name="CopyProcessFunctionToPmWorkOrder" Direction="In" Value="${CopyProcessFunctionToPmWorkOrder}" />
<Parameter Name="Equipment" Direction="In" Value="${Equipment}" />
<Parameter Name="NewPmWorkOrderId" Direction="In" Value="${NewPmWorkOrderId}" />
<Parameter Name="PmWorkOrderContext" Direction="In" Value="${PmWorkOrderContext}" />
<Parameter Name="PmWorkOrder" Direction="Out" OutputProperty="${PmWorkOrder}" />
</Command>
</Transaction>
<UserContent Name="Post" />
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${PmWorkOrder}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${PmWorkOrder.Description} == Empty" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</Execution>
</Workflow>