Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield289
ActionField289
Beschrijving: Build in an ExchangePart on a ProcessFunction (configuration item). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ProcessFunction | ProcessFunction | Root |
| EmployeeContextToSearch | List[Context] | Optional |
| EquipmentContextToSearch | List[Context] | Optional |
XMLbewerken
<Workflow Name="ActionField289" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Build in an ExchangePart on a ProcessFunction (configuration item).</Description>
<Properties>
<Property Name="ProcessFunction" Type="ProcessFunction" Accessor="Root" Direction="In" />
<Property Name="EmployeeContextToSearch" Type="List[Context]" Accessor="Optional" Direction="In" Default="EmployeeContext.Standard" Comment="Select Employee from Employees with these contexts" />
<Property Name="EquipmentContextToSearch" Type="List[Context]" Accessor="Optional" Direction="In" Default="EquipmentContext.Installation" Comment="Select Equipment from Equipments with these contexts" />
<Property Name="AutoRemark" Type="UltimoString" Accessor="Internal" />
<Property Name="EquipmentIsFeatureToggleProgressStatusEnabled" Type="Boolean" Accessor="Internal" />
<Property Name="ExchangePart" Type="Equipment" Accessor="Internal" />
<Property Name="InstallDate" Type="DateTime?" Accessor="Internal" />
<Property Name="InstalledBy" Type="Employee" Accessor="Internal" />
<Property Name="NewProgressStatus" Type="ProgressStatus" Accessor="Internal" />
<Property Name="Remark" Type="UltimoString" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<WorkflowCall Name="Dialog_ProcessFunction_BuildInExchangePart" WorkflowName="Dialog_ProcessFunction_BuildInExchangePart">
<Parameter Name="EmployeeContextToSearch" Direction="In" Value="${EmployeeContextToSearch}" />
<Parameter Name="EquipmentContextToSearch" Direction="In" Value="${EquipmentContextToSearch}" />
<Parameter Name="ProcessFunction" Direction="In" Value="${ProcessFunction}" />
<Parameter Name="ExchangePart" Direction="Out" OutputProperty="${ExchangePart}" />
<Parameter Name="InstallDate" Direction="Out" OutputProperty="${InstallDate}" />
<Parameter Name="InstalledBy" Direction="Out" OutputProperty="${InstalledBy}" />
<Parameter Name="NewProgressStatus" Direction="Out" OutputProperty="${NewProgressStatus}" />
<Parameter Name="Remark" Direction="Out" OutputProperty="${Remark}" />
</WorkflowCall>
<Transaction>
<Command Name="ProcessFunction_BuildInExchangePart" CommandName="ProcessFunction_BuildInExchangePart">
<Parameter Name="ExchangePart" Direction="In" Value="${ExchangePart}" />
<Parameter Name="InstallDate" Direction="In" Value="${InstallDate}" />
<Parameter Name="InstalledBy" Direction="In" Value="${InstalledBy}" />
<Parameter Name="ProcessFunction" Direction="In" Value="${ProcessFunction}" />
<Parameter Name="Remark" Direction="In" Value="${Remark}" />
</Command>
<Command Name="Equipment_IsFeatureToggleProgressStatusEnabled" CommandName="Equipment_IsFeatureToggleProgressStatusEnabled">
<Parameter Name="Equipment" Direction="In" Value="${ExchangePart}" />
<Parameter Name="FeatureToggleIsEnabled" Direction="Out" OutputProperty="${EquipmentIsFeatureToggleProgressStatusEnabled}" />
</Command>
<Choose>
<When Name="When feature toggle is enabled for Equipment TS" Condition="${EquipmentIsFeatureToggleProgressStatusEnabled} == True">
<Command Name="Get label to append to remark" CommandName="GetLabel">
<Parameter Name="DomainObject" Direction="In" Value="${ProcessFunction}" />
<Parameter Name="LabelCode" Direction="In" Value="CHANGESTATUS_INITIATED_FROM_BUILDIN" />
<Parameter Name="LabelValue" Direction="Out" OutputProperty="${AutoRemark}" />
</Command>
<When Name="When AutoRemark is present" Condition="${AutoRemark} != Empty">
<Assign Name="Append AutoRemark to Remark" Property="${Remark}" Value="=${Remark} != Empty ? #concat(${Remark}, '<BR>', ${AutoRemark}) : ${AutoRemark}" />
</When>
<WorkflowCall Name="Call DomainObject_ChangeProgressStatus" WorkflowName="DomainObject_ChangeProgressStatus">
<Parameter Name="DomainObject" Direction="In" Value="${ExchangePart}" />
<Parameter Name="Remark" Direction="In" Value="${Remark}" />
<Parameter Name="UseProgressStatus" Direction="In" Value="${NewProgressStatus}" />
</WorkflowCall>
</When>
<Otherwise>
<When Name="When status is not defect" Condition="${ExchangePart.Status} != EquipmentStatus.ExchangeDefect">
<ChangeStatus Name="Change status to operational" DomainObject="${ExchangePart}" NewStatus="EquipmentStatus.ExchangeOperational" />
</When>
</Otherwise>
</Choose>
</Transaction>
<When Name="Only for context Fleet" Condition="${ExchangePart.Context} == EquipmentContext.Fleet">
<WorkflowCall Name="Equipment_InformUserWhenProcessFunctionsDiffer" WorkflowName="Equipment_InformUserWhenProcessFunctionsDiffer">
<Parameter Name="Equipment" Direction="In" Value="${ExchangePart}" />
<Parameter Name="ProcessFunction" Direction="In" Value="${ProcessFunction}" />
</WorkflowCall>
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>