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

ActionField386

Beschrijving: View Maintenance YearPlan (via *.xlsm file). Custom: Nee

Propertiesbewerken

Property Type Accessor
YearPlanScenario YearPlanScenario Root
GotoJobScreen Boolean Optional
LongTermAssetHideEmptyObjects Boolean Optional
LongTermAssetMaintenanceHistoryManagement Boolean Optional
LongTermAssetShowMaintenanceState Boolean Optional

XMLbewerken

<Workflow Name="ActionField386" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>View Maintenance YearPlan (via *.xlsm file).</Description>
	<Properties>
		<Property	Name="YearPlanScenario"								Type="YearPlanScenario"			Accessor="Root"		Direction="In" />

		<Property	Name="GotoJobScreen"								Type="Boolean"					Accessor="Optional"	Direction="In"		Default="False"	Comment="Not in use" />
		<Property	Name="LongTermAssetHideEmptyObjects"				Type="Boolean"					Accessor="Optional"	Direction="In"		Default="False"	Comment="Not in use" />
		<Property	Name="LongTermAssetMaintenanceHistoryManagement"	Type="Boolean"					Accessor="Optional"	Direction="In"		Default="True"	Comment="Not in use" />
		<Property	Name="LongTermAssetShowMaintenanceState"			Type="Boolean"					Accessor="Optional"	Direction="In"		Default="True"	Comment="Not in use" />

		<Property	Name="OutFileName"									Type="UltimoString"				Accessor="Internal" />
		<Property	Name="Output"										Type="TextDocumentContainer"	Accessor="Internal" />
		<Property	Name="ScenarioLineCount"							Type="Int64"					Accessor="Internal" />
		<Property	Name="YearPlanScenarioFilter"						Type="Dictionary[String]"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Assign Name="Set StartYearPriceLevel" Property="${YearPlanScenario.ProviderMutationDate}" Value="#{Environment.CurrentDateTime}" />

			<When Name="When LTap context" Condition="${YearPlanScenario.Context} == YearPlanScenarioContext.LongTermAssetPlan">
				<Assign Name="Set LtapStartYearPriceLevel" Property="${YearPlanScenario.LtapStartYearPriceLevel}" Value="#{Company.StartLtapSpaceYearPlan}" />
			</When>

			<When Name="When mjop context" Condition="${YearPlanScenario.Context} == YearPlanScenarioContext.LongTermMaintenancePlan">
				<Assign Name="Set StartYearPriceLevel" Property="${YearPlanScenario.StartYearPriceLevel}" Value="#{Company.StartSpacePlanYear}" />
			</When>
		</Transaction>

		<When Name="CalcScenarioLinesIfStatusIsConceptOrUpdatable » CheckStatus" Condition="${YearPlanScenario.Status} == YearPlanScenarioStatus.Concept || ${YearPlanScenario.Status} == YearPlanScenarioStatus.Updatable">
			<WorkflowCall Name="CreateScenarioLines" WorkflowName="YearPlanScenario_CreateScenarioLines">
				<Parameter	Name="YearPlanScenario"	Direction="In"		Value="${YearPlanScenario}" />
			</WorkflowCall>
		</When>

		<Transaction>
			<GetCount Name="GetScenarioLineCount" Type="YearPlanScenarioLine" OutputProperty="${ScenarioLineCount}">
				<Filters>
					<PropertyFilter	PropertyName="Id.YearPlanScenario"	Operator="="		PropertyValue="${YearPlanScenario}" />
				</Filters>
			</GetCount>
		</Transaction>

		<Choose Name="ShowPlannerIfScenarioLinesWereFound">
			<When Name="AnyScenarioLinesFound" Condition="${ScenarioLineCount} &gt; 0">
				<Choose Name="ChooseLongTermAssetYearPlanScenarioScheduler">
					<When Name="WhenLongTermAssetYearPlanScenarioScheduler" Condition="${YearPlanScenario.Context} == YearPlanScenarioContext.LongTermAssetPlan">
						<Assign Name="OutFileName" Property="${OutFileName}" Value="YearPlanScenario_${YearPlanScenario.Id.YearPlan.Id}_${YearPlanScenario.Id.LineId}_Export.xlsm" />

						<Transaction>
							<Command Name="SpaceMaintenance_CreateExcelReportLtap" CommandName="SpaceMaintenance_CreateExcelReportLtap">
								<Parameter	Name="InFileName"		Direction="In"		Value="LtapScenarioPlanner.xlsm" />
								<Parameter	Name="OutFileName"		Direction="In"		Value="${OutFileName}" />
								<Parameter	Name="YearPlanScenario"	Direction="In"		Value="${YearPlanScenario}" />
							</Command>
						</Transaction>

						<View Name="View document" ViewName="ExternalDocumentViewer">
							<Parameter	Name="Download"	Direction="In"		Value="True" />
							<Parameter	Name="FileName"	Direction="In"		Value="Temp\${OutFileName}" />
						</View>

						<DeleteFile Name="Delete File" FileName="Temp\${OutFileName}" />
					</When>

					<Otherwise Name="OtherwiseDefaultYearPlanScenarioScheduler">
						<Assign Name="OutFileName" Property="${OutFileName}" Value="YearPlanScenario_${YearPlanScenario.Id.YearPlan.Id}_${YearPlanScenario.Id.LineId}_Export.xlsm" />

						<Transaction IncludeTrashedObjects="True">
							<Command Name="SpaceMaintenance_CreateExcelReportMjop" CommandName="SpaceMaintenance_CreateExcelReportMjop">
								<Parameter	Name="InFileName"		Direction="In"		Value="MjopScenarioPlanner.xlsm" />
								<Parameter	Name="OutFileName"		Direction="In"		Value="${OutFileName}" />
								<Parameter	Name="YearPlanScenario"	Direction="In"		Value="${YearPlanScenario}" />
							</Command>
						</Transaction>

						<View Name="View document" ViewName="ExternalDocumentViewer">
							<Parameter	Name="Download"	Direction="In"		Value="True" />
							<Parameter	Name="FileName"	Direction="In"		Value="Temp\${OutFileName}" />
						</View>

						<DeleteFile Name="Delete File" FileName="Temp\${OutFileName}" />
					</Otherwise>
				</Choose>
			</When>

			<Otherwise Name="InformUser">
				<Message Name="ShowNothingToDisplayMessage" MessageCode="1201" />
			</Otherwise>
		</Choose>
	</Execution>
</Workflow>