Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1799
ActionField1799
Beschrijving: Change status for JobJobPlans to cancelled. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| JobJobPlan | JobJobPlan | Root |
| AskToContinue | Boolean | Optional |
XMLbewerken
<Workflow Name="ActionField1799" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change status for JobJobPlans to cancelled.</Description>
<Properties>
<Property Name="JobJobPlan" Type="JobJobPlan" Accessor="Root" Direction="In" />
<Property Name="AskToContinue" Type="Boolean" Accessor="Optional" Direction="In" Comment="Ask question before changing status" />
<Property Name="DetailLinesFound" Type="Boolean" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<WorkflowCall Name="Check linked reported faults" WorkflowName="JobInspectionLine_ValidateLinkedReportedFaults">
<Parameter Name="Action" Direction="In" Value="CancelJobJobPlan" />
<Parameter Name="JobJobPlan" Direction="In" Value="${JobJobPlan}" />
</WorkflowCall>
<When Name="jobplan added later" Condition="${JobJobPlan.Job.PmJob} != Empty">
<ForEach Name="pmjobjobplan loop" In="${JobJobPlan.Job.PmJob.PmJobJobPlans}" As="PmJobJobPlan">
<Validation Name="JobPlan from Pm Check" Condition="${PmJobJobPlan.JobPlan} != ${JobJobPlan.JobPlan}" MessageCode="3712">
<Parameter Name="Cancel" Direction="In" Value="True" />
<Parameter Name="JobPlan" Direction="In" Value="${JobJobPlan.JobPlan}" />
<Parameter Name="PmJob" Direction="In" Value="${JobJobPlan.Job.PmJob}" />
</Validation>
</ForEach>
</When>
<Assign Name="Allow deletion in JobInspectionLine_PreTrash because JobPlan is about to be cancelled" Property="#{Settings.JobJobPlan.Cancelling}" Value="True" />
<When Name="Check if JobStatus is beyond Approved" Condition="${JobJobPlan.Job.Status} != JobStatus.Created && ${JobJobPlan.Job.Status} != JobStatus.Approved">
<WorkflowCall Name="Open detail line check" WorkflowName="JobJobPlan_CheckOpenDetailLines">
<Parameter Name="JobJobPlan" Direction="In" Value="${JobJobPlan}" />
<Parameter Name="DetailLinesFound" Direction="Out" OutputProperty="${DetailLinesFound}" />
</WorkflowCall>
</When>
<When Name="Check if detail lines present" Condition="${DetailLinesFound} == True">
<ContinuationQuestion Name="Cancel despite job detail lines?" MessageCode="3685" Default="Yes">
<Parameter Name="Action" Direction="In" Value="Cancel" />
<Parameter Name="JobPlan" Direction="In" Value="${JobJobPlan.JobPlan}" />
</ContinuationQuestion>
</When>
<WorkflowCall Name="DomainObject_ChangeStatus" WorkflowName="DomainObject_ChangeStatus">
<Parameter Name="AskToContinue" Direction="In" Value="${AskToContinue}" />
<Parameter Name="DomainObject" Direction="In" Value="${JobJobPlan}" />
<Parameter Name="Status" Direction="In" Value="JobJobPlanStatus.Canceled" />
</WorkflowCall>
<UserContent Name="Post" />
</Execution>
</Workflow>