Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1659
ActionField1659
Beschrijving: Link article to productdossier (article selection through dialog). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ProductDossier | ProductDossier | Root |
| ArticleContexts | List[Context] | Optional |
| UseProductDossierOutbound | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1659" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Link article to productdossier (article selection through dialog).</Description>
<Properties>
<Property Name="ProductDossier" Type="ProductDossier" Accessor="Root" Direction="In" />
<Property Name="ArticleContexts" Type="List[Context]" Accessor="Optional" Direction="In" Default="ArticleContext.Standard, ArticleContext.IT, ArticleContext.Inventory" Comment="Select only articles with these contexts" />
<Property Name="UseProductDossierOutbound" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="UseProductDossierOutbound=FALSE: article is to be added. UseProductDossierOutbound=TRUE: is to be Outboundd" />
<Property Name="Article" Type="Article" Accessor="Internal" />
<Property Name="SqlWhereClause" Type="String" Accessor="Internal" Default="ArtPrddId IS NULL" />
<Property Name="SqlWhereClauseOutbound" Type="String" Accessor="Internal" Default="ArtPrddOutboundId IS NULL" />
</Properties>
<Execution>
<When Condition="${UseProductDossierOutbound} == true">
<Assign Name="Set SqlWhereClause fro Outbound" Property="${SqlWhereClause}" Value="${SqlWhereClauseOutbound}" />
</When>
<UserContent Name="Pre" />
<When Condition="${SqlWhereClause} != Empty">
<Assign Name="Prepare SqlWhereClause for concatenation" Property="${SqlWhereClause}" Value="=#concat(${SqlWhereClause}, ' AND ')" />
</When>
<Assign Name="Add article contexts to SqlWhereClause" Property="${SqlWhereClause}" Value="${SqlWhereClause}ArtContext IN (#foreach(${context} in ${ArticleContexts})${context}#between,#end)" />
<SystemDialog Name="Select article" DialogName="SelectDomainObject">
<Parameter Name="EntityName" Direction="In" Value="Article" />
<Parameter Name="SelectionListConfiguration" Direction="In" Value="Default" />
<Parameter Name="SqlWhereClause" Direction="In" Value="${SqlWhereClause}" />
<Parameter Name="DomainObject" Direction="Out" OutputProperty="${Article}" />
</SystemDialog>
<Transaction>
<When Name="Article selected" Condition="${Article} != Empty">
<WorkflowCall Name="Link article to productdossier" WorkflowName="Article_SetProductDossier">
<Parameter Name="Article" Direction="In" Value="${Article}" />
<Parameter Name="ProductDossier" Direction="In" Value="${ProductDossier}" />
<Parameter Name="UseProductDossierOutbound" Direction="In" Value="${UseProductDossierOutbound}" />
</WorkflowCall>
</When>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>