Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield699
ActionField699
Beschrijving: Make the passed LongTermAsset part of another LongTermAsset. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| LongTermAsset | LongTermAsset | Root |
XMLbewerken
<Workflow Name="ActionField699" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Make the passed LongTermAsset part of another LongTermAsset.</Description>
<Properties>
<Property Name="LongTermAsset" Type="LongTermAsset" Accessor="Root" Direction="In" />
<Property Name="NewLongTermAssetLink" Type="LongTermAsset" Accessor="Internal" />
<Property Name="PreviousLongTermAssetLink" Type="LongTermAsset" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Dialog Name="InputPartOfLongTermAsset" TitleCode="PARTOFLTAP">
<Container>
<SelectionList Name="LongTermAsset" OutputProperty="${NewLongTermAssetLink}" ColumnName="LtaId" Required="True" />
</Container>
</Dialog>
<Validation Name="CheckIfPartOfObjectWasChanged" Condition="${LongTermAsset.PartOfLongTermAsset} != ${NewLongTermAssetLink}" MessageCode="1353" />
<Validation Name="CheckIfPartOfObjectNotEqualToPassed" Condition="${LongTermAsset} != ${NewLongTermAssetLink}" MessageCode="1354" />
<Assign Name="StorePreviousLongTermAssetLink" Property="${PreviousLongTermAssetLink}" Value="${LongTermAsset.PartOfLongTermAsset}" />
<Transaction>
<Assign Name="StoreNewLongTermAssetLink" Property="${LongTermAsset.PartOfLongTermAsset}" Value="${NewLongTermAssetLink}" />
<AddToList Name="add to list of child objects" List="${NewLongTermAssetLink.ContainedLongTermAssetList}" Item="${LongTermAsset}" />
<WorkflowCall Name="CheckForCircularDependency" WorkflowName="LongTermAsset_CircularCheck">
<Parameter Name="LongTermAsset" Direction="In" Value="${LongTermAsset}" />
<Parameter Name="OnCircularDependencySetToLongTermAsset" Direction="In" Value="${PreviousLongTermAssetLink}" />
</WorkflowCall>
<When Name="CheckIfPreviousPartOfWasSet" Condition="${PreviousLongTermAssetLink} != Empty">
<When Name="Create space maintenance if it doesn't exist" Condition="${PreviousLongTermAssetLink.SpaceMaintenance} == Empty">
<WorkflowCall Name="CreateSpaceMaintenance" WorkflowName="LongTermAsset_CreateSpaceMaintenance">
<Parameter Name="LongTermAsset" Direction="In" Value="${PreviousLongTermAssetLink}" />
<Parameter Name="MaintenancePart" Direction="In" Value="${PreviousLongTermAssetLink.MaintenancePart}" />
<Parameter Name="SpaceMaintenance" Direction="Out" OutputProperty="${PreviousLongTermAssetLink.SpaceMaintenance}" />
</WorkflowCall>
</When>
<RemoveFromList Name="remove from previous list of child objects" List="${PreviousLongTermAssetLink.ContainedLongTermAssetList}" Item="${LongTermAsset}" />
<WorkflowCall Name="RecalculateLtapObjectTreeCosts" WorkflowName="SpaceMaintenance_UpdateTotals">
<Parameter Name="SpaceMaintenance" Direction="In" Value="${PreviousLongTermAssetLink.SpaceMaintenance}" />
</WorkflowCall>
</When>
<When Name="CheckIfNewPartOfWasSet" Condition="${NewLongTermAssetLink} != Empty">
<When Name="Create space maintenance if it doesn't exist" Condition="${NewLongTermAssetLink.SpaceMaintenance} == Empty">
<WorkflowCall Name="CreateSpaceMaintenance" WorkflowName="LongTermAsset_CreateSpaceMaintenance">
<Parameter Name="LongTermAsset" Direction="In" Value="${NewLongTermAssetLink}" />
<Parameter Name="MaintenancePart" Direction="In" Value="${NewLongTermAssetLink.MaintenancePart}" />
<Parameter Name="SpaceMaintenance" Direction="Out" OutputProperty="${NewLongTermAssetLink.SpaceMaintenance}" />
</WorkflowCall>
</When>
<WorkflowCall Name="RecalculateLtapObjectTreeCosts" WorkflowName="SpaceMaintenance_UpdateTotals">
<Parameter Name="SpaceMaintenance" Direction="In" Value="${NewLongTermAssetLink.SpaceMaintenance}" />
</WorkflowCall>
</When>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>