Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1807
ActionField1807
Beschrijving: Remove ReplacedByArticle. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Article | Article | Root |
XMLbewerken
<Workflow Name="ActionField1807" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Remove ReplacedByArticle.</Description>
<Properties>
<Property Name="Article" Type="Article" Accessor="Root" Direction="In" />
<Property Name="ObjectArticlesToDelete" Type="List[ObjectArticle]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<When Name="ReplacedByArticle was filled" Condition="${Article.ReplacedByArticle} != Empty">
<Validation Name="ValidateEmployeeAndDate" Condition="${Article.ReplacedByEmployee} == Empty && ${Article.ReplacedByDate}== Empty" MessageCode="3706">
<Parameter Name="Article" Direction="In" Value="${Article}" />
</Validation>
<ContinuationQuestion Name="Continue to remove the ReplacedByArticle" MessageCode="3701">
<Parameter Name="Article" Direction="In" Value="${Article}" />
</ContinuationQuestion>
<Transaction>
<GetList Name="Get ObjectArticlesToDelete" Type="ObjectArticle" OutputProperty="${ObjectArticlesToDelete}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<CombinedFilter FilterOperator="Or">
<PropertyFilter PropertyName="ReplacementForArticle" Operator="=" PropertyValue="${Article}" />
<PropertyFilter PropertyName="Article" Operator="=" PropertyValue="${Article}" />
</CombinedFilter>
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="ObjectArticleContext.Replacement" />
</Filters>
</GetList>
<ForEach Name="Foreach ObjectArticleToDelete" In="${ObjectArticlesToDelete}" As="ObjectArticleToDelete">
<DeleteObject Name="Delete ObjectArticlesToDelete" DomainObject="${ObjectArticleToDelete}" />
</ForEach>
<Assign Name="Assign ReplacedByArticle" Property="${Article.ReplacedByArticle}" Value="Empty" />
<Assign Name="Assign ReplacedByRemarkText" Property="${Article.ReplacedByRemarkText}" Value="Empty" />
</Transaction>
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>