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

ActionField905

Beschrijving: Change status of KnowledgeTopic to Submitted, and when Job is linked to KnowledgeTopic, open Job screen. Custom: Nee

Propertiesbewerken

Property Type Accessor
KnowledgeTopic KnowledgeTopic Root

XMLbewerken

<Workflow Name="ActionField905" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change status of KnowledgeTopic to Submitted, and when Job is linked to KnowledgeTopic, open Job screen.</Description>
	<Properties>
		<Property	Name="KnowledgeTopic"	Type="KnowledgeTopic"	Accessor="Root"		Direction="In" />

		<Property	Name="Job"				Type="Job"				Accessor="Internal" />
		<Property	Name="JobScreen"		Type="UltimoString"		Accessor="Internal"						Default="job35" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<ChangeStatus Name="Set status to submitted" DomainObject="${KnowledgeTopic}" NewStatus="KnowledgeTopicStatus.Submitted" />

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

		<UserContent Name="Post" />

		<When Name="JobExist" Condition="${Job} != Empty">
			<Choose Name="Check If context is Incident">
				<When Name="ContextIsIncident" Condition="${Job.Context} == JobContext.ITIncident">
					<When Name="JobStatusValidated" Condition="${Job.Status} == JobStatus.Created || ${Job.Status} == JobStatus.Approved || ${Job.Status} == JobStatus.Active || ${Job.Status} == JobStatus.Finished || ${Job.Status} == JobStatus.Postponed ">
						<When Name="JobSupportLineIsOne" Condition="${Job.SupportLine} == FirstLine">
							<Assign Name="Set screen 1" Property="${JobScreen}" Value="job35" />
						</When>

						<When Name="JobSupportLineIsThree" Condition="${Job.SupportLine} == SecondLine">
							<Assign Name="Set screen 2" Property="${JobScreen}" Value="job36" />
						</When>
					</When>

					<View Name="JobOpenScreen" ViewName="DataEntryScreen">
						<Parameter	Name="DomainObject"	Direction="In"		Value="${Job}" />
						<Parameter	Name="ScreenName"	Direction="In"		Value="${JobScreen}" />
					</View>
				</When>

				<Otherwise Name="servicedesk context">
					<View Name="OtherJobScreen" ViewName="DataEntryScreen">
						<Parameter	Name="DomainObject"	Direction="In"		Value="${Job}" />
					</View>
				</Otherwise>
			</Choose>
		</When>
	</Execution>
</Workflow>