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

ActionField675

Beschrijving: Send Job to Backoffice. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
RedirectOnComplete Boolean Optional
ResetStatusCreatedReportDate Boolean Optional
UseProgressStatus Boolean Optional

XMLbewerken

<Workflow Name="ActionField675" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Send Job to Backoffice.</Description>
	<Properties>
		<Property	Name="Job"							Type="Job"						Accessor="Root"		Direction="In" />

		<Property	Name="RedirectOnComplete"			Type="Boolean"					Accessor="Optional"	Direction="In"		Default="False"	Comment="When redirect is succeeded then open another screen" />
		<Property	Name="ResetStatusCreatedReportDate"	Type="Boolean"					Accessor="Optional"	Direction="In"		Default="False"	Comment="Reset StatusCreatedReportDate to CurrentDateTime" />
		<Property	Name="UseProgressStatus"			Type="Boolean"					Accessor="Optional"	Direction="In"		Default="True"	Comment="Change status via ProgressStatus status" />

		<Property	Name="MessageToDisplay"				Type="Int16?"					Accessor="Internal"						Default="Empty" />
		<Property	Name="ServiceDeskReportType"		Type="ServiceDeskReportType"	Accessor="Internal" />
		<Property	Name="WorkOrderType"				Type="WorkOrderType"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="ValidateNoChangeJobYet" Condition="${Job.ItilChangeJob} == Empty" MessageCode="2326">
			<Parameter	Name="Job"					Direction="In"		Value="${Job}" />
			<Parameter	Name="JobContextToSwitchTo"	Direction="In"		Value="JobContext.ServiceRequest" />
		</Validation>

		<Dialog Name="ServiceDeskReportTypeDialog" TitleCode="SELECTSDRT">
			<Container>
				<SelectionList Name="ServiceDeskReportType" OutputProperty="${ServiceDeskReportType}" ColumnName="SdrtId" ViewfieldConfiguration="Default" Required="True" SqlWhereClause="SdrtSetContext = '131072'" />
			</Container>
		</Dialog>

		<WorkflowCall Name="Job_SendToBackOffice" WorkflowName="Job_SendToBackOffice">
			<Parameter	Name="DefaultServiceDeskReportType"	Direction="In"		Value="${ServiceDeskReportType}" />
			<Parameter	Name="Job"							Direction="In"		Value="${Job}" />
			<Parameter	Name="ResetStatusCreatedReportDate"	Direction="In"		Value="${ResetStatusCreatedReportDate}" />
			<Parameter	Name="UseProgressStatus"			Direction="In"		Value="${UseProgressStatus}" />
			<Parameter	Name="MessageToDisplay"				Direction="Out"												OutputProperty="${MessageToDisplay}" />
		</WorkflowCall>

		<UserContent Name="Post" />

		<When Name="When a message should be displayed" Condition="${MessageToDisplay} != Empty">
			<Choose Name="Check which message should be displayed">
				<When Name="When message 1423" Condition="${MessageToDisplay} == 1423">
					<Message Name="Notify the user that some sub jobs exist in charge lines" MessageCode="1423">
						<Parameter	Name="JobList"	Direction="In"		Value="${SkippedSubJobs}" />
					</Message>
				</When>


				<When Name="When message 1452" Condition="${MessageToDisplay} == 1452">
					<Message Name="Notify the user that this subjob is part of a non chargable multi-job" MessageCode="1452">
						<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
					</Message>
				</When>
			</Choose>
		</When>

		<When Name="Redirect is enabled" Condition="${RedirectOnComplete} == True">
			<View Name="Back" ViewName="Back">
				<Parameter	Name="ShowLast"	Direction="In"		Value="1" />
			</View>
		</When>
	</Execution>
</Workflow>