Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1217
ActionField1217
Beschrijving: Link existing Equipment with ProductDossier (select Equipment via dialog). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ProductDossier | ProductDossier | Root |
| EquipmentContexts | List[Context] | Optional |
| UseProductDossierOutbound | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1217" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Link existing Equipment with ProductDossier (select Equipment via dialog).</Description>
<Properties>
<Property Name="ProductDossier" Type="ProductDossier" Accessor="Root" Direction="In" />
<Property Name="EquipmentContexts" Type="List[Context]" Accessor="Optional" Direction="In" Default="EquipmentContext.Installation,EquipmentContext.Inventory,EquipmentContext.Fleet,EquipmentContext.ConfigurationItem,EquipmentContext.Software,EquipmentContext.Instrument" Comment="Select only Equipments with these contexts" />
<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="Equipment" Type="Equipment" Accessor="Internal" />
<Property Name="SqlWhereClause" Type="String" Accessor="Internal" Default="EqmRecStatus <> 16 AND EqmPrddId IS NULL" Comment="16 = EquipmentStatus.ToDelete" />
<Property Name="SqlWhereClauseOutbound" Type="String" Accessor="Internal" Default="EqmRecStatus NOT IN (1,16) AND EqmPrddOutboundId IS NULL" />
</Properties>
<Execution>
<When Condition="${UseProductDossierOutbound} == true">
<Assign Name="Set SqlWhereClause for Outbound" Property="${SqlWhereClause}" Value="${SqlWhereClauseOutbound}" />
</When>
<UserContent Name="Pre" />
<When Name="Name" Condition="${SqlWhereClause} != Empty">
<Assign Name="Name" Property="${SqlWhereClause}" Value="=#concat(${SqlWhereClause}, ' and ')" />
</When>
<Assign Name="Basic Sql where Clause" Property="${SqlWhereClause}" Value="${SqlWhereClause}EqmContext in (#foreach(${context} in ${EquipmentContexts})${context}#between,#end)" />
<SystemDialog Name="SelectDomainObject" DialogName="SelectDomainObject">
<Parameter Name="EntityName" Direction="In" Value="Equipment" />
<Parameter Name="SelectionListConfiguration" Direction="In" Value="Default" />
<Parameter Name="SqlWhereClause" Direction="In" Value="${SqlWhereClause}" />
<Parameter Name="DomainObject" Direction="Out" OutputProperty="${Equipment}" />
</SystemDialog>
<Transaction>
<When Name="Equipment is not empty" Condition="${Equipment} != Empty">
<WorkflowCall Name="Equipment_SetProductDossier" WorkflowName="Equipment_SetProductDossier">
<Parameter Name="Equipment" Direction="In" Value="${Equipment}" />
<Parameter Name="ProductDossier" Direction="In" Value="${ProductDossier}" />
<Parameter Name="UseProductDossierOutbound" Direction="In" Value="${UseProductDossierOutbound}" />
</WorkflowCall>
</When>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>