Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield602
ActionField602
Beschrijving: Change status of PurchaseRequest to Closed. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| PurchaseRequest | PurchaseRequest | Root |
XMLbewerken
<Workflow Name="ActionField602" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change status of PurchaseRequest to Closed.</Description>
<Properties>
<Property Name="PurchaseRequest" Type="PurchaseRequest" Accessor="Root" Direction="In" />
<Property Name="ContinueClosing" Type="RequestResult" Accessor="Internal" />
<Property Name="PurchaseRequestLines" Type="List[PurchaseRequestLine]" Accessor="Internal" />
<Property Name="Status" Type="Status" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="GetPurchaseRequestLines" Type="PurchaseRequestLine" OutputProperty="${PurchaseRequestLines}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Tender" Operator="=" PropertyValue="${PurchaseRequest}" />
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="PurchaseRequestLineStatus.Tender" />
</Filters>
</GetList>
</Transaction>
<When Name="Decide whether to continue when purchaselines present or not » If there are PurchaseRequestLines having status tender" Condition="${PurchaseRequestLines} != Empty">
<Question Name="Continue Closing Tender If PurchaseRequestLines Are Being Rejected" Type="YesNo" MessageCode="1189" OutputProperty="${ContinueClosing}">
<Parameter Name="PurchaseRequest" Direction="In" Value="${PurchaseRequest}" />
</Question>
<When Name="Continue Closing Tender Answer » Answer Not Affirmative" Condition="${ContinueClosing} != Yes">
<Stop Name="Stop" Mode="EndAll" />
</When>
</When>
<Transaction>
<ChangeStatus Name="Set status of PurchaseRequest record to Closed" DomainObject="${PurchaseRequest}" NewStatus="PurchaseRequestStatus.Closed" />
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>