Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield200
ActionField200
Beschrijving: Create Job with status Created for Equipment or ProcessFunction. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| EquipmentOrProcessFunction | DomainObject | Root |
| CopyFlawPresents | Boolean | Optional |
| FormName | String | Optional |
| JobContext | Context | Optional |
XMLbewerken
<Workflow Name="ActionField200" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create Job with status Created for Equipment or ProcessFunction.</Description>
<Properties>
<Property Name="EquipmentOrProcessFunction" Type="DomainObject" Accessor="Root" Direction="In" />
<Property Name="CopyFlawPresents" Type="Boolean" Accessor="Optional" Direction="In" Default="False" Comment="Link ConditionFlawPresent to Job" />
<Property Name="FormName" Type="String" Accessor="Optional" Direction="In" Comment="Open this screen after the Job is created" />
<Property Name="JobContext" Type="Context" Accessor="Optional" Direction="In" Comment="Create the Job with this context" />
<Property Name="ConditionFlawPresents" Type="List[ConditionFlawPresent]" Accessor="Internal" Default="Empty" />
<Property Name="CreatedJob" Type="Job" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="List ConditionFlawPresents by Job" Type="ConditionFlawPresent" OutputProperty="${ConditionFlawPresents}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<CombinedFilter FilterOperator="And">
<WhenFilter Condition="${EquipmentOrProcessFunction.EntityName} == Equipment">
<PropertyFilter PropertyName="Equipment" Operator="=" PropertyValue="${EquipmentOrProcessFunction}" />
</WhenFilter>
<WhenFilter Condition="${EquipmentOrProcessFunction.EntityName} == ProcessFunction">
<PropertyFilter PropertyName="ProcessFunction" Operator="=" PropertyValue="${EquipmentOrProcessFunction}" />
</WhenFilter>
<PropertyEmptyFilter PropertyName="SolveJob" />
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="ConditionFlawPresentStatus.Active" />
</CombinedFilter>
</Filters>
</GetList>
</Transaction>
<Validation Name="No ConditionFlawPresents found" Condition="${CopyFlawPresents} != True || ${ConditionFlawPresents} != Empty" MessageCode="1581">
<Parameter Name="DomainObject" Direction="In" Value="${EquipmentOrProcessFunction}" />
</Validation>
<Choose Name="is this an Equipment or a ProcessFunction">
<When Name="Is this an Equiment" Condition="${EquipmentOrProcessFunction.EntityName} == Equipment">
<WorkflowCall Name="Job_CreateAndInitialize" WorkflowName="Job_CreateAndInitialize">
<Parameter Name="Equipment" Direction="In" Value="${EquipmentOrProcessFunction}" />
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="JobCreateMethod" Direction="In" Value="CreateStandard" />
<Parameter Name="Job" Direction="Out" OutputProperty="${CreatedJob}" />
</WorkflowCall>
</When>
<When Name="Is this a ProcessFunction" Condition="${EquipmentOrProcessFunction.EntityName} == ProcessFunction">
<WorkflowCall Name="Job_CreateAndInitialize" WorkflowName="Job_CreateAndInitialize">
<Parameter Name="JobContext" Direction="In" Value="${JobContext}" />
<Parameter Name="JobCreateMethod" Direction="In" Value="CreateStandard" />
<Parameter Name="ProcessFunction" Direction="In" Value="${EquipmentOrProcessFunction}" />
<Parameter Name="Job" Direction="Out" OutputProperty="${CreatedJob}" />
</WorkflowCall>
</When>
<Otherwise Name="invalid">
<Stop Name="Stop" Mode="Abort" />
</Otherwise>
</Choose>
<WorkflowCall Name="Job_WarnIfStartOrTargetDateIsInThePast" WorkflowName="Job_WarnIfStartOrTargetDateIsInThePast">
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</WorkflowCall>
<WorkflowCall Name="Job_WarnIfTargetDateIsPastSLATargetDate" WorkflowName="Job_WarnIfTargetDateIsPastSLATargetDate">
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</WorkflowCall>
<Transaction>
<Command Name="Job_FindDepartmentCostCenterAndCustomer" CommandName="Job_FindDepartmentCostCenterAndCustomer">
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</Command>
<WorkflowCall Name="Jop CopyOperationLoss" WorkflowName="Job_CopyOperationLoss">
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</WorkflowCall>
<When Name="CopyFlawPresentsChoose » CopyFlawPresentsWhen" Condition="${CopyFlawPresents} == True">
<ForEach Name="Link ConditionFlawPresents to Job" In="${ConditionFlawPresents}" As="ConditionFlawPresent">
<WorkflowCall Name="Link ConditionFlawPresent To Job" WorkflowName="ConditionFlawPresent_LinkConditionFlawPresentToJob">
<Parameter Name="ConditionFlawPresent" Direction="In" Value="${ConditionFlawPresent}" />
<Parameter Name="Job" Direction="In" Value="${CreatedJob}" />
</WorkflowCall>
</ForEach>
</When>
</Transaction>
<UserContent Name="Post" />
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${CreatedJob}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${CreatedJob.Description} == Empty" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</Execution>
</Workflow>