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

ActionField224

Beschrijving: Change Job context and open Job screen. Move Job between backoffices, used for IT. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
JobContext Context Optional
KnownErrorScreen UltimoString Optional
NewProgressStatus ProgressStatus Optional

XMLbewerken

<Workflow Name="ActionField224" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change Job context and open Job screen. Move Job between backoffices, used for IT.</Description>
	<Properties>
		<Property	Name="Job"					Type="Job"				Accessor="Root"		Direction="In" />

		<Property	Name="JobContext"			Type="Context"			Accessor="Optional"	Direction="In"		Default="JobContext.ITKnownError"	Comment="Change Job context to this context" />
		<Property	Name="KnownErrorScreen"		Type="UltimoString"		Accessor="Optional"	Direction="In"											Comment="Open this screen with the changed Job" />
		<Property	Name="NewProgressStatus"	Type="ProgressStatus"	Accessor="Optional"	Direction="In"		Default="US0080"					Comment="Change status to the status of this progressStatus" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Assign Name="SetJobContext" Property="${Job.Context}" Value="${JobContext}" />
			<Assign Name="set new ProgressStatus" Property="${Job.ProgressStatus}" Value="${NewProgressStatus}" />

			<When Name="NewProgressStatus is not empty and new status is different from current job status" Condition="${NewProgressStatus} != Empty &amp;&amp; ${NewProgressStatus.NextStatus} != 0 &amp;&amp; ${Job.Status} != ${NewProgressStatus.NextStatus}">
				<ChangeStatus Name="ChangeJobStatus" DomainObject="${Job}" NewStatus="${NewProgressStatus.NextStatus}" />
			</When>
		</Transaction>

		<UserContent Name="Post" />

		<View Name="JumpToKnownErrorScreen" ViewName="DataEntryScreen">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${Job}" />
			<Parameter	Name="ScreenName"	Direction="In"		Value="${KnownErrorScreen}" />
		</View>
	</Execution>
</Workflow>