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

ActionField1021

Beschrijving: Detach Jobs (TaskPackage) from YearPlanScenarioLines of this YearPlan. Custom: Nee

Propertiesbewerken

Property Type Accessor
YearPlan YearPlan Root

XMLbewerken

<Workflow Name="ActionField1021" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Detach Jobs (TaskPackage) from YearPlanScenarioLines of this YearPlan.</Description>
	<Properties>
		<Property	Name="YearPlan"									Type="YearPlan"										Accessor="Root"		Direction="In" />

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

		<Transaction>
			<GetList Name="Get YearPlanScenarioLineMaintenanceMoments having the propert Connect set" Type="YearPlanScenarioLineMaintenanceMoment" OutputProperty="${YearPlanScenarioLineMaintenanceMoments}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="Id.YearPlanScenarioLine.Id.YearPlanScenario.Id.YearPlan"	Operator="="		PropertyValue="${YearPlan}" />
					<PropertyFilter	PropertyName="Disconnect"												Operator="="		PropertyValue="True" />
				</Filters>
			</GetList>

			<Validation Name="Check whether any lines have been selected" Condition="${YearPlanScenarioLineMaintenanceMoments.Count} &gt; 0" MessageCode="1980" />

			<ForEach Name="call wf for each YearPlanScenarioLine" In="${YearPlanScenarioLineMaintenanceMoments}" As="YearPlanScenarioLineMaintenanceMoment">
				<When Name="YearPlanScenarioLine.Job Not Empty" Condition="${YearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine.Job} != Empty">
					<Subtract Name="Decrease Job.YearPlanScenarioLineCalculation" ValueLeft="${YearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine.Job.YearPlanScenarioLineCalculation}" ValueRight="${YearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine.CalculatedCost}" OutputProperty="${YearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine.Job.YearPlanScenarioLineCalculation}" />

					<Assign Name="Set Job on YearPlanScenarioLine to Empty" Property="${YearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine.Job}" Value="Empty" />
				</When>

				<Assign Name="reset Connect" Property="${YearPlanScenarioLineMaintenanceMoment.Connect}" Value="False" />
				<Assign Name="reset Disconnect" Property="${YearPlanScenarioLineMaintenanceMoment.Disconnect}" Value="False" />
			</ForEach>
		</Transaction>

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