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

ActionField1219

Beschrijving: Update the SkillCategory/Employee for all PeriodicActivities (and underlying PmJobs) linked to the Equipment when it is updated on the Equipment itself. Custom: Nee

Propertiesbewerken

Property Type Accessor
Equipment Equipment Root

XMLbewerken

<Workflow Name="ActionField1219" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Update the SkillCategory/Employee for all PeriodicActivities (and underlying PmJobs) linked to the Equipment when it is updated on the Equipment itself.</Description>
	<Properties>
		<Property	Name="Equipment"			Type="Equipment"			Accessor="Root"		Direction="In" />

		<Property	Name="PeriodicActivities"	Type="List[PmWorkOrder]"	Accessor="Internal" />
		<Property	Name="PmJobs"				Type="List[PmJob]"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetList Name="Get periodic activities for this Equipment" Type="PmWorkOrder" OutputProperty="${PeriodicActivities}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="Equipment"	Operator="="		PropertyValue="${Equipment}" />
					<NotFilter>
						<PropertyEmptyFilter PropertyName="GroupPmWorkOrder" />
					</NotFilter>
				</Filters>
			</GetList>

			<ForEach Name="Update each periodic activity found" In="${PeriodicActivities}" As="PeriodicActivity">
				<Assign Name="Set SkillCategory" Property="${PeriodicActivity.SkillCategory}" Value="${Equipment.GroupPMSkillCategory}" />
				<Assign Name="Set Employee" Property="${PeriodicActivity.Employee}" Value="${Equipment.GroupPMEmployee}" />

				<GetList Name="Get PM jobs for this activity" Type="PmJob" OutputProperty="${PmJobs}" OrderBy="Id" OrderDirection="Ascending">
					<Filters>
						<PropertyFilter	PropertyName="Id.PmWorkOrder"	Operator="="		PropertyValue="${PeriodicActivity}" />
					</Filters>
				</GetList>

				<ForEach Name="Update each PM job" In="${PmJobs}" As="PmJob">
					<Assign Name="Set SkillCategory" Property="${PmJob.SkillCategory}" Value="${Equipment.GroupPMSkillCategory}" />
					<Assign Name="Set Employee" Property="${PmJob.Employee}" Value="${Equipment.GroupPMEmployee}" />
				</ForEach>
			</ForEach>
		</Transaction>

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