Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield253
ActionField253
Beschrijving: Create InternalCharge for given period. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| InternalChargeCreate | InternalChargeCreate | Root |
| AlsoSelectApprovedJobs | Boolean | Optional |
| CommitAfterNumberOfRecords | Int64 | Optional |
| IncludingPreviousPeriods | Boolean | Optional |
| InternalChargeContext | Context | Optional |
| JobContext | Context | Optional |
| ReservationLineContexts | List[Context] | Optional |
| ValidateOnly | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField253" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create InternalCharge for given period.</Description>
<Properties>
<Property Name="InternalChargeCreate" Type="InternalChargeCreate" Accessor="Root" Direction="In" />
<Property Name="AlsoSelectApprovedJobs" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Also select approved Jobs" />
<Property Name="CommitAfterNumberOfRecords" Type="Int64" Accessor="Optional" Direction="In" Default="0" Comment="After how many records start a new transaction (when 0 it will be performed in one transaction)" />
<Property Name="IncludingPreviousPeriods" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="Must Previous periods also be charged or only the choosen period" />
<Property Name="InternalChargeContext" Type="Context" Accessor="Optional" Direction="In" Comment="Create the InternalCharge(InvoiceOut) with this context" />
<Property Name="JobContext" Type="Context" Accessor="Optional" Direction="In" Comment="Only search for Jobs with this context" />
<Property Name="ReservationLineContexts" Type="List[Context]" Accessor="Optional" Direction="In" Default="ReservationLineContext.None, ReservationLineContext.SpaceReservation, ReservationLineContext.Event, ReservationLineContext.Catering, ReservationLineContext.PoolCar, ReservationLineContext.Exchange" Comment="Only search for ReservationLines with these contexts" />
<Property Name="ValidateOnly" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="When ValidateOnly is true InternalCharge(InvoiceOut) wil not be created. The criteria will only be validated" />
<Property Name="InternalChargeCount" Type="Int64" Accessor="Internal" />
<Property Name="InternalChargeIdFrom" Type="UltimoString" Accessor="Internal" />
<Property Name="InternalChargeIdTill" Type="UltimoString" Accessor="Internal" />
<Property Name="Notifications" Type="List[String]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<WorkflowCall Name="InternalChargeCreate_ProposeValidate" WorkflowName="InternalChargeCreate_ProposeValidate">
<Parameter Name="InternalChargeCreate" Direction="In" Value="${InternalChargeCreate}" />
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="ReservationLineContexts" Direction="In" Value="${ReservationLineContexts}" />
<Parameter Name="Notifications" Direction="Out" OutputProperty="${Notifications}" />
</WorkflowCall>
<When Name="Setting CheckInternalCharge != None" Condition="#{UltimoSettings.CheckInternalCharge} != None">
<When Name="Notifications found" Condition="${Notifications} != Empty">
<WorkflowCall Name="Show notifications" WorkflowName="Dialog_InternalChargeCreateNotifications">
<Parameter Name="Notifications" Direction="In" Value="${Notifications}" />
</WorkflowCall>
<Stop Name="Stop" Mode="Abort" />
</When>
<When Name="ValidateOnly is true" Condition="${ValidateOnly} == True">
<Message Name="ummINVOICEPROPOSAL_VALIDATION_SUCCESS" MessageCode="0869" />
</When>
</When>
<When Name="ValidateOnly is false" Condition="${ValidateOnly} == False">
<WorkflowCall Name="InternalChargeCreate_Propose" WorkflowName="InternalChargeCreate_Propose">
<Parameter Name="AlsoSelectApprovedJobs" Direction="In" Value="${AlsoSelectApprovedJobs}" />
<Parameter Name="CommitAfterNumberOfRecords" Direction="In" Value="${CommitAfterNumberOfRecords}" />
<Parameter Name="IncludingPreviousPeriods" Direction="In" Value="${IncludingPreviousPeriods}" />
<Parameter Name="InternalChargeContext" Direction="In" Value="${InternalChargeContext}" />
<Parameter Name="InternalChargeCreate" Direction="In" Value="${InternalChargeCreate}" />
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="ReservationLineContexts" Direction="In" Value="${ReservationLineContexts}" />
<Parameter Name="InternalChargeCount" Direction="Out" OutputProperty="${InternalChargeCount}" />
<Parameter Name="InternalChargeIdFrom" Direction="Out" OutputProperty="${InternalChargeIdFrom}" />
<Parameter Name="InternalChargeIdTill" Direction="Out" OutputProperty="${InternalChargeIdTill}" />
</WorkflowCall>
<Choose Name="Number of internalcharges created">
<When Name="No internalcharges created" Condition="${InternalChargeCount} == 0">
<Message Name="ummNOJOBSFORINVOICEOUT" MessageCode="0871" />
</When>
<When Name="One internalcharge created" Condition="${InternalChargeCount} == 1">
<Message Name="ummINVOICEOUTCREATED" MessageCode="0872">
<Parameter Name="InternalChargeId" Direction="In" Value="${InternalChargeIdFrom}" />
</Message>
</When>
<Otherwise Name="More than one internalcharges created">
<Message Name="ummINVOICEOUTCREATED_FROMTILL" MessageCode="0873">
<Parameter Name="Count" Direction="In" Value="${InternalChargeCount}" />
<Parameter Name="InternalChargeIdFrom" Direction="In" Value="${InternalChargeIdFrom}" />
<Parameter Name="InternalChargeIdTill" Direction="In" Value="${InternalChargeIdTill}" />
</Message>
</Otherwise>
</Choose>
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>