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

ActionField029

Beschrijving: Approve Job (from status Finished). When WorkOrder is used, the status of the WorkOrder must be Approved or Active. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root

XMLbewerken

<Workflow Name="ActionField029" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Approve Job (from status Finished). When WorkOrder is used, the status of the WorkOrder must be Approved or Active.</Description>
	<Properties>
		<Property	Name="Job"	Type="Job"	Accessor="Root"		Direction="In" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="Job Is Finished" Condition="${Job.Status} == JobStatus.Finished" MessageCode="0279">
			<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
		</Validation>

		<When Name="UseWorkOrder" Condition="#{UltimoSettings.UseWorkOrder} == True">
			<Validation Name="WorkOrderStatus" Condition="${Job.WorkOrder.Status} == WorkOrderStatus.Approved || ${Job.WorkOrder.Status} == WorkOrderStatus.Active" MessageCode="0280">
				<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
			</Validation>
		</When>

		<Transaction>
			<ChangeStatus Name="ReApprove Job" DomainObject="${Job}" NewStatus="JobStatus.Approved" />
		</Transaction>

		<Message Name="ummJOBREPEATED" MessageCode="0281">
			<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
		</Message>

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