Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1009
ActionField1009
Beschrijving: If no Job exists, create Job (with status Requested) for MeetingTopic and copy CostCarriers from Equipment to Job. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| MeetingTopic | MeetingTopic | Root |
| JobContext | Context | Optional |
XMLbewerken
<Workflow Name="ActionField1009" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>If no Job exists, create Job (with status Requested) for MeetingTopic and copy CostCarriers from Equipment to Job.</Description>
<Properties>
<Property Name="MeetingTopic" Type="MeetingTopic" Accessor="Root" Direction="In" />
<Property Name="JobContext" Type="Context" Accessor="Optional" Direction="In" Default="JobContext.TD" Comment="Create Job with this context" />
<Property Name="CreatedJob" Type="Job" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="ValidateJobNotPresentOnDomainObject" Condition="${MeetingTopic.Job} == Empty" MessageCode="1898">
<Parameter Name="DomainObject" Direction="In" Value="${MeetingTopic}" />
</Validation>
<WorkflowCall Name="Job_CreateAndInitialize" WorkflowName="Job_CreateAndInitialize">
<Parameter Name="Equipment" Direction="In" Value="${MeetingTopic.Equipment}" />
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="JobCreateMethod" Direction="In" Value="CreateStandard" />
<Parameter Name="Job" Direction="Out" OutputProperty="${CreatedJob}" />
</WorkflowCall>
<WorkflowCall Name="Job_WarnIfStartOrTargetDateIsInThePast" WorkflowName="Job_WarnIfStartOrTargetDateIsInThePast">
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</WorkflowCall>
<Transaction>
<When Name="When Equipment is not empty" Condition="${MeetingTopic.Equipment} != Empty">
<Command Name="Job_FindDepartmentCostCenterAndCustomer" CommandName="Job_FindDepartmentCostCenterAndCustomer">
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</Command>
</When>
<ChangeStatus Name="ChangeStatusToRequested" DomainObject="${CreatedJob}" NewStatus="JobStatus.Requested" />
<Assign Name="Assign description from MeetingTopic grid to newly created Job" Property="${CreatedJob.ReportText}" Value="#contextdescription_capital(${MeetingTopic.Meeting}) ${MeetingTopic.Meeting.Description}:#{SpecialCharacters.NewLine}${MeetingTopic.Text}" />
<Assign Name="Assign newly created Job to MeetingTopic" Property="${MeetingTopic.Job}" Value="${CreatedJob}" />
<Assign Name="Assign MeetingTopic to newly created Job" Property="${CreatedJob.MeetingTopic}" Value="${MeetingTopic}" />
</Transaction>
<UserContent Name="Post" />
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${CreatedJob}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${CreatedJob.Description} == Empty" />
</View>
</Execution>
</Workflow>