Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield924
ActionField924
Beschrijving: Toggle rentable or not rentable of Space (VHE). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Space | Space | Root |
XMLbewerken
<Workflow Name="ActionField924" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Toggle rentable or not rentable of Space (VHE).</Description>
<Properties>
<Property Name="Space" Type="Space" Accessor="Root" Direction="In" />
<Property Name="RentedStateTimeslotsCount" Type="Int64" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Choose Name="Check if Space is rentable or not">
<When Name="SpaceIsNotRentable" Condition="${Space.Rentable} == False">
<Validation Name="ValidateAddressIsSet" Condition="${Space.Address} != Empty" MessageCode="2236">
<Parameter Name="Space" Direction="In" Value="${Space}" />
</Validation>
<Validation Name="ValidateStartDateIsNotEmpty" Condition="${Space.RentableRealEstateStartDate} != Empty" MessageCode="1701">
<Parameter Name="Space" Direction="In" Value="${Space}" />
</Validation>
<Assign Name="Set space rentable" Property="${Space.Rentable}" Value="True" />
<WorkflowCall Name="RentableRealEstate_CreateTaxAdministrationLines" WorkflowName="RentableRealEstate_CreateTaxAdministrationLines">
<Parameter Name="RentableRealEstate" Direction="In" Value="${Space}" />
</WorkflowCall>
</When>
<Otherwise Name="Space is rentable">
<When Name="StateAgenda Exist" Condition="${Space.StateAgenda} != Empty">
<GetCount Name="CountStateTimeslotsWithStatusRented" Type="StateTimeslot" OutputProperty="${RentedStateTimeslotsCount}">
<Filters>
<PropertyFilter PropertyName="StateAgenda" Operator="=" PropertyValue="${Space.StateAgenda}" />
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="StateTimeslotStatus.Rented" />
<CombinedFilter FilterOperator="Or">
<PropertyEmptyFilter PropertyName="EndDate" />
<PropertyFilter PropertyName="EndDate" Operator=">=" PropertyValue="#{Environment.CurrentDate}" />
</CombinedFilter>
</Filters>
</GetCount>
<Validation Name="ValidateNoCurrentOrRentedPeriods" Condition="${RentedStateTimeslotsCount} == 0" MessageCode="1703">
<Parameter Name="Space" Direction="In" Value="${Space}" />
</Validation>
</When>
<Assign Name="Set space not rentable" Property="${Space.Rentable}" Value="False" />
</Otherwise>
</Choose>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>