Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield015
ActionField015
Beschrijving: Set preferred Vendor for an ArticleSite (ArticleSiteVendor). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| PreferredVendor | ArticleSiteVendor | Root |
XMLbewerken
<Workflow Name="ActionField015" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Set preferred Vendor for an ArticleSite (ArticleSiteVendor).</Description>
<Properties>
<Property Name="PreferredVendor" Type="ArticleSiteVendor" Accessor="Root" Direction="In" />
<Property Name="Answer" Type="RequestResult" Accessor="Internal" />
<Property Name="Count" Type="Int64" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Choose Name="Preferred">
<When Name="Is preferred vendor" Condition="${PreferredVendor.Preference} == True">
<WorkflowCall Name="ArticleSiteVendor_GetPreferredVendor" WorkflowName="ArticleSiteVendor_GetPreferredVendor">
<Parameter Name="PreferredVendor" Direction="In" Value="${PreferredVendor}" />
</WorkflowCall>
</When>
<Otherwise Name="Not preffered vendor">
<Transaction>
<GetCount Name="Filter ArticleSiteVendors" Type="ArticleSiteVendor" OutputProperty="${Count}">
<Filters>
<PropertyFilter PropertyName="Id.ArticleSite" Operator="=" PropertyValue="${PreferredVendor.Id.ArticleSite}" />
<PropertyFilter PropertyName="Preference" Operator="=" PropertyValue="True" />
</Filters>
</GetCount>
</Transaction>
<When Name="No Preferred Vendor" Condition="${Count} == 0">
<Question Name="Continue without preferred sitevendor" Type="YesNo" MessageCode="2329" OutputProperty="${Answer}">
<Parameter Name="Site" Direction="In" Value="${PreferredVendor.Id.ArticleSite.Id.Site}" />
</Question>
<When Name="Continue No" Condition="${Answer} == No">
<Transaction>
<Assign Name="Reset Preference" Property="${PreferredVendor.Preference}" Value="True" />
</Transaction>
</When>
</When>
</Otherwise>
</Choose>
<UserContent Name="Post" />
</Execution>
</Workflow>