Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield656
ActionField656
Beschrijving: Copy a Job from this Job and set the original Job as ParentJob. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Job | Job | Root |
| ExtraFieldsToCopy | List[String] | Optional |
| FormName | UltimoString | Optional |
| JobContext | Context | Optional |
| OpenJobScreen | Boolean | Optional |
| NewJob | Job | Optional |
XMLbewerken
<Workflow Name="ActionField656" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Copy a Job from this Job and set the original Job as ParentJob.</Description>
<Properties>
<Property Name="Job" Type="Job" Accessor="Root" Direction="In" />
<Property Name="ExtraFieldsToCopy" Type="List[String]" Accessor="Optional" Direction="In" Comment="Indicate additional columns to be copied" />
<Property Name="FormName" Type="UltimoString" Accessor="Optional" Direction="In" Default="job301" Comment="Open this screen with the created Job" />
<Property Name="JobContext" Type="Context" Accessor="Optional" Direction="In" Default="32768" Comment="Create the Job with this context" />
<Property Name="OpenJobScreen" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="Open new screen with the created Job" />
<Property Name="NewJob" Type="Job" Accessor="Optional" Direction="Out" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Command Name="CopyJob" CommandName="Job_CopyJob">
<Parameter Name="ExtraFieldsToCopy" Direction="In" Value="${ExtraFieldsToCopy}" />
<Parameter Name="Job" Direction="In" Value="${Job}" />
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="NewJob" Direction="Out" OutputProperty="${NewJob}" />
</Command>
<WorkflowCall Name="Job CopyOperationLoss" WorkflowName="Job_CopyOperationLoss">
<Parameter Name="Job" Direction="In" Value="${NewJob}" />
</WorkflowCall>
<ChangeStatus Name="ChangeJobStatusToCreated" DomainObject="${NewJob}" NewStatus="JobStatus.Created" />
<Assign Name="Set JobParentJobId" Property="${NewJob.ParentJob}" Value="${Job}" />
</Transaction>
<UserContent Name="Post" />
<Choose Name="CheckOpenScreen">
<When Name="ScreenOpen" Condition="${OpenJobScreen} == True">
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${NewJob}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${NewJob.Description} == Empty" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</When>
<Otherwise Name="NoOpenJobScreen">
<Message Name="MSG New Job" MessageCode="0781">
<Parameter Name="Job" Direction="In" Value="${NewJob}" />
</Message>
</Otherwise>
</Choose>
</Execution>
</Workflow>