Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield982
ActionField982
Beschrijving: Link an existing Job to Change. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Change | Change | Root |
| JobContext | Context | Optional |
| SelectionListConfiguration | String | Optional |
XMLbewerken
<Workflow Name="ActionField982" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Link an existing Job to Change.</Description>
<Properties>
<Property Name="Change" Type="Change" Accessor="Root" Direction="In" />
<Property Name="JobContext" Type="Context" Accessor="Optional" Direction="In" Default="JobContext.TD" Comment="Select only Jobs with this context" />
<Property Name="SelectionListConfiguration" Type="String" Accessor="Optional" Direction="In" Comment="Jobs in CollectInput are shown with this SelectionListConfiguration" />
<Property Name="Job" Type="Job" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="Check status" Condition="${Change.Status} == ChangeStatus.InPreparation || ${Change.Status} == ChangeStatus.Expired || ${Change.Status} == ChangeStatus.Postponed || ${Change.Status} == ChangeStatus.Approved || ${Change.Status} == ChangeStatus.Active || ${Change.Status} == ChangeStatus.Operational" MessageCode="1881">
<Parameter Name="DomainObject" Direction="In" Value="${Change}" />
<Parameter Name="EntityContext" Direction="In" Value="${JobContext}" />
<Parameter Name="EntityName" Direction="In" Value="Job" />
</Validation>
<Dialog Name="SelectJobDialog" TitleCode="SELECTJOB">
<Container>
<SelectionList Name="Job" OutputProperty="${Job}" ColumnName="JobId" ViewfieldConfiguration="${SelectionListConfiguration}" Required="True" SqlWhereClause="JobContext = '${JobContext}' and JobRecStatus != '32'" />
</Container>
</Dialog>
<Transaction>
<Validation Name="Validate no Change" Condition="${Job.Change} == Empty" MessageCode="1874">
<Parameter Name="Change" Direction="In" Value="${Change}" />
<Parameter Name="Job" Direction="In" Value="${Job}" />
</Validation>
<WorkflowCall Name="Job_CopyChange" WorkflowName="Job_CopyChange">
<Parameter Name="Change" Direction="In" Value="${Change}" />
<Parameter Name="Job" Direction="In" Value="${Job}" />
</WorkflowCall>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>