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

ActionField1525

Beschrijving: Change backofficestatus and servicedeskreportypes with question Custom: Nee

Propertiesbewerken

Property Type Accessor
BackOffice BackOffice Root

XMLbewerken

<Workflow Name="ActionField1525" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change backofficestatus and servicedeskreportypes with question</Description>
	<Properties>
		<Property	Name="BackOffice"						Type="BackOffice"					Accessor="Root"		Direction="In" />

		<Property	Name="NewStatusBackOffice"				Type="Status"						Accessor="Internal" />
		<Property	Name="NewStatusServiceDeskReportType"	Type="Status"						Accessor="Internal" />
		<Property	Name="ServiceDeskReportTypes"			Type="List[ServiceDeskReportType]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="StatusDialog" WorkflowName="Dialog_ChooseStatus">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${BackOffice}" />
			<Parameter	Name="Status"		Direction="Out"								OutputProperty="${NewStatusBackOffice}" />
		</WorkflowCall>

		<UserContent Name="AfterDialog" />

		<When Name="Active to Concept" Condition="${BackOffice.Status} == BackOfficeStatus.Active &amp;&amp; ${NewStatusBackOffice} == BackOfficeStatus.Concept">
			<Transaction>
				<GetList Name="Get templates (servicedeskreporttype)" Type="ServiceDeskReportType" OutputProperty="${ServiceDeskReportTypes}" OrderBy="Id" OrderDirection="Ascending">
					<Filters>
						<PropertyFilter	PropertyName="BackOffice"	Operator="="		PropertyValue="${BackOffice}" />
						<PropertyFilter	PropertyName="Status"		Operator="="		PropertyValue="ServiceDeskReportTypeStatus.Active" />
					</Filters>
				</GetList>
			</Transaction>

			<When Name="Templates are found" Condition="${ServiceDeskReportTypes.Count} &gt; 0">
				<ContinuationQuestion Name="Change status of templates" MessageCode="2769">
					<Parameter	Name="BackOffice"				Direction="In"		Value="${BackOffice}" />
					<Parameter	Name="ServiceDeskReportTypes"	Direction="In"		Value="${ServiceDeskReportTypes}" />
				</ContinuationQuestion>
			</When>
		</When>

		<Transaction>
			<ChangeStatus Name="BackOffice" DomainObject="${BackOffice}" NewStatus="${NewStatusBackOffice}" />
		</Transaction>

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