Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield401
ActionField401
Beschrijving: Change status of EmployeeLabourLine to Created (status must be Approved and RegistrationType must be zero). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| EmployeeLabourLine | EmployeeLabourLine | Root |
XMLbewerken
<Workflow Name="ActionField401" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change status of EmployeeLabourLine to Created (status must be Approved and RegistrationType must be zero).</Description>
<Properties>
<Property Name="EmployeeLabourLine" Type="EmployeeLabourLine" Accessor="Root" Direction="In" />
<Property Name="FormName" Type="UltimoString" Accessor="Internal" Default="empl01" />
<Property Name="OldEmployeeLabourStatus" Type="Status" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Assign Name="Remember the old status" Property="${OldEmployeeLabourStatus}" Value="${EmployeeLabourLine.Id.EmployeeLabour.Status}" />
<When Name="RegistrationTypeCheck » RegistrationTypeIsZero" Condition="${EmployeeLabourLine.RegistrationType} == 0 && ${EmployeeLabourLine.Status} == EmployeeLabourLineStatus.Approved">
<Transaction>
<ChangeStatus Name="EmployeeLabourLine" DomainObject="${EmployeeLabourLine}" NewStatus="EmployeeLabourLineStatus.Created" />
</Transaction>
</When>
<UserContent Name="Post" />
<When Name="Check status » Check Status" Condition="${OldEmployeeLabourStatus} != EmployeeLabourStatus.Created && ${EmployeeLabourLine.Status} == EmployeeLabourLineStatus.Created">
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${EmployeeLabourLine.Id.EmployeeLabour}" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</When>
</Execution>
</Workflow>