Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield225
ActionField225
Beschrijving: Create Job from change, used for IT. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| WorkOrder | WorkOrder | Root |
| Date | Date? | Optional |
| JobContext | Context | Optional |
| JobStatus | Status | Optional |
| PmWorkOrderSqlWhereClause | String | Optional |
XMLbewerken
<Workflow Name="ActionField225" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create Job from change, used for IT.</Description>
<Properties>
<Property Name="WorkOrder" Type="WorkOrder" Accessor="Root" Direction="In" />
<Property Name="Date" Type="Date?" Accessor="Optional" Direction="In" Comment="Calculate scheduledstartdate and targetdate of Job with this date" />
<Property Name="JobContext" Type="Context" Accessor="Optional" Direction="In" Default="JobContext.ItilChangeJob" Comment="Create the Job with this context" />
<Property Name="JobStatus" Type="Status" Accessor="Optional" Direction="In" Default="JobStatus.Active" Comment="Create the Job with this status" />
<Property Name="PmWorkOrderSqlWhereClause" Type="String" Accessor="Optional" Direction="In" Default="PmwContext = 8" Comment="Select only PmWorkOrders with this whereclause" />
<Property Name="PmJobs" Type="List[PmJob]" Accessor="Internal" />
<Property Name="PmWorkOrder" Type="PmWorkOrder" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Dialog Name="PmWorkOrder" TitleCode="CHOOSE">
<Container>
<SelectionList Name="PmWorkOrder" OutputProperty="${PmWorkOrder}" ColumnName="PmwId" ViewfieldConfiguration="Default" Required="True" SqlWhereClause="${PmWorkOrderSqlWhereClause}" />
</Container>
</Dialog>
<Transaction>
<Command Name="Initialize weeks and dates of pmworkorder" CommandName="PmWorkOrder_InitializeWeeksAndDates">
<Parameter Name="PmWorkOrder" Direction="In" Value="${PmWorkOrder}" />
<Parameter Name="Date" Direction="InOut" Value="${Date}" OutputProperty="${Date}" />
</Command>
<GetList Name="GetPmJobs" Type="PmJob" OutputProperty="${PmJobs}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmWorkOrder" Operator="=" PropertyValue="${PmWorkOrder}" />
</Filters>
</GetList>
<ForEach Name="Foreach PmJobs" In="${PmJobs}" As="PmJob">
<WorkflowCall Name="CreateJob" WorkflowName="WorkOrder_CreateJobSecondWay">
<Parameter Name="Date" Direction="In" Value="=#setdatetime(${Date}, 0, 0)" />
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="JobStatus" Direction="In" Value="${JobStatus}" />
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
<Parameter Name="WorkOrder" Direction="In" Value="${WorkOrder}" />
</WorkflowCall>
</ForEach>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>