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

ActionField1625

Beschrijving: Validate PmJob.DowntimeRequired. Custom: Nee

Propertiesbewerken

Property Type Accessor
PmJob PmJob Root

XMLbewerken

<Workflow Name="ActionField1625" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Validate PmJob.DowntimeRequired.</Description>
	<Properties>
		<Property	Name="PmJob"			Type="PmJob"				Accessor="Root"		Direction="In" />

		<Property	Name="PmJobJobPlans"	Type="List[PmJobJobPlan]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="PmJob.DowntimeRequired is True" Condition="${PmJob.DowntimeRequired} == true">
			<Stop Name="Stop" Mode="EndCurrent" />
		</When>

		<Transaction>
			<Toggle Name="ToggleDownTimeRequired" Property="${PmJob.DowntimeRequired}" Comment="Turn back the change made in the screen. When validation is not ok, this toggle is saved. When validation is ok, this toggle is turned back again by a second toggle in a separate transaction." />
		</Transaction>

		<Transaction>
			<Validation Name="CheckJobPlan.DowntimeRequired" Condition="${PmJob.JobPlan} == Empty || ${PmJob.JobPlan.DowntimeRequired} == False" MessageCode="3037">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${PmJob.JobPlan}" />
			</Validation>

			<GetList Name="Get PmJobJobPlan" Type="PmJobJobPlan" OutputProperty="${PmJobJobPlans}" OrderBy="Id" OrderDirection="Ascending" Comment="Get PmJobJobPlan linked with pmjob">
				<Filters>
					<PropertyFilter	PropertyName="PmJob"	Operator="="		PropertyValue="${PmJob}" />
				</Filters>
			</GetList>

			<ForEach Name="ForEach PmJobJobPlan" In="${PmJobJobPlans}" As="PmJobJobPlan">
				<Validation Name="CheckJobPlan.DowntimeRequired" Condition="${PmJobJobPlan.JobPlan.DowntimeRequired} == False" MessageCode="3037">
					<Parameter	Name="DomainObject"	Direction="In"		Value="${PmJobJobPlan.JobPlan}" />
				</Validation>
			</ForEach>

			<Toggle Name="ToggleDownTimeRequired" Property="${PmJob.DowntimeRequired}" Comment="Validation OK: turn back earlier toggle. This effectively means confirmation of the change made in the screen." />
		</Transaction>

		<UserContent Name="Post" />
	</Execution>
</Workflow>