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

ActionField1735

Beschrijving: Register downtime for self service users. Custom: Nee

Propertiesbewerken

Property Type Accessor
EquipmentContext List[Context] Optional
ProcessFunctionContext List[Context] Optional
ScreenName String Optional
WorkOrderTypeContext Context Optional

XMLbewerken

<Workflow Name="ActionField1735" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Register downtime for self service users.</Description>
	<Properties>
		<Property	Name="EquipmentContext"			Type="List[Context]"					Accessor="Optional"	Direction="In"		Default="EquipmentContext.Installation"				Comment="Filter the Equipment on the contexts provided" />
		<Property	Name="ProcessFunctionContext"	Type="List[Context]"					Accessor="Optional"	Direction="In"		Default="ProcessFunctionContext.ProcessFunction"	Comment="Filter the ProcessFunction on the contexts provided" />
		<Property	Name="ScreenName"				Type="String"							Accessor="Optional"	Direction="In"		Default="JOB14"										Comment="Screen to open when creating job for solved downtime, when not using dialog" />
		<Property	Name="WorkOrderTypeContext"		Type="Context"							Accessor="Optional"	Direction="In"		Default="WorkOrderTypeContext.Standard"				Comment="Filter the WorkOrderType on the context provided" />

		<Property	Name="Component"				Type="Component"						Accessor="Internal" />
		<Property	Name="ComponentProblem"			Type="ComponentProblem"					Accessor="Internal" />
		<Property	Name="CreatedJob"				Type="Job"								Accessor="Internal" />
		<Property	Name="Description"				Type="UltimoString"						Accessor="Internal" />
		<Property	Name="EndDate"					Type="DateTime?"						Accessor="Internal"																			Comment="EndDate of ObjectDowntime" />
		<Property	Name="Equipment"				Type="Equipment"						Accessor="Internal" />
		<Property	Name="EquipmentCause"			Type="Equipment"						Accessor="Internal" />
		<Property	Name="FailType"					Type="FailType"							Accessor="Internal" />
		<Property	Name="ObjectDowntime"			Type="ObjectDowntime"					Accessor="Internal" />
		<Property	Name="ProcessFunction"			Type="ProcessFunction"					Accessor="Internal" />
		<Property	Name="ProcessFunctionCause"		Type="ProcessFunction"					Accessor="Internal" />
		<Property	Name="RegistrationType"			Type="ObjectDowntimeRegistrationType"	Accessor="Internal" />
		<Property	Name="Remark"					Type="UltimoString"						Accessor="Internal" />
		<Property	Name="Remedy"					Type="Remedy"							Accessor="Internal" />
		<Property	Name="ReportText"				Type="UltimoString"						Accessor="Internal" />
		<Property	Name="StartDate"				Type="DateTime"							Accessor="Internal"																			Comment="StartDate of ObjectDowntime" />
		<Property	Name="UseDialogWhenReporting"	Type="Boolean"							Accessor="Internal" />
		<Property	Name="WorkOrderType"			Type="WorkOrderType"					Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="Dialog_RegisterDowntime" WorkflowName="Dialog_RegisterDowntime">
			<Parameter	Name="EquipmentContext"			Direction="In"		Value="${EquipmentContext}" />
			<Parameter	Name="ProcessFunctionContext"	Direction="In"		Value="${ProcessFunctionContext}" />
			<Parameter	Name="WorkOrderTypeContext"		Direction="In"		Value="${WorkOrderTypeContext}" />
			<Parameter	Name="RegistrationType"			Direction="InOut"	Value="${RegistrationType}"			OutputProperty="${RegistrationType}" />
			<Parameter	Name="Component"				Direction="Out"											OutputProperty="${Component}" />
			<Parameter	Name="ComponentProblem"			Direction="Out"											OutputProperty="${ComponentProblem}" />
			<Parameter	Name="Description"				Direction="Out"											OutputProperty="${Description}" />
			<Parameter	Name="EndDate"					Direction="Out"											OutputProperty="${EndDate}" />
			<Parameter	Name="Equipment"				Direction="Out"											OutputProperty="${Equipment}" />
			<Parameter	Name="EquipmentCause"			Direction="Out"											OutputProperty="${EquipmentCause}" />
			<Parameter	Name="FailType"					Direction="Out"											OutputProperty="${FailType}" />
			<Parameter	Name="ProcessFunction"			Direction="Out"											OutputProperty="${ProcessFunction}" />
			<Parameter	Name="ProcessFunctionCause"		Direction="Out"											OutputProperty="${ProcessFunctionCause}" />
			<Parameter	Name="Remark"					Direction="Out"											OutputProperty="${Remark}" />
			<Parameter	Name="Remedy"					Direction="Out"											OutputProperty="${Remedy}" />
			<Parameter	Name="ReportText"				Direction="Out"											OutputProperty="${ReportText}" />
			<Parameter	Name="StartDate"				Direction="Out"											OutputProperty="${StartDate}" />
			<Parameter	Name="UseDialogWhenReporting"	Direction="Out"											OutputProperty="${UseDialogWhenReporting}" />
			<Parameter	Name="WorkOrderType"			Direction="Out"											OutputProperty="${WorkOrderType}" />
		</WorkflowCall>

		<WorkflowCall Name="ObjectDowntime_Register" WorkflowName="ObjectDowntime_Register">
			<Parameter	Name="Component"			Direction="In"		Value="${Component}" />
			<Parameter	Name="ComponentProblem"		Direction="In"		Value="${ComponentProblem}" />
			<Parameter	Name="Description"			Direction="In"		Value="${Description}" />
			<Parameter	Name="DomainObject"			Direction="In"		Value="=${Equipment} != Empty ? ${Equipment} : ${ProcessFunction}" />
			<Parameter	Name="EndDate"				Direction="In"		Value="${EndDate}" />
			<Parameter	Name="Equipment"			Direction="In"		Value="${Equipment}" />
			<Parameter	Name="EquipmentCause"		Direction="In"		Value="${EquipmentCause}" />
			<Parameter	Name="FailType"				Direction="In"		Value="${FailType}" />
			<Parameter	Name="ProcessFunction"		Direction="In"		Value="${ProcessFunction}" />
			<Parameter	Name="ProcessFunctionCause"	Direction="In"		Value="${ProcessFunctionCause}" />
			<Parameter	Name="RegistrationType"		Direction="In"		Value="${RegistrationType}" />
			<Parameter	Name="Remark"				Direction="In"		Value="${Remark}" />
			<Parameter	Name="Remedy"				Direction="In"		Value="${Remedy}" />
			<Parameter	Name="ReportText"			Direction="In"		Value="${ReportText}" />
			<Parameter	Name="StartDate"			Direction="In"		Value="${StartDate}" />
			<Parameter	Name="WorkOrderType"		Direction="In"		Value="${WorkOrderType}" />
			<Parameter	Name="CreatedJob"			Direction="Out"																			OutputProperty="${CreatedJob}" />
			<Parameter	Name="ObjectDowntime"		Direction="Out"																			OutputProperty="${ObjectDowntime}" />
		</WorkflowCall>

		<UserContent Name="Post" />

		<When Name="UseDialogWhenReporting disabled" Condition="${UseDialogWhenReporting} == False &amp;&amp; ${CreatedJob} != Empty">
			<Choose Name="Check if job is to be reported afterwards">
				<When Name="Report solved job" Condition="${RegistrationType} == Solved">
					<View Name="Navigate to report job afterwards" ViewName="DataEntryScreen">
						<Parameter	Name="DomainObject"			Direction="In"		Value="${CreatedJob}" />
						<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${CreatedJob.Description} == Empty" />
						<Parameter	Name="ScreenName"			Direction="In"		Value="${ScreenName}" />
					</View>
				</When>

				<Otherwise Name="Report non-solved job">
					<View Name="Navigate to default screen for job" ViewName="DataEntryScreen">
						<Parameter	Name="DomainObject"			Direction="In"		Value="${CreatedJob}" />
						<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${CreatedJob.Description} == Empty" />
					</View>
				</Otherwise>
			</Choose>
		</When>
	</Execution>
</Workflow>