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

ActionField1842

Beschrijving: Update Nextcountdate for new ABCCode on Article or ArticleSite. Custom: Nee

Propertiesbewerken

Property Type Accessor
DomainObject DomainObject Root

XMLbewerken

<Workflow Name="ActionField1842" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Update Nextcountdate for new ABCCode on Article or ArticleSite.</Description>
	<Properties>
		<Property	Name="DomainObject"	Type="DomainObject"	Accessor="Root"		Direction="In"						Comment="Article or ArticleSite" />

		<Property	Name="AbcCode"		Type="AbcCode"		Accessor="Internal"						Default="Empty" />
		<Property	Name="Article"		Type="Article"		Accessor="Internal"						Default="Empty" />
		<Property	Name="Site"			Type="Site"			Accessor="Internal"						Default="Empty" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Assign Name="set AbcCodeId" Property="${AbcCode}" Value="${DomainObject.AbcCodeId}" />

		<When Name="AbcCode" Condition="${AbcCode} == Empty || ${AbcCode.Frequency} == Empty">
			<Stop Name="Stop" Mode="EndAll" />
		</When>

		<Choose Name="Article or ArticleSite">
			<When Name="When DomainObject is an Article" Condition="${DomainObject.EntityName} == Article">
				<Assign Name="set Article" Property="${Article}" Value="${DomainObject}" />
			</When>

			<Otherwise Name="ArticleSite">
				<Assign Name="set Article" Property="${Article}" Value="${DomainObject.Id.Article}" />
				<Assign Name="set Site" Property="${Site}" Value="${DomainObject.Id.Site}" />
			</Otherwise>
		</Choose>

		<WorkflowCall Name="ArticleWarehouseLocation_UpdateNextCountDate" WorkflowName="ArticleWarehouseLocation_UpdateNextCountDate">
			<Parameter	Name="AbcCode"	Direction="In"		Value="${AbcCode}" />
			<Parameter	Name="Article"	Direction="In"		Value="${Article}" />
			<Parameter	Name="Site"		Direction="In"		Value="${Site}" />
		</WorkflowCall>

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