Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield382
ActionField382
Beschrijving: Change status of YearPlanScenario (new status is selected via dialog). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| YearPlanScenario | YearPlanScenario | Root |
XMLbewerken
<Workflow Name="ActionField382" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change status of YearPlanScenario (new status is selected via dialog).</Description>
<Properties>
<Property Name="YearPlanScenario" Type="YearPlanScenario" Accessor="Root" Direction="In" />
<Property Name="WorkOrderCount" Type="Int64" Accessor="Internal" />
<Property Name="YearPlanScenarioLineCount" Type="Int64" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Command Name="UpdateYearPlanScenarioLine_EquipmentExistsInAnotherYearPlan" CommandName="UpdateYearPlanScenarioLine_EquipmentExistsInAnotherYearPlan">
<Parameter Name="YearPlan" Direction="In" Value="${YearPlanScenario.Id.YearPlan}" />
</Command>
<GetCount Name="Find YearPlanScenarioLines with EquipmentExistsInAnotherYearPlan" Type="YearPlanScenarioLine" OutputProperty="${YearPlanScenarioLineCount}">
<Filters>
<PropertyFilter PropertyName="Id.YearPlanScenario" Operator="=" PropertyValue="${YearPlanScenario}" />
<PropertyFilter PropertyName="EquipmentExistsInAnotherYearPlan" Operator="=" PropertyValue="True" />
</Filters>
</GetCount>
<GetCount Name="Get a count of WorkOrders" Type="WorkOrder" OutputProperty="${WorkOrderCount}">
<Joins>
<Join Name="YearPlanScenarioLineMaintenanceMoment" Alias="yearPlanScenarioLineMaintenanceMoment" Type="InnerJoin" />
<Join Name="yearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine" Alias="yearPlanScenarioLine" Type="InnerJoin" />
<Join Name="yearPlanScenarioLine.Id.YearPlanScenario" Alias="yearPlanScenario" Type="InnerJoin" />
</Joins>
<Filters>
<PropertyFilter PropertyName="yearPlanScenario.Id" Operator="=" PropertyValue="${YearPlanScenario.Id}" />
</Filters>
</GetCount>
</Transaction>
<When Name="When one or more WorkOrders were found" Condition="${WorkOrderCount} != 0 && ${YearPlanScenario.Status} == YearPlanScenarioStatus.Definitive">
<ContinuationQuestion Name="QuestionProceedChangeStatusYearPlanScenario?" MessageCode="2023">
<Parameter Name="Action" Direction="In" Value="DoNotUnlink" />
<Parameter Name="WorkOrderCount" Direction="In" Value="${WorkOrderCount}" />
</ContinuationQuestion>
</When>
<When Name="When EquipmentExistsInAnotherYearPlan is found" Condition="${YearPlanScenarioLineCount} > 0">
<ContinuationQuestion Name="ProceedChangeStatusYearPlanScenario?" MessageCode="3291">
<Parameter Name="YearPlan" Direction="In" Value="${YearPlanScenario.Id.YearPlan}" />
</ContinuationQuestion>
</When>
<WorkflowCall Name="YearPlanScenario_ChangeStatusWithDialog" WorkflowName="YearPlanScenario_ChangeStatusWithDialog">
<Parameter Name="YearPlanScenario" Direction="In" Value="${YearPlanScenario}" />
</WorkflowCall>
<UserContent Name="Post" />
</Execution>
</Workflow>