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

ActionField140

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

Propertiesbewerken

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

XMLbewerken

<Workflow Name="ActionField140" 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 ProcessFunction.</Description>
	<Properties>
		<Property	Name="ProcessFunction"	Type="ProcessFunction"	Accessor="Root"		Direction="In" />

		<Property	Name="Context"			Type="Context"			Accessor="Optional"	Direction="In"						Comment="Create PmWorkOrder with this context" />
		<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="ProcessFunction_CreateSchemaPmWorkOrder">
				<Parameter	Name="NewPmWorkOrderId"		Direction="In"		Value="${NewPmWorkOrderId}" />
				<Parameter	Name="PmWorkOrderContext"	Direction="In"		Value="${Context}" />
				<Parameter	Name="ProcessFunction"		Direction="In"		Value="${ProcessFunction}" />
				<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>