Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1658
ActionField1658
Beschrijving: Cancel a LockoutTagoutRequestLine Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| LockoutTagoutRequestLine | LockoutTagoutRequestLine | Root |
| IsReasonMandatory | Boolean | Optional |
| ShowReasonDialog | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1658" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Cancel a LockoutTagoutRequestLine</Description>
<Properties>
<Property Name="LockoutTagoutRequestLine" Type="LockoutTagoutRequestLine" Accessor="Root" Direction="In" Comment="This line should be canceled." />
<Property Name="IsReasonMandatory" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="Set to False to make the cancelation reason optional." />
<Property Name="ShowReasonDialog" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="Set to False to skip the dialog to enter the cancelation reason." />
<Property Name="DomainObject" Type="DomainObject?" Accessor="Internal" />
<Property Name="EnteredReason" Type="UltimoString" Accessor="Internal" Comment="(Optional) Cancelation reason provided through dialog." />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Choose Name="Act on the request status">
<When Name="if status is not requested, bail out" Condition="${LockoutTagoutRequestLine.LockoutTagoutRequest.Status} != LockoutTagoutRequestStatus.Requested">
<Stop Name="Stop" Mode="EndCurrent" />
</When>
<Otherwise Name="status is right">
<When Name="should we show the dialog?" Condition="${ShowReasonDialog} == True">
<WorkflowCall Name="Dialog_AskForCancelationReason" WorkflowName="Dialog_AskForCancelationReason">
<Parameter Name="IsReasonMandatory" Direction="In" Value="${IsReasonMandatory}" />
<Parameter Name="EnteredReason" Direction="Out" OutputProperty="${EnteredReason}" />
</WorkflowCall>
</When>
<Transaction>
<Assign Name="Set reason" Property="${LockoutTagoutRequestLine.StatusCanceledReason}" Value="${EnteredReason}" />
<ChangeStatus Name="Cancel the LockoutTagoutRequestLine" DomainObject="${LockoutTagoutRequestLine}" NewStatus="LockoutTagoutRequestLineStatus.Canceled" />
</Transaction>
</Otherwise>
</Choose>
<UserContent Name="Post" />
</Execution>
</Workflow>