Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1020
ActionField1020
Beschrijving: Attach an existing Job (TaskPackage) to YearPlanScenarioLines of this YearPlan. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| YearPlan | YearPlan | Root |
| CheckOnJobBeingAttached | Boolean | Optional |
| GotoJobScreen | Boolean | Optional |
| Job | Job | Optional |
XMLbewerken
<Workflow Name="ActionField1020" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Attach an existing Job (TaskPackage) to YearPlanScenarioLines of this YearPlan.</Description>
<Properties>
<Property Name="YearPlan" Type="YearPlan" Accessor="Root" Direction="In" />
<Property Name="CheckOnJobBeingAttached" Type="Boolean" Accessor="Optional" Direction="In" Default="True" Comment="Check if there is already a Job linked to YearPlanScenarioLine" />
<Property Name="GotoJobScreen" Type="Boolean" Accessor="Optional" Direction="In" Comment="Open Job screen with the created Job" />
<Property Name="Job" Type="Job" Accessor="Optional" Direction="In" />
<Property Name="YearPlanScenarioLineMaintenanceMoments" Type="List[YearPlanScenarioLineMaintenanceMoment]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="Get YearPlanScenarioLineMaintenanceMoments having the property Connect set" Type="YearPlanScenarioLineMaintenanceMoment" OutputProperty="${YearPlanScenarioLineMaintenanceMoments}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.YearPlanScenarioLine.Id.YearPlanScenario.Id.YearPlan" Operator="=" PropertyValue="${YearPlan}" />
<PropertyFilter PropertyName="Connect" Operator="=" PropertyValue="True" />
</Filters>
</GetList>
</Transaction>
<Validation Name="Check whether any lines have been selected" Condition="${YearPlanScenarioLineMaintenanceMoments.Count} > 0" MessageCode="1979" />
<ForEach Name="call wf for each YearPlanScenarioLineMaintenanceMoment" In="${YearPlanScenarioLineMaintenanceMoments}" As="YearPlanScenarioLineMaintenanceMoment">
<WorkflowCall Name="YearPlanScenarioLine_AddToExistingJob" WorkflowName="YearPlanScenarioLine_AddToExistingJob">
<Parameter Name="CheckOnJobBeingAttached" Direction="In" Value="${CheckOnJobBeingAttached}" />
<Parameter Name="YearPlanScenarioLine" Direction="In" Value="${YearPlanScenarioLineMaintenanceMoment.Id.YearPlanScenarioLine}" />
<Parameter Name="Job" Direction="InOut" Value="${Job}" OutputProperty="${Job}" />
</WorkflowCall>
<Transaction>
<Assign Name="reset Connect" Property="${YearPlanScenarioLineMaintenanceMoment.Connect}" Value="False" />
<Assign Name="reset Disconnect" Property="${YearPlanScenarioLineMaintenanceMoment.Disconnect}" Value="False" />
</Transaction>
</ForEach>
<UserContent Name="Post" />
<When Name="WhenGotoJobScreen" Condition="${GotoJobScreen} == True">
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${Job}" />
</View>
</When>
</Execution>
</Workflow>