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

ActionField1721

Beschrijving: Solve unplanned downtime, creating a job for after the fact if needed. Custom: Nee

Propertiesbewerken

Property Type Accessor
ObjectDowntime ObjectDowntime Root
ComponentContext Context Optional
ComponentProblemContext Context Optional
EquipmentContext List[Context] Optional
FailTypeContext Context Optional
FormName String Optional
JobContext Context Optional
ProcessFunctionContext List[Context] Optional
RemedyContext Context Optional

XMLbewerken

<Workflow Name="ActionField1721" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Solve unplanned downtime, creating a job for after the fact if needed.</Description>
	<Properties>
		<Property	Name="ObjectDowntime"			Type="ObjectDowntime"	Accessor="Root"		Direction="In" />

		<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="FormName"					Type="String"			Accessor="Optional"	Direction="In"		Default="JOB14"																																		Comment="The form that will be opened with the job just created" />
		<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="CreatedJob"				Type="Job"				Accessor="Internal" />
		<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>

		<WorkflowCall Name="ObjectDowntime_Solve" WorkflowName="ObjectDowntime_Solve">
			<Parameter	Name="ComponentContext"			Direction="In"		Value="${ComponentContext}" />
			<Parameter	Name="ComponentProblemContext"	Direction="In"		Value="${ComponentProblemContext}" />
			<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="${ObjectDowntime}" />
			<Parameter	Name="ProcessFunctionContext"	Direction="In"		Value="${ProcessFunctionContext}" />
			<Parameter	Name="RemedyContext"			Direction="In"		Value="${RemedyContext}" />
			<Parameter	Name="CreatedJob"				Direction="Out"											OutputProperty="${CreatedJob}" />
		</WorkflowCall>

		<UserContent Name="Post" />

		<When Name="Check UseDialog" Condition="${UseDialog} == False &amp;&amp; ${CreatedJob} != Empty">
			<View Name="OpenScreen" ViewName="DataEntryScreen">
				<Parameter	Name="DomainObject"			Direction="In"		Value="${CreatedJob}" />
				<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${CreatedJob.Description} == Empty" />
				<Parameter	Name="ScreenName"			Direction="In"		Value="${FormName}" />
			</View>
		</When>
	</Execution>
</Workflow>