Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1278
ActionField1278
Beschrijving: Add Budget(Periods) mutation. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| BudgetPeriod | BudgetPeriod | Root |
XMLbewerken
<Workflow Name="ActionField1278" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Add Budget(Periods) mutation.</Description>
<Properties>
<Property Name="BudgetPeriod" Type="BudgetPeriod" Accessor="Root" Direction="In" />
<Property Name="Budget" Type="CompanyMoney" Accessor="Internal" />
<Property Name="BudgetPeriods" Type="List[BudgetPeriod]" Accessor="Internal" />
<Property Name="CostCenter" Type="CostCenter" Accessor="Internal" Default="${BudgetPeriod.CostCenter}" />
<Property Name="CostType" Type="CostType" Accessor="Internal" />
<Property Name="ForNewCostType" Type="Boolean" Accessor="Internal" />
<Property Name="RemarkText" Type="UltimoString" Accessor="Internal" />
<Property Name="Year" Type="Int32" Accessor="Internal" Default="${BudgetPeriod.Year}" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Command Name="BudgetPeriod_ValidateAddBudgetPeriodMutation" CommandName="BudgetPeriod_ValidateAddBudgetPeriodMutation">
<Parameter Name="AllowSplit" Direction="In" Value="True" />
<Parameter Name="BudgetPeriod" Direction="In" Value="${BudgetPeriod}" />
</Command>
<Dialog Name="AddBudgetPeriodMutation" TitleCode="ADD_BUDGETPERIODMUTATION">
<Container Border="True">
<Text Name="CostCenter" Width="200" Value="${CostCenter.Id} - ${CostCenter.Description}" ReadOnly="True" LabelCode="COSTCENTER" />
<Text Name="Year" Width="200" Value="${Year}" ReadOnly="True" LabelCode="YEAR" />
<Text Name="CostType" Width="200" Visible="=(${BudgetPeriod.CostType}!= Empty)" Value="${BudgetPeriod.CostType.Id} - ${BudgetPeriod.CostType.Description}" ReadOnly="True" LabelCode="CONTEXTCOSTTYPE" />
<Container Visible="=(${BudgetPeriod.SplitForCostType} == True)">
<CheckBox Name="ForNewCostType" Value="${ForNewCostType}" OutputProperty="${ForNewCostType}" LabelCode="BUDGET_FORNEWCOSTTYPE" />
<SelectionList Name="SelCostType" Width="400" Visible="=(${BudgetPeriod.SplitForCostType} == True)" OutputProperty="${CostType}" ColumnName="CsttId" Required="=(${BudgetPeriod.SplitForCostType} == True)" LabelCode="CONTEXTCOSTTYPE" SqlWhereClause="CsttId #if(${ForNewCostType} == True) not#end in (select bdgpcsttid from dba.budgetperiod where bdgpcontext=8 and BdgpPartOfBdgpIdForCstt = '${BudgetPeriod.Id}') and CsttId not in (select bdgpcsttid from dba.budgetperiod where bdgpcontext=64 and BdgpYear = ${BudgetPeriod.Year} and BdgpRecStatus in (1,2,4) and BdgpPartOfBdgpIdForMutation = '${BudgetPeriod.Id}')" />
</Container>
<TextArea Name="Remark" Width="450" OutputProperty="${RemarkText}" Required="False" LabelCode="REMARK" TextAreaRows="5" />
<Number Name="Budget" Width="200" OutputProperty="${Budget}" LabelCode="BUDGET_ADJUSTMENT" />
</Container>
</Dialog>
<Transaction>
<When Name="Split" Condition="${BudgetPeriod.SplitForCostType} == True">
<When Name="NewCostType" Condition="${ForNewCostType}">
<WorkflowCall Name="CostCenter_CreateBudgetPeriodsForNewCostTypeMutation" WorkflowName="CostCenter_CreateBudgetPeriodsForNewCostTypeMutation">
<Parameter Name="CostCenter" Direction="In" Value="${CostCenter}" />
<Parameter Name="CostType" Direction="In" Value="${CostType}" />
<Parameter Name="StartYear" Direction="In" Value="${Year}" />
<Parameter Name="CreatedBudgetPeriods" Direction="Out" OutputProperty="${BudgetPeriods}" Comment="Create budgetperiods" />
</WorkflowCall>
</When>
<GetItem Name="Get Requested budgetPeriod" Type="BudgetPeriod" OutputProperty="${BudgetPeriod}">
<Filters>
<PropertyFilter PropertyName="CostType" Operator="=" PropertyValue="${CostType}" />
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="BudgetPeriodContext.CostTypeYear" />
<PropertyFilter PropertyName="PartOfBudgetPeriodForCostType" Operator="=" PropertyValue="${BudgetPeriod}" />
</Filters>
</GetItem>
</When>
<Command Name="BudgetPeriod_CreateOrUpdatePeriods" CommandName="BudgetPeriod_CreateOrUpdatePeriods">
<Parameter Name="Budget" Direction="In" Value="${Budget}" />
<Parameter Name="BudgetPeriod" Direction="In" Value="${BudgetPeriod}" />
<Parameter Name="CostCenter" Direction="In" Value="${CostCenter}" />
<Parameter Name="CostType" Direction="In" Value="${CostType}" />
<Parameter Name="CreateBudgetMutation" Direction="In" Value="True" />
<Parameter Name="RemarkText" Direction="In" Value="${RemarkText}" />
<Parameter Name="StartYear" Direction="In" Value="${Year}" />
<Parameter Name="CreatedBudgetPeriods" Direction="Out" OutputProperty="${BudgetPeriods}" Comment="Create budgetperiods" />
</Command>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>