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

ActionField227

Beschrijving: Create Problem from Incident, used for IT. Custom: Nee

Propertiesbewerken

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

XMLbewerken

<Workflow Name="ActionField227" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create Problem from Incident, used for IT.</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 problem(Job)" />
		<Property	Name="OpenJobScreen"	Type="Boolean"		Accessor="Optional"	Direction="In"		Default="True"	Comment="Open new screen with the created problem(Job)" />

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

		<Validation Name="ValidateNoProblemJobYet" Condition="${Job.ProblemJob} == Empty" MessageCode="0780">
			<Parameter	Name="Job"					Direction="In"		Value="${Job}" />
			<Parameter	Name="JobContextToCreate"	Direction="In"		Value="JobContext.ITProblem" />
		</Validation>

		<Transaction>
			<Command Name="CopyIncidentToProblem" CommandName="Job_CopyIncidentToProblem">
				<Parameter	Name="Job"			Direction="In"		Value="${Job}" />
				<Parameter	Name="ProblemJob"	Direction="Out"						OutputProperty="${ProblemJob}" />
			</Command>
		</Transaction>

		<UserContent Name="Post" />

		<Choose Name="CheckOpenScreen">
			<When Name="ScreenOpen" Condition="${OpenJobScreen} == True">
				<View Name="OpenScreen" ViewName="DataEntryScreen">
					<Parameter	Name="DomainObject"			Direction="In"		Value="${ProblemJob}" />
					<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${ProblemJob.Description} == Empty" />
					<Parameter	Name="ScreenName"			Direction="In"		Value="${FormName}" />
				</View>
			</When>

			<Otherwise Name="NoOpenJobScreen">
				<Message Name="MSG New Job" MessageCode="0781">
					<Parameter	Name="Job"	Direction="In"		Value="${ProblemJob}" />
				</Message>
			</Otherwise>
		</Choose>
	</Execution>
</Workflow>