Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1722
ActionField1722
Beschrijving: Modify the ObjectDowntime record of an unplanned downtime. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ObjectDowntime | ObjectDowntime | Root |
| JobContext | List[Context] | Optional |
XMLbewerken
<Workflow Name="ActionField1722" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Modify the ObjectDowntime record of an unplanned downtime.</Description>
<Properties>
<Property Name="ObjectDowntime" Type="ObjectDowntime" Accessor="Root" Direction="In" />
<Property Name="JobContext" Type="List[Context]" Accessor="Optional" Direction="In" Default="JobContext.TD" Comment="The context of selectable jobs" />
<Property Name="EndDate" Type="DateTime?" Accessor="Internal" />
<Property Name="Job" Type="Job" Accessor="Internal" />
<Property Name="Remark" Type="UltimoString" Accessor="Internal" />
<Property Name="ShiftLogLine" Type="ShiftLogLine" Accessor="Internal" />
<Property Name="StartDate" Type="DateTime" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<WorkflowCall Name="Dialog_ModifyDowntime" WorkflowName="Dialog_ModifyDowntime">
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="ObjectDowntime" Direction="In" Value="${ObjectDowntime}" />
<Parameter Name="EndDate" Direction="Out" OutputProperty="${EndDate}" />
<Parameter Name="Job" Direction="Out" OutputProperty="${Job}" />
<Parameter Name="Remark" Direction="Out" OutputProperty="${Remark}" />
<Parameter Name="StartDate" Direction="Out" OutputProperty="${StartDate}" />
</WorkflowCall>
<Transaction>
<When Name="When EndDate is set on ObjectDowntime but returned empty from dialog" Condition="${ObjectDowntime.EndDate} != Empty && ${EndDate} == Empty">
<Assign Name="Clear SolveDate from ObjectDowntime" Property="${ObjectDowntime.SolveDate}" Value="Empty" />
<Assign Name="Clear SolveEmployee from ObjectDowntime" Property="${ObjectDowntime.SolveEmployee}" Value="Empty" />
</When>
<Assign Name="Update StartDate on ObjectDowntime" Property="${ObjectDowntime.StartDate}" Value="${StartDate}" />
<Assign Name="Update EnddDte on ObjectDowntime" Property="${ObjectDowntime.EndDate}" Value="${EndDate}" />
<Assign Name="Update Description on ObjectDowntime" Property="${ObjectDowntime.Description}" Value="${Remark}" />
<Assign Name="Update Job on ObjectDowntime" Property="${ObjectDowntime.Job}" Value="${Job}" />
<Comment><![CDATA[ if there is a shiftlogline with this ObjectDowntime, attach the job to it as well ]]></Comment>
<GetItem Name="get the ShiftLogLine" Type="ShiftLogLine" OutputProperty="${ShiftLogLine}">
<Filters>
<PropertyFilter PropertyName="ObjectDowntime" Operator="=" PropertyValue="${ObjectDowntime}" />
</Filters>
</GetItem>
<When Name="if there is such an item, attach the job" Condition="${ShiftLogLine} != Empty">
<Assign Name="attach job" Property="${ShiftLogLine.Job}" Value="${ObjectDowntime.Job}" />
</When>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>