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

ActionField303

Beschrijving: Create a PmWorkOrder for a ProcessFunction. Custom: Nee

Propertiesbewerken

Property Type Accessor
ProcessFunction ProcessFunction Root
FormName UltimoString Optional
NewPmWorkOrderId String Optional
PmWorkOrderContext Context Optional

XMLbewerken

<Workflow Name="ActionField303" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create a PmWorkOrder for a ProcessFunction.</Description>
	<Properties>
		<Property	Name="ProcessFunction"		Type="ProcessFunction"	Accessor="Root"		Direction="In" />

		<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" />

		<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 processfunction" CommandName="ProcessFunction_CreatePmWorkOrder">
				<Parameter	Name="NewPmWorkOrderId"		Direction="In"		Value="${NewPmWorkOrderId}" />
				<Parameter	Name="PmWorkOrderContext"	Direction="In"		Value="${PmWorkOrderContext}" />
				<Parameter	Name="ProcessFunction"		Direction="In"		Value="${ProcessFunction}" />
				<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>