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

ActionField636

Beschrijving: Change status of KnowledgeTopic; when status is Submitted via dialog, when status is Active change to Inactive, when status is InActive change to Active. Custom: Nee

Propertiesbewerken

Property Type Accessor
KnowledgeTopic KnowledgeTopic Root

XMLbewerken

<Workflow Name="ActionField636" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change status of KnowledgeTopic; when status is Submitted via dialog, when status is Active change to Inactive, when status is InActive change to Active.</Description>
	<Properties>
		<Property	Name="KnowledgeTopic"	Type="KnowledgeTopic"	Accessor="Root"		Direction="In" />

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

		<Choose Name="Check status">
			<When Name="Submitted" Condition="${KnowledgeTopic.Status} == KnowledgeTopicStatus.Submitted">
				<WorkflowCall Name="StatusDialog" WorkflowName="Dialog_ChooseStatus">
					<Parameter	Name="DomainObject"	Direction="In"		Value="${KnowledgeTopic}" />
					<Parameter	Name="Status"		Direction="Out"									OutputProperty="${Status}" />
				</WorkflowCall>

				<UserContent Name="AfterDialog" />

				<Transaction>
					<ChangeStatus Name="Set chosen Status" DomainObject="${KnowledgeTopic}" NewStatus="${Status}" />
				</Transaction>
			</When>

			<Otherwise Name="Status inactive or active">
				<Choose Name="Check status inactive of active">
					<When Name="Active" Condition="${KnowledgeTopic.Status} == KnowledgeTopicStatus.Active">
						<Transaction>
							<ChangeStatus Name="Deactivate" DomainObject="${KnowledgeTopic}" NewStatus="KnowledgeTopicStatus.Inactive" />
						</Transaction>
					</When>

					<Otherwise Name="Status inactive">
						<Transaction>
							<ChangeStatus Name="Activate" DomainObject="${KnowledgeTopic}" NewStatus="KnowledgeTopicStatus.Active" />
						</Transaction>
					</Otherwise>
				</Choose>
			</Otherwise>
		</Choose>

		<UserContent Name="Post" />
	</Execution>
</Workflow>