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

ActionField1702

Beschrijving: Copy fields from master-incident to new incident. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
ExtraFieldsToCopy List[String] Optional

XMLbewerken

<Workflow Name="ActionField1702" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Copy fields from master-incident to new incident.</Description>
	<Properties>
		<Property	Name="Job"					Type="Job"			Accessor="Root"		Direction="In" />

		<Property	Name="ExtraFieldsToCopy"	Type="List[String]"	Accessor="Optional"	Direction="In"		Comment="Extra fields that must be copied" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Choose Name="Linked Job or not">
			<When Name="Job has masterjob" Condition="${Job.MasterJob} != Empty">
				<Transaction>
					<WorkflowCall Name="Job_CopyFieldsFromJobToAnotherJob" WorkflowName="Job_CopyFieldsFromJobToAnotherJob">
						<Parameter	Name="ExtraFieldsToCopy"	Direction="In"		Value="${ExtraFieldsToCopy}" />
						<Parameter	Name="FromJob"				Direction="In"		Value="${Job.MasterJob}" />
						<Parameter	Name="TargetJob"			Direction="InOut"	Value="${Job}"					OutputProperty="${Job}" />
					</WorkflowCall>

					<Assign Name="Set Context" Property="${Job.Context}" Value="JobContext.LinkedIncident" />
				</Transaction>

				<Message Name="Job is linked to master-job" MessageCode="3435">
					<Parameter	Name="Job"			Direction="In"		Value="${Job}" />
					<Parameter	Name="MasterJob"	Direction="In"		Value="${Job.MasterJob}" />
				</Message>
			</When>

			<Otherwise Name="not Linked anymore?">
				<Transaction>
					<Assign Name="Set Context" Property="${Job.Context}" Value="JobContext.ITIncident" />
				</Transaction>

				<Message Name="Job is not linked to master-job" MessageCode="3436">
					<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
				</Message>
			</Otherwise>
		</Choose>

		<UserContent Name="Post" />

		<WorkflowCall Name="DomainObject_OpenScreen" WorkflowName="DomainObject_OpenScreen">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${Job}" />
		</WorkflowCall>
	</Execution>
</Workflow>