Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield946
ActionField946
Beschrijving: Change Endate (TerminateDate) of RentableRealEstateContractLine, and delete all linked RentableRealEstateContractLineCostMutations where StartDate is greater then TerminateDate. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| RentableRealEstateContractLine | RentableRealEstateContractLine | Root |
XMLbewerken
<Workflow Name="ActionField946" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change Endate (TerminateDate) of RentableRealEstateContractLine, and delete all linked RentableRealEstateContractLineCostMutations where StartDate is greater then TerminateDate.</Description>
<Properties>
<Property Name="RentableRealEstateContractLine" Type="RentableRealEstateContractLine" Accessor="Root" Direction="In" />
<Property Name="TerminateDate" Type="Date?" Accessor="Internal" />
<Property Name="ToBeDeletedRentableRealEstateContractLineCostMutations" Type="List[RentableRealEstateContractLineCostMutation]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Dialog Name="AskTerminateDateForRentableRealEstateContractLineLine" TitleCode="TERMRENTLINE">
<Container>
<Date Name="TerminateDate" OutputProperty="${TerminateDate}" Required="True" LabelCode="TERMINATEDATE" />
</Container>
</Dialog>
<Validation Name="No enddate given" Condition="${TerminateDate} != Empty" MessageCode="1792">
<Parameter Name="RentableRealEstateContractLine" Direction="In" Value="${RentableRealEstateContractLine}" />
</Validation>
<Validation Name="Terminatedate is before Startdate" Condition="${TerminateDate} > ${RentableRealEstateContractLine.StartDate}" MessageCode="1793">
<Parameter Name="RentableRealEstateContractLine" Direction="In" Value="${RentableRealEstateContractLine}" />
</Validation>
<Transaction>
<Assign Name="Set RentableRealEstateContractLine endDate" Property="${RentableRealEstateContractLine.EndDate}" Value="${TerminateDate}" />
<GetList Name="Get future cost mutations to be deleted" Type="RentableRealEstateContractLineCostMutation" OutputProperty="${ToBeDeletedRentableRealEstateContractLineCostMutations}" OrderBy="Id" OrderDirection="Ascending" Comment="When the contractline is eneded, it is possible there are still cost mutation in the future. Delete these, so the mutation is reverted for tax administration.">
<Filters>
<CombinedFilter FilterOperator="And">
<PropertyFilter PropertyName="RentableRealEstateContractLine" Operator="=" PropertyValue="${RentableRealEstateContractLine}" />
<DateFilter PropertyName="StartDate" Operator=">" PropertyValue="${TerminateDate}" />
</CombinedFilter>
</Filters>
</GetList>
<ForEach Name="Loop cost mutations" In="${ToBeDeletedRentableRealEstateContractLineCostMutations}" As="CostMutation">
<DeleteObject Name="Delete cost mutation" DomainObject="${CostMutation}" />
</ForEach>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>