Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield1802

ActionField1802

Beschrijving: Select and insert alternative article. Custom: Nee

Propertiesbewerken

Property Type Accessor
Article Article Root

XMLbewerken

<Workflow Name="ActionField1802" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Select and insert alternative article.</Description>
	<Properties>
		<Property	Name="Article"				Type="Article"			Accessor="Root"		Direction="In" />

		<Property	Name="ArticleSelected"		Type="Article"			Accessor="Internal" />
		<Property	Name="ObjectArticleCreated"	Type="ObjectArticle"	Accessor="Internal" />
		<Property	Name="SqlWhereClause"		Type="UltimoString"		Accessor="Internal"						Default="ArtContext = 1 AND ArtId &lt;&gt; '${Article.Id}' AND ArtId not in (select ObjArtAlternativeArtId from dba.ObjectArticle where ObjArtArtId = '${Article.Id}' and ObjArtContext = 2) AND ArtId not in (select ObjArtReplacementForArtId from dba.ObjectArticle where ObjArtArtId = '${Article.Id}' and ObjArtContext = 1)" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<SystemDialog Name="DialogSelectArticleGroup" 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="${ArticleSelected}" />
		</SystemDialog>

		<Transaction>
			<Insert Name="Create ObjectArticle" ObjectType="ObjectArticle" OutputProperty="${ObjectArticleCreated}">
				<Parameter	Name="Context"				Direction="In"		Value="ObjectArticleContext.Alternative" />
				<Parameter	Name="AlternativeArticle"	Direction="In"		Value="${ArticleSelected}" />
				<Parameter	Name="Article"				Direction="In"		Value="${Article}" />
			</Insert>
		</Transaction>

		<UserContent Name="Post" />
	</Execution>
</Workflow>