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

ActionField1726

Beschrijving: Change status of ShiftLogLine to Closed. Custom: Nee

Propertiesbewerken

Property Type Accessor
ShiftLogLine ShiftLogLine Root
AskToContinue Boolean Optional
ComponentContext Context Optional
ComponentProblemContext Context Optional
EquipmentContext List[Context] Optional
FailTypeContext Context Optional
JobContext Context Optional
ProcessFunctionContext List[Context] Optional
RemedyContext Context Optional
ScreenName String Optional
ShowLastScreen Boolean Optional

XMLbewerken

<Workflow Name="ActionField1726" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change status of ShiftLogLine to Closed.</Description>
	<Properties>
		<Property	Name="ShiftLogLine"				Type="ShiftLogLine"		Accessor="Root"		Direction="In" />

		<Property	Name="AskToContinue"			Type="Boolean"			Accessor="Optional"	Direction="In"		Default="False"																																		Comment="Ask question before changing status" />
		<Property	Name="ComponentContext"			Type="Context"			Accessor="Optional"	Direction="In"		Default="ComponentContext.TS" />
		<Property	Name="ComponentProblemContext"	Type="Context"			Accessor="Optional"	Direction="In"		Default="ComponentProblemContext.TS" />
		<Property	Name="EquipmentContext"			Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="EquipmentContext.Installation"																												Comment="Filter the Equipment on the context provided" />
		<Property	Name="FailTypeContext"			Type="Context"			Accessor="Optional"	Direction="In"		Default="FailTypeContext.Standard" />
		<Property	Name="JobContext"				Type="Context"			Accessor="Optional"	Direction="In"		Default="JobContext.TD"																																Comment="Create a Job with the context provided" />
		<Property	Name="ProcessFunctionContext"	Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="ProcessFunctionContext.ProcessFunction"																									Comment="Filter the ProcessFunction on the context provided" />
		<Property	Name="RemedyContext"			Type="Context"			Accessor="Optional"	Direction="In"		Default="RemedyContext.TS" />
		<Property	Name="ScreenName"				Type="String"			Accessor="Optional"	Direction="In"		Default="JOB14"																																		Comment="Screen to open when creating job when downtime is solved through closing the ShiftLogLine" />
		<Property	Name="ShowLastScreen"			Type="Boolean"			Accessor="Optional"	Direction="In"		Default="False"																																		Comment="ShowLast screen after changing status" />

		<Property	Name="CreatedJob"				Type="Job"				Accessor="Internal" />
		<Property	Name="EndDate"					Type="DateTime"			Accessor="Internal"																																											Comment="EndDate of ObjectDowntime" />
		<Property	Name="UseDialog"				Type="Boolean"			Accessor="Internal"						Default="=#settingenabled(Job, ${JobContext}, Job.UseDialogWhenReporting) &amp;&amp; #getsetting(Job, ${JobContext}, Job.UseDialogWhenReporting)" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="It is a selfservice user" Condition="#{User.DatabaseUserType} == SelfService">
			<Assign Name="Selfservice users must use dialog" Property="${UseDialog}" Value="True" />
		</When>

		<When Name="When this is an unscheduled shift log line for a downtime" Condition="${ShiftLogLine.ObjectDowntime} != Empty &amp;&amp; ${ShiftLogLine.ScheduledEndDate} == Empty">
			<When Name="When ObjectDowntime has no EndDate yet" Condition="${ShiftLogLine.ObjectDowntime.EndDate} == Empty" Comment="Prevent overwriting ObjectDowntime.EndDate">
				<WorkflowCall Name="ObjectDowntime_Solve" WorkflowName="ObjectDowntime_Solve">
					<Parameter	Name="ComponentContext"			Direction="In"		Value="${ComponentContext}" />
					<Parameter	Name="ComponentProblemContext"	Direction="In"		Value="${ComponentProblemContext}" />
					<Parameter	Name="Equipment"				Direction="In"		Value="${ShiftLogLine.Equipment}" />
					<Parameter	Name="EquipmentContext"			Direction="In"		Value="${EquipmentContext}" />
					<Parameter	Name="FailTypeContext"			Direction="In"		Value="${FailTypeContext}" />
					<Parameter	Name="JobContext"				Direction="In"		Value="${JobContext}" />
					<Parameter	Name="ObjectDowntime"			Direction="In"		Value="${ShiftLogLine.ObjectDowntime}" />
					<Parameter	Name="ProcessFunctionContext"	Direction="In"		Value="${ProcessFunctionContext}" />
					<Parameter	Name="RemedyContext"			Direction="In"		Value="${RemedyContext}" />
					<Parameter	Name="CreatedJob"				Direction="Out"												OutputProperty="${CreatedJob}" />
				</WorkflowCall>
			</When>
		</When>

		<WorkflowCall Name="DomainObject_ChangeStatus" WorkflowName="DomainObject_ChangeStatus">
			<Parameter	Name="AskToContinue"	Direction="In"		Value="${AskToContinue}" />
			<Parameter	Name="DomainObject"		Direction="In"		Value="${ShiftLogLine}" />
			<Parameter	Name="Status"			Direction="In"		Value="ShiftLogLineStatus.Closed" />
		</WorkflowCall>

		<UserContent Name="Post" />

		<Choose Name="Screen to navigate to">
			<When Name="Downtime is registered" Condition="${ShiftLogLine.ObjectDowntime} != Empty &amp;&amp; ${CreatedJob} != Empty &amp;&amp; ${UseDialog} == False">
				<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>


			<When Name="Show Last Screen" Condition="${ShowLastScreen} == True">
				<View Name="Back" ViewName="Back">
					<Parameter	Name="ShowLast"	Direction="In"		Value="1" />
				</View>
			</When>
		</Choose>
	</Execution>
</Workflow>