Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield496
ActionField496
Beschrijving: Delete a ContractLineCostMutation. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ContractLineCostMutation | ContractLineCostMutation | Root |
XMLbewerken
<Workflow Name="ActionField496" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Delete a ContractLineCostMutation.</Description>
<Properties>
<Property Name="ContractLineCostMutation" Type="ContractLineCostMutation" Accessor="Root" Direction="In" />
<Property Name="ContractLineCostMutationsCount" Type="Int64" Accessor="Internal" />
<Property Name="ContractLines" Type="List[ContractLine]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<When Name="If this clcm has status concept, it can safely be removed" Condition="${ContractLineCostMutation.Status} != ContractLineCostMutationStatus.Concept">
<GetCount Name="Check how many ContractLineCostMutation lines there are for the ContractLine" Type="ContractLineCostMutation" OutputProperty="${ContractLineCostMutationsCount}">
<Filters>
<PropertyFilter PropertyName="ContractLine.Id" Operator="=" PropertyValue="${ContractLineCostMutation.ContractLine.Id}" />
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="ContractLineCostMutationStatus.Approved" />
</Filters>
</GetCount>
<Validation Name="There should be at least 2 of these lines, else one canot be removed" Condition="${ContractLineCostMutationsCount} > 1" MessageCode="1723" />
</When>
</Transaction>
<WorkflowCall Name="Delete DomainObject" WorkflowName="DomainObject_Delete">
<Parameter Name="DomainObject" Direction="In" Value="${ContractLineCostMutation}" />
<Parameter Name="ShowMessage" Direction="In" Value="True" />
</WorkflowCall>
<UserContent Name="Post" />
</Execution>
</Workflow>