Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1152
ActionField1152
Beschrijving: Search Jobs in specific period for this Project. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Project | Project | Root |
| AllowedJobContexts | List[Context] | Optional |
XMLbewerken
<Workflow Name="ActionField1152" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Search Jobs in specific period for this Project.</Description>
<Properties>
<Property Name="Project" Type="Project" Accessor="Root" Direction="In" />
<Property Name="AllowedJobContexts" Type="List[Context]" Accessor="Optional" Direction="In" Default="JobContext.TD" Comment="Search only Jobs with these contexts " />
<Property Name="AllowedJobStatuses" Type="List[Status]" Accessor="Internal" Default="JobStatus.Created,JobStatus.Approved,JobStatus.Active,JobStatus.Postponed" />
<Property Name="Jobs" Type="List[Job]" Accessor="Internal" />
<Property Name="ObjectProjects" Type="List[ObjectProject]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<WorkflowCall Name="Project_DeleteSearchResults" WorkflowName="Project_DeleteSearchResults">
<Parameter Name="Project" Direction="In" Value="${Project}" />
</WorkflowCall>
<Comment><![CDATA[Needed because otherwise objectprojects will still be used in subquery]]></Comment>
<Flush />
<Command Name="Project_SearchJobsToAddToWorkOrder" CommandName="Project_SearchJobsToAddToWorkOrder">
<Parameter Name="AllowedJobContexts" Direction="In" Value="${AllowedJobContexts}" />
<Parameter Name="AllowedJobStatuses" Direction="In" Value="${AllowedJobStatuses}" />
<Parameter Name="Project" Direction="In" Value="${Project}" />
<Parameter Name="Jobs" Direction="Out" OutputProperty="${Jobs}" />
<Parameter Name="ObjectProjects" Direction="Out" OutputProperty="${ObjectProjects}" />
</Command>
</Transaction>
<UserContent Name="Post" />
<Choose Name="Message">
<When Name="Nothing" Condition="${Jobs} == Empty || ${Jobs.Count} == 0">
<Message Name="NoJobsFound" MessageCode="2378">
<Parameter Name="Project" Direction="In" Value="${Project}" />
</Message>
</When>
<Otherwise Name="Found">
<Message Name="JobsFound" MessageCode="2377">
<Parameter Name="Jobs" Direction="In" Value="${Jobs}" />
</Message>
</Otherwise>
</Choose>
</Execution>
</Workflow>