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

ActionField134

Beschrijving: Create PmWorkOrder (belonging to schema) with status created for Equipment. Custom: Nee

Propertiesbewerken

Property Type Accessor
Equipment Equipment Root
Context Context Optional
CopyProcessFunctionToPmWorkOrder Boolean Optional
FormName String Optional
NewPmWorkOrderId String Optional

XMLbewerken

<Workflow Name="ActionField134" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create PmWorkOrder (belonging to schema) with status created for Equipment.</Description>
	<Properties>
		<Property	Name="Equipment"						Type="Equipment"	Accessor="Root"		Direction="In" />

		<Property	Name="Context"							Type="Context"		Accessor="Optional"	Direction="In"						Comment="Create PmWorkOrder with this context" />
		<Property	Name="CopyProcessFunctionToPmWorkOrder"	Type="Boolean"		Accessor="Optional"	Direction="In"		Default="True"	Comment="When true, PmWorkOrder obtains the ProcessFunction from Equipment" />
		<Property	Name="FormName"							Type="String"		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="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" />

		<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 Schema PmWorkOrder" CommandName="Equipment_CreateSchemaPmWorkOrder">
				<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="${Context}" />
				<Parameter	Name="PmWorkOrder"						Direction="Out"													OutputProperty="${PmWorkOrder}" />
			</Command>
		</Transaction>

		<UserContent Name="Post" />

		<View Name="Open Screen" 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>