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

ActionField1285

Beschrijving: Create an InspectionLine for an ObjectImportedPreventiveMaintenanceTask and open the InspectionLine Custom: Nee

Propertiesbewerken

Property Type Accessor
ObjectImportedPreventiveMaintenanceTask ObjectImportedPreventiveMaintenanceTask Root
CourseRouteContext Context? Optional
InspectionLineContext Context? Optional

XMLbewerken

<Workflow Name="ActionField1285" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create an InspectionLine for an ObjectImportedPreventiveMaintenanceTask and open the InspectionLine</Description>
	<Properties>
		<Property	Name="ObjectImportedPreventiveMaintenanceTask"	Type="ObjectImportedPreventiveMaintenanceTask"	Accessor="Root"		Direction="In" />

		<Property	Name="CourseRouteContext"						Type="Context?"									Accessor="Optional"	Direction="In"		Default="PmWorkOrderContext.CourseRoute" />
		<Property	Name="InspectionLineContext"					Type="Context?"									Accessor="Optional"	Direction="In"		Default="InspectionLineContext.CourseRoute" />

		<Property	Name="CourseRoute"								Type="PmWorkOrder"								Accessor="Internal" />
		<Property	Name="InspectionLine"							Type="InspectionLine"							Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="ObjectImportedPreventiveMaintenanceTask should not have an InspectionLine" Condition="${ObjectImportedPreventiveMaintenanceTask.InspectionLine} == Empty" MessageCode="2691">
			<Parameter	Name="ObjectImportedPreventiveMaintenanceTask"	Direction="In"		Value="${ObjectImportedPreventiveMaintenanceTask}" />
			<Parameter	Name="PmWorkOrderContext"						Direction="In"		Value="${CourseRouteContext}" />
		</Validation>

		<Dialog Name="Ask for course route" TitleCode="SELECTCOURSEROUTE">
			<Container>
				<SelectionList Name="SelectCourseRoute" OutputProperty="${CourseRoute}" ColumnName="PmwId" ViewfieldConfiguration="LOOPROUTE" Required="True" SqlWhereClause="PmwContext = ${CourseRouteContext}" />
			</Container>
		</Dialog>

		<Transaction>
			<Insert Name="Create InspectionLine" ObjectType="InspectionLine" OutputProperty="${InspectionLine}">
				<Parameter	Name="Context"				Direction="In"		Value="${InspectionLineContext}" />
				<Parameter	Name="Description"			Direction="In"		Value="${ObjectImportedPreventiveMaintenanceTask.Description}" />
				<Parameter	Name="Equipment"			Direction="In"		Value="${ObjectImportedPreventiveMaintenanceTask.Equipment}" />
				<Parameter	Name="Frequency"			Direction="In"		Value="${ObjectImportedPreventiveMaintenanceTask.Frequency}" />
				<Parameter	Name="FrequencyInterval"	Direction="In"		Value="${ObjectImportedPreventiveMaintenanceTask.FrequencyQuantity}" />
				<Parameter	Name="PmWorkOrder"			Direction="In"		Value="${CourseRoute}" />
				<Parameter	Name="ProcessFunction"		Direction="In"		Value="${ObjectImportedPreventiveMaintenanceTask.ProcessFunction}" />
			</Insert>

			<Assign Name="Link InspectionLine" Property="${ObjectImportedPreventiveMaintenanceTask.InspectionLine}" Value="${InspectionLine}" />
		</Transaction>

		<UserContent Name="Post" />

		<View Name="OpenScreen" ViewName="DataEntryScreen">
			<Parameter	Name="DomainObject"			Direction="In"		Value="${InspectionLine}" />
			<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${InspectionLine.Description} == Empty" />
		</View>
	</Execution>
</Workflow>