Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield414
ActionField414
Beschrijving: Change start year of SpaceMaintenances. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| UsedContext | Context | Required |
| Company | Company | Optional |
XMLbewerken
<Workflow Name="ActionField414" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change start year of SpaceMaintenances.</Description>
<Properties>
<Property Name="UsedContext" Type="Context" Accessor="Required" Direction="In" Comment="Change only SpaceMaintenances with this context (YearPlanContext.LongTermMaintenancePlan(32) or YearPlanContext.LongTermAssetPlan(64))" />
<Property Name="Company" Type="Company" Accessor="Optional" Direction="In" Default="#{Company}" />
<Property Name="RecalculateCoststructure" Type="RequestResult" Accessor="Internal" />
<Property Name="SpacePlanYear" Type="Int32" Accessor="Internal" />
<Property Name="UsedStartYearPlan" Type="Int16" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Choose Name="ChooseSetUsedProperties">
<When Name="WhenSetUsedPropertiesLtap" Condition="${UsedContext} == YearPlanContext.LongTermAssetPlan">
<Assign Name="SetStartSpacePlanYearLtap" Property="${UsedStartYearPlan}" Value="${Company.StartLtapSpaceYearPlan}" />
<Dialog Name="DialogLtap" TitleCode="GLOBALYEARLTAP">
<Container>
<Number Name="SpacePlanYear" Value="${UsedStartYearPlan}" OutputProperty="${SpacePlanYear}" ColumnName="CompStartLtapSpaceYearPlan" ViewfieldConfiguration="LTAP" />
</Container>
</Dialog>
</When>
<When Name="WhenSetUsedPropertiesMjop" Condition="${UsedContext} == YearPlanContext.LongTermMaintenancePlan">
<Assign Name="SetStartSpacePlanYearMjop" Property="${UsedStartYearPlan}" Value="${Company.StartSpacePlanYear}" />
<Dialog Name="DialogMjop" TitleCode="GLOBALYEAR">
<Container>
<Number Name="SpacePlanYear" Value="${UsedStartYearPlan}" OutputProperty="${SpacePlanYear}" ColumnName="CompStartSpacePlanYear" ViewfieldConfiguration="Default" />
</Container>
</Dialog>
</When>
</Choose>
<Validation Name="OnlyContinueIfEnteredYearIsNotEqualToCurrentYear" Condition="${SpacePlanYear} != ${UsedStartYearPlan}" MessageCode="1349" />
<Validation Name="GoodYear" Condition="${SpacePlanYear} > 1950 && ${SpacePlanYear} < 2100" MessageCode="1026" />
<Choose Name="QuestionDependsOnContext">
<When Name="LtapContextShowMessage" Condition="${UsedContext} == YearPlanContext.LongTermAssetPlan">
<Question Name="AskIfNeedToRecalculate" Type="YesNo" MessageCode="1253" OutputProperty="${RecalculateCoststructure}" />
</When>
<When Name="MjopContextShowMessage" Condition="${UsedContext} == YearPlanContext.LongTermMaintenancePlan">
<Question Name="AskIfNeedToRecalculate" Type="YesNo" MessageCode="1028" OutputProperty="${RecalculateCoststructure}" />
</When>
</Choose>
<When Name="ChangeStartSpacePlanYear" Condition="${RecalculateCoststructure} == Yes">
<WorkflowCall Name="SpaceMaintenance_ChangeStartYear" WorkflowName="SpaceMaintenance_ChangeStartYear">
<Parameter Name="SpacePlanYear" Direction="In" Value="${SpacePlanYear}" />
<Parameter Name="UsedContext" Direction="In" Value="${UsedContext}" />
</WorkflowCall>
<Message Name="YearChanged" MessageCode="1027" />
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>