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

ActionField1149

Beschrijving: Set Job.CreatedByServiceDesk to true and search for knowledgetopic based on Settings.Job.KnowledgeTopicSearchShowDialog. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
AllowedNonITJobContexts List[Context] Optional
AutoAnswerCopyKnowledgeTopicInfoToJob Boolean? Optional
CopyDiagnosis Boolean Optional
CopyServiceDeskReportType Boolean Optional
CopySkillCategory Boolean Optional
CopyText Boolean Optional
ExplorerId System.Int32 Optional
ObjectDocumentsCopy Boolean Optional
SearchContext UltimoString Optional
SearchDomain UltimoString Optional
SearchProperties List[UltimoString] Optional

XMLbewerken

<Workflow Name="ActionField1149" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Set Job.CreatedByServiceDesk to true and search for knowledgetopic based on Settings.Job.KnowledgeTopicSearchShowDialog.</Description>
	<Properties>
		<Property	Name="Job"										Type="Job"					Accessor="Root"		Direction="In" />

		<Property	Name="AllowedNonITJobContexts"					Type="List[Context]"		Accessor="Optional"	Direction="In"		Default="JobContext.ServiceRequest, JobContext.ServiceDesk"	Comment="Check if the job is a Non IT-Job with these contexts" />
		<Property	Name="AutoAnswerCopyKnowledgeTopicInfoToJob"	Type="Boolean?"				Accessor="Optional"	Direction="In"		Default="Empty"												Comment="Answer for question CopyKnowledgeTopicInfoToJob (3263). If Empty, question appears" />
		<Property	Name="CopyDiagnosis"							Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"												Comment="Copy Diagnosis from KnowledgeTopic to Job" />
		<Property	Name="CopyServiceDeskReportType"				Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"												Comment="Copy ServiceDeskReportType from KnowledgeTopic to Job" />
		<Property	Name="CopySkillCategory"						Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"												Comment="Copy SkillCategory from KnowledgeTopic to Job" />
		<Property	Name="CopyText"									Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"												Comment="Copy Text from KnowledgeTopic to Job" />
		<Property	Name="ExplorerId"								Type="System.Int32"			Accessor="Optional"	Direction="In"		Default="41"												Comment="Which explorer should be shown" />
		<Property	Name="ObjectDocumentsCopy"						Type="Boolean"				Accessor="Optional"	Direction="In"		Default="True"												Comment="When true, non-expired documents will be copied: No document will be copied" />
		<Property	Name="SearchContext"							Type="UltimoString"			Accessor="Optional"	Direction="In"		Default="1"													Comment="Context to be used during the search of KnowledgeTopics" />
		<Property	Name="SearchDomain"								Type="UltimoString"			Accessor="Optional"	Direction="In"		Default="KnowledgeTopic"									Comment="SearchDomain to search" />
		<Property	Name="SearchProperties"							Type="List[UltimoString]"	Accessor="Optional"	Direction="In"		Default="Description,ReportText"							Comment="Property or properties (Description,ReportText,EquipmentType,Text) to search in table KnowledgeTopic. Required if setting KnowledgeTopicSearchShowDialog is not DoNotSearch" />

		<Property	Name="KnowledgeTopics"							Type="List[KnowledgeTopic]"	Accessor="Internal"																					Comment="Return the found KnowledgeTopics" />
		<Property	Name="ShowMessage"								Type="Boolean"				Accessor="Internal"						Default="False" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="Job_Initialize" WorkflowName="Job_Initialize">
			<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
		</WorkflowCall>

		<WorkflowCall Name="Job_WarnIfStartOrTargetDateIsInThePast" WorkflowName="Job_WarnIfStartOrTargetDateIsInThePast">
			<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
		</WorkflowCall>

		<Transaction>
			<Assign Name="Set JobCreatedByServiceDesk" Property="${Job.CreatedByServiceDesk}" Value="True" />
			<Assign Name="Set AllowChangeServiceDeskReportType" Property="${Job.AllowChangeServiceDeskReportType}" Value="True" />
			<Assign Name="Set AllowChangeKnowledgeTopic" Property="${Job.AllowChangeKnowledgeTopic}" Value="True" />
		</Transaction>

		<When Name="Search in KnowledgeTopic" Condition="#settingenabled(${Job}, Job.KnowledgeTopicSearchShowDialog) == True &amp;&amp; #getsetting(${Job}, Job.KnowledgeTopicSearchShowDialog) == SearchDoNotShowDialog ">
			<WorkflowCall Name="Job_SetKnowledgeTopicCount" WorkflowName="Job_SetKnowledgeTopicCount">
				<Parameter	Name="AllowedNonITJobContexts"	Direction="In"		Value="${AllowedNonITJobContexts}" />
				<Parameter	Name="Job"						Direction="In"		Value="${Job}" />
				<Parameter	Name="SearchContext"			Direction="In"		Value="${SearchContext}" />
				<Parameter	Name="SearchDomain"				Direction="In"		Value="${SearchDomain}" />
				<Parameter	Name="SearchProperties"			Direction="In"		Value="${SearchProperties}" />
				<Parameter	Name="KnowledgeTopics"			Direction="Out"											OutputProperty="${KnowledgeTopics}" />
			</WorkflowCall>

			<When Name="1 found" Condition="${KnowledgeTopics} != Empty &amp;&amp; ${KnowledgeTopics.Count} == 1 &amp;&amp; ${Job.KnowledgeTopic} != ${KnowledgeTopics[0]}">
				<Transaction>
					<Assign Name="Set KnowledgeTopic" Property="${Job.KnowledgeTopic}" Value="${KnowledgeTopics[0]}" />
				</Transaction>

				<WorkflowCall Name="Job_CopyKnowledgeTopicInfoToJob" WorkflowName="Job_CopyKnowledgeTopicInfoToJob">
					<Parameter	Name="AutoAnswerCopyKnowledgeTopicInfoToJob"	Direction="In"		Value="${AutoAnswerCopyKnowledgeTopicInfoToJob}" />
					<Parameter	Name="CalledFromActionField1149"				Direction="In"		Value="True" />
					<Parameter	Name="CopyDiagnosis"							Direction="In"		Value="${CopyDiagnosis}" />
					<Parameter	Name="CopyServiceDeskReportType"				Direction="In"		Value="${CopyServiceDeskReportType}" />
					<Parameter	Name="CopySkillCategory"						Direction="In"		Value="${CopySkillCategory}" />
					<Parameter	Name="CopyText"									Direction="In"		Value="${CopyText}" />
					<Parameter	Name="Job"										Direction="In"		Value="${Job}" />
					<Parameter	Name="ObjectDocumentsCopy"						Direction="In"		Value="${ObjectDocumentsCopy}" />
					<Parameter	Name="ShowMessage"								Direction="Out"															OutputProperty="${ShowMessage}" />
				</WorkflowCall>
			</When>
		</When>

		<When Name="Search in KnowledgeTopic" Condition="#settingenabled(${Job}, Job.KnowledgeTopicSearchShowDialog) == True &amp;&amp; #getsetting(${Job}, Job.KnowledgeTopicSearchShowDialog) == SearchAndShowDialog ">
			<WorkflowCall Name="Select KnowledgeDomain or KnowledgeTopic from KnowledgeTree dialog" WorkflowName="Job_KnowledgeTreeDialog">
				<Parameter	Name="CopyDiagnosis"				Direction="In"		Value="${CopyDiagnosis}" />
				<Parameter	Name="CopyServiceDeskReportType"	Direction="In"		Value="${CopyServiceDeskReportType}" />
				<Parameter	Name="CopySkillCategory"			Direction="In"		Value="${CopySkillCategory}" />
				<Parameter	Name="CopyText"						Direction="In"		Value="${CopyText}" />
				<Parameter	Name="ExplorerId"					Direction="In"		Value="${ExplorerId}" />
				<Parameter	Name="Job"							Direction="In"		Value="${Job}" />
				<Parameter	Name="ObjectDocumentsCopy"			Direction="In"		Value="${ObjectDocumentsCopy}" />
				<Parameter	Name="SearchContext"				Direction="In"		Value="${SearchContext}" />
				<Parameter	Name="SearchDomain"					Direction="In"		Value="${SearchDomain}" />
				<Parameter	Name="SearchProperties"				Direction="In"		Value="${SearchProperties}" />
				<Parameter	Name="ShowMessage"					Direction="Out"												OutputProperty="${ShowMessage}" />
			</WorkflowCall>
		</When>

		<UserContent Name="Post" />

		<When Name="Documents Unlinked" Condition="${ShowMessage} == True">
			<Message Name="Documents Unlinked" MessageCode="2830">
				<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
			</Message>
		</When>
	</Execution>
</Workflow>