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

ActionField1089

Beschrijving: Create a Job (ItilChange) for this Job (ITKnownError). Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
FormName UltimoString Optional
OpenJobScreen Boolean Optional

XMLbewerken

<Workflow Name="ActionField1089" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create a Job (ItilChange) for this Job (ITKnownError).</Description>
	<Properties>
		<Property	Name="Job"				Type="Job"			Accessor="Root"		Direction="In" />

		<Property	Name="FormName"			Type="UltimoString"	Accessor="Optional"	Direction="In"		Default="Empty"	Comment="Open this screen with the created Job" />
		<Property	Name="OpenJobScreen"	Type="Boolean"		Accessor="Optional"	Direction="In"		Default="True"	Comment="Open screen with the created Job" />

		<Property	Name="ChangeJob"		Type="Job"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="ValidateNoChangeJobYet" Condition="${Job.ItilChangeJob} == Empty" MessageCode="0780">
			<Parameter	Name="Job"					Direction="In"		Value="${Job}" />
			<Parameter	Name="JobContextToCreate"	Direction="In"		Value="JobContext.ItilChange" />
		</Validation>

		<Transaction>
			<Command Name="Copy ITKnownError to ItilChange" CommandName="Job_CopyKnownErrorToChange">
				<Parameter	Name="Job"			Direction="In"		Value="${Job}" />
				<Parameter	Name="ChangeJob"	Direction="Out"						OutputProperty="${ChangeJob}" />
			</Command>
		</Transaction>

		<UserContent Name="Post" />

		<Choose Name="Check if job screen should open">
			<When Name="When it should" Condition="${OpenJobScreen} == True">
				<View Name="OpenScreen" ViewName="DataEntryScreen">
					<Parameter	Name="DomainObject"			Direction="In"		Value="${ChangeJob}" />
					<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${ChangeJob.Description} == Empty" />
					<Parameter	Name="ScreenName"			Direction="In"		Value="${FormName}" />
				</View>
			</When>

			<Otherwise Name="Otherwise, do not open screen and show message instead">
				<Message Name="Message new change created" MessageCode="0781">
					<Parameter	Name="Job"	Direction="In"		Value="${ChangeJob}" />
				</Message>
			</Otherwise>
		</Choose>
	</Execution>
</Workflow>