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

ActionField1146

Beschrijving: Search Jobs for WorkOrderSchedule and set the default ProgressStatus linked to record status Active as desired ProgressStatus. Custom: Nee

Propertiesbewerken

Property Type Accessor
WorkOrderSchedule WorkOrderSchedule Root
JobContextToSearch List[Context] Optional
SetPrintJob Boolean Optional
WorkOrderScheduleJobProgressStatusId UltimoString Optional

XMLbewerken

<Workflow Name="ActionField1146" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Search Jobs for WorkOrderSchedule and set the default ProgressStatus linked to record status Active as desired ProgressStatus.</Description>
	<Properties>
		<Property	Name="WorkOrderSchedule"					Type="WorkOrderSchedule"	Accessor="Root"		Direction="In" />

		<Property	Name="JobContextToSearch"					Type="List[Context]"		Accessor="Optional"	Direction="In"						Comment="Search only Jobs with these contexts" />
		<Property	Name="SetPrintJob"							Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"	Comment="Set to True to set the PrintJob property on the jobs found" />
		<Property	Name="WorkOrderScheduleJobProgressStatusId"	Type="UltimoString"			Accessor="Optional"	Direction="In"						Comment="Set PrsId for default desired progress status when searching jobs (must be linked to record status Active)" />

		<Property	Name="ProgressStatusesCount"				Type="Int64"				Accessor="Internal" />
		<Property	Name="WorkOrderScheduleJobProgressStatus"	Type="ProgressStatus?"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetCount Name="Count number of progress statuses added as filter" Type="WorkOrderScheduleProgressStatus" OutputProperty="${ProgressStatusesCount}">
				<Filters>
					<PropertyFilter	PropertyName="Id.WorkOrderSchedule"	Operator="="		PropertyValue="${WorkOrderSchedule}" />
				</Filters>
			</GetCount>

			<When Name="When Id for default desired progress status was given" Condition="${WorkOrderScheduleJobProgressStatusId} != Empty">
				<GetItem Name="Try to get default desired progress status" Type="ProgressStatus" OutputProperty="${WorkOrderScheduleJobProgressStatus}">
					<Filters>
						<PropertyFilter	PropertyName="Id"	Operator="="		PropertyValue="${WorkOrderScheduleJobProgressStatusId}" />
					</Filters>
				</GetItem>

				<Validation Name="ValidateProgressStatusFound" Condition="${WorkOrderScheduleJobProgressStatus} != Empty" MessageCode="2257">
					<Parameter	Name="ProgressStatusId"	Direction="In"		Value="${WorkOrderScheduleJobProgressStatusId}" />
				</Validation>
			</When>
		</Transaction>

		<Validation Name="ValidateProgressStatusAdded" Condition="${ProgressStatusesCount} &gt; 0" MessageCode="2253" />

		<WorkflowCall Name="workflow WorkOrderSchedule_SearchJobs" WorkflowName="WorkOrderSchedule_SearchJobs">
			<Parameter	Name="JobContextToSearch"					Direction="In"		Value="${JobContextToSearch}" />
			<Parameter	Name="MakeJobActive"						Direction="In"		Value="True" />
			<Parameter	Name="RecalculateCapacity"					Direction="In"		Value="True" />
			<Parameter	Name="SetPrintJob"							Direction="In"		Value="${SetPrintJob}" />
			<Parameter	Name="WorkOrderSchedule"					Direction="In"		Value="${WorkOrderSchedule}" />
			<Parameter	Name="WorkOrderScheduleJobProgressStatus"	Direction="In"		Value="${WorkOrderScheduleJobProgressStatus}" />
			<Parameter	Name="WorkOrderScheduleJobStatus"			Direction="In"		Value="WorkOrderScheduleJobStatus.None" />
		</WorkflowCall>

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