Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1620
ActionField1620
Beschrijving: Round minutes to quarters of an hour Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| DomainObject | DomainObject | Root |
| PropertyToRound | UltimoString | Required |
XMLbewerken
<Workflow Name="ActionField1620" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Round minutes to quarters of an hour</Description>
<Properties>
<Property Name="DomainObject" Type="DomainObject" Accessor="Root" Direction="In" />
<Property Name="PropertyToRound" Type="UltimoString" Accessor="Required" Direction="In" />
<Property Name="Hours" Type="Decimal" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Assign Name="Get Hours to round" Property="${Hours}" Value="=#getpropertyvalue(${DomainObject}, ${PropertyToRound})" />
<Command Name="RoundNumberOfHours" CommandName="RoundNumberOfHours">
<Parameter Name="GrossHours" Direction="In" Value="${Hours}" />
<Parameter Name="RoundedHoursMinimumValueIsRoundingUnit" Direction="In" Value="True" />
<Parameter Name="RoundMethod" Direction="In" Value="Quarter" />
<Parameter Name="RoundedHours" Direction="Out" OutputProperty="${Hours}" />
</Command>
<Update Name="Save rounded Hours to DomainObject" DomainObject="${DomainObject}">
<Parameter Name="${PropertyToRound}" Direction="In" Value="${Hours}" />
</Update>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>