Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield106
ActionField106
Beschrijving: Create Purchase with status Active for this ArticleSite and open the created Purchase. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ArticleSite | ArticleSite | Root |
| FormName | UltimoString | Optional |
| PurchaseContext | Context | Optional |
XMLbewerken
<Workflow Name="ActionField106" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create Purchase with status Active for this ArticleSite and open the created Purchase.</Description>
<Properties>
<Property Name="ArticleSite" Type="ArticleSite" Accessor="Root" Direction="In" />
<Property Name="FormName" Type="UltimoString" Accessor="Optional" Direction="In" Default="pch02" Comment="Open this screen with the created Purchase" />
<Property Name="PurchaseContext" Type="Context" Accessor="Optional" Direction="In" Comment="Create the Purchase with this context" />
<Property Name="Purchase" Type="Purchase" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="Stocklevel per site" Condition="#{UltimoSettings.StockLevelPerSite} == True" MessageCode="0525" />
<WorkflowCall Name="Create Purchase" WorkflowName="Article_CreatePurchase">
<Parameter Name="Article" Direction="In" Value="${ArticleSite.Id.Article}" />
<Parameter Name="ArticleSite" Direction="In" Value="${ArticleSite}" />
<Parameter Name="PurchaseContext" Direction="In" Value="${PurchaseContext}" />
<Parameter Name="PurchaseStatus" Direction="In" Value="PurchaseStatus.Active" />
<Parameter Name="Purchase" Direction="Out" OutputProperty="${Purchase}" />
</WorkflowCall>
<UserContent Name="Post" />
<Message Name="New Purchase" MessageCode="0519">
<Parameter Name="Article" Direction="In" Value="${ArticleSite.Id.Article}" />
<Parameter Name="Purchase" Direction="In" Value="${Purchase}" />
</Message>
<View Name="Open form" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${Purchase}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${Purchase.Description} == Empty" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</Execution>
</Workflow>