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

ActionField901

Beschrijving: Create KnowledgeTopic (ImprovementRequest) for KnowledgeTopic. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
KnowledgeTopicContext Context Optional

XMLbewerken

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

		<Property	Name="KnowledgeTopicContext"			Type="Context"			Accessor="Optional"	Direction="In"		Default="KnowledgeTopicContext.ImprovementRequestServiceDesk"	Comment="Create KnowledgeTopic with this context" />

		<Property	Name="CreatedKnowledgeTopic"			Type="KnowledgeTopic"	Accessor="Internal" />
		<Property	Name="ImprovementRequestCount"			Type="Int64"			Accessor="Internal"						Default="-1" />
		<Property	Name="KnowledgeTopic"					Type="KnowledgeTopic"	Accessor="Internal" />
		<Property	Name="SubmittedImprovementRequestCount"	Type="Int64"			Accessor="Internal"						Default="-1" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

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

		<Transaction>
			<Validation Name="KnowledgeTopic must have status active" Condition="${KnowledgeTopic.Status} == KnowledgeTopicStatus.Active" MessageCode="1647">
				<Parameter	Name="KnowledgeTopic"	Direction="In"		Value="${KnowledgeTopic}" />
			</Validation>

			<GetCount Name="Get number of submitted ImprovementRequests" Type="KnowledgeTopic" OutputProperty="${SubmittedImprovementRequestCount}">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="ParentKnowledgeTopic"	Operator="="		PropertyValue="${KnowledgeTopic}" />
						<PropertyFilter	PropertyName="Context"				Operator="="		PropertyValue="${KnowledgeTopicContext}" />
						<PropertyFilter	PropertyName="Status"				Operator="="		PropertyValue="KnowledgeTopicStatus.Submitted" />
					</CombinedFilter>
				</Filters>
			</GetCount>

			<Validation Name="SubmittedImprovementRequestExist" Condition="${SubmittedImprovementRequestCount} == 0" MessageCode="1653">
				<Parameter	Name="KnowledgeTopic"	Direction="In"		Value="${KnowledgeTopic}" />
			</Validation>

			<GetCount Name="Get number of ImprovementRequests" Type="KnowledgeTopic" OutputProperty="${ImprovementRequestCount}">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="ParentKnowledgeTopic"	Operator="="		PropertyValue="${KnowledgeTopic}" />
						<PropertyFilter	PropertyName="Context"				Operator="="		PropertyValue="${KnowledgeTopicContext}" />
						<PropertyFilter	PropertyName="Status"				Operator="="		PropertyValue="KnowledgeTopicStatus.Open" />
					</CombinedFilter>
				</Filters>
			</GetCount>
		</Transaction>

		<When Name="Count is more zero" Condition="${ImprovementRequestCount} &gt; 0">
			<ContinuationQuestion Name="Exist open improvementRequest" MessageCode="1652">
				<Parameter	Name="KnowledgeTopic"	Direction="In"		Value="${KnowledgeTopic}" />
			</ContinuationQuestion>
		</When>

		<Transaction>
			<Insert Name="Create KnowledgeTopic" ObjectType="KnowledgeTopic" OutputProperty="${CreatedKnowledgeTopic}">
				<Parameter	Name="Context"					Direction="In"		Value="${KnowledgeTopicContext}" />
				<Parameter	Name="Status"					Direction="In"		Value="KnowledgeTopicStatus.Open" />
				<Parameter	Name="AcceptDescription"		Direction="In"		Value="True" />
				<Parameter	Name="AcceptDiagnosis"			Direction="In"		Value="True" />
				<Parameter	Name="AcceptKnowledgeDomain"	Direction="In"		Value="True" />
				<Parameter	Name="AcceptSkillCategory"		Direction="In"		Value="True" />
				<Parameter	Name="AcceptTags"				Direction="In"		Value="True" />
				<Parameter	Name="AcceptTemplateText"		Direction="In"		Value="True" />
				<Parameter	Name="AcceptText"				Direction="In"		Value="True" />
				<Parameter	Name="Description"				Direction="In"		Value="${KnowledgeTopic.Description}" />
				<Parameter	Name="Diagnosis"				Direction="In"		Value="${KnowledgeTopic.Diagnosis}" />
				<Parameter	Name="Job"						Direction="In"		Value="${Job}" />
				<Parameter	Name="KnowledgeDomain"			Direction="In"		Value="${KnowledgeTopic.KnowledgeDomain}" />
				<Parameter	Name="ParentKnowledgeTopic"		Direction="In"		Value="${KnowledgeTopic}" />
				<Parameter	Name="SkillCategory"			Direction="In"		Value="${KnowledgeTopic.SkillCategory}" />
				<Parameter	Name="Tags"						Direction="In"		Value="${KnowledgeTopic.Tags}" />
				<Parameter	Name="TemplateText"				Direction="In"		Value="${KnowledgeTopic.TemplateText}" />
				<Parameter	Name="Text"						Direction="In"		Value="${KnowledgeTopic.Text}" />
			</Insert>
		</Transaction>

		<UserContent Name="Post" />

		<View Name="Open KnowledgeTopic" ViewName="DataEntryScreen">
			<Parameter	Name="DomainObject"			Direction="In"		Value="${CreatedKnowledgeTopic}" />
			<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${CreatedKnowledgeTopic.Description} == Empty" />
		</View>
	</Execution>
</Workflow>