Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1220
ActionField1220
Beschrijving: Unlink Equipment (Instrument) from ProductDossier. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| DomainObject | DomainObject | Root |
| UseProductDossierOutbound | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1220" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Unlink Equipment (Instrument) from ProductDossier.</Description>
<Properties>
<Property Name="DomainObject" Type="DomainObject" Accessor="Root" Direction="In" />
<Property Name="UseProductDossierOutbound" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="When UseProductDossierOutbound is false, the workflow uses the property ${Equipment.ProductDossier} is. When UseProductDossierOutbound is true, the workflow uses the property ${Equipment.ProductDossierOutbound}" />
<Property Name="ProductDossierToValidate" Type="ProductDossier" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Validation Name="Check domainobject" Condition="${DomainObject.EntityName} == Equipment || ${DomainObject.EntityName} == Article" MessageCode="3179" />
<Assign Name="Set ProductDossierToValidate" Property="${ProductDossierToValidate}" Value="= ${UseProductDossierOutbound} == True ? ${DomainObject.ProductDossierOutbound} : ${DomainObject.ProductDossier}" />
<Validation Name="ValidateProductDossierIsStillActive" Condition="${ProductDossierToValidate.Status} != ProductDossierStatus.Disposal && ${ProductDossierToValidate.Status} != ProductDossierStatus.Closed && ${ProductDossierToValidate.Status} != ProductDossierStatus.Canceled" MessageCode="2618">
<Parameter Name="DomainObject" Direction="In" Value="${ProductDossierToValidate}" />
<Parameter Name="RootDomainObject" Direction="In" Value="${DomainObject}" />
</Validation>
<When Name="When Equipment" Condition="${DomainObject.EntityName} == Equipment">
<Validation Name="ValidateEquipmentDoesNotHaveStatusToDelete" Condition="${DomainObject.Status} != EquipmentStatus.ToDelete" MessageCode="2618">
<Parameter Name="DomainObject" Direction="In" Value="${DomainObject}" />
<Parameter Name="RootDomainObject" Direction="In" Value="${DomainObject}" />
</Validation>
</When>
<Choose Name="Check UseProductDossierOutbound">
<When Name="True" Condition="${UseProductDossierOutbound}==True">
<Assign Name="Clear ProductDossierOutbound" Property="${DomainObject.ProductDossierOutbound}" Value="Empty" />
<Assign Name="Clear ProductDossierOutboundAddedEmployee" Property="${DomainObject.ProductDossierOutboundEmployee}" Value="Empty" />
<Assign Name="Clear ProductDossierOutboundAddedDate" Property="${DomainObject.ProductDossierOutboundDate}" Value="Empty" />
</When>
<Otherwise Name="False">
<Assign Name="Clear ProductDossier" Property="${DomainObject.ProductDossier}" Value="Empty" />
<Assign Name="Clear ProductDossierAddedEmployee" Property="${DomainObject.ProductDossierAddedEmployee}" Value="Empty" />
<Assign Name="Clear ProductDossierAddedDate" Property="${DomainObject.ProductDossierAddedDate}" Value="Empty" />
</Otherwise>
</Choose>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>