Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield1815

ActionField1815

Beschrijving: Delete a JobJobPlan (Product). Custom: Nee

Propertiesbewerken

Property Type Accessor
JobJobPlan JobJobPlan Root

XMLbewerken

<Workflow Name="ActionField1815" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Delete a JobJobPlan (Product).</Description>
	<Properties>
		<Property	Name="JobJobPlan"				Type="JobJobPlan"				Accessor="Root"		Direction="In" />

		<Property	Name="DetailLinesFound"			Type="Boolean"					Accessor="Internal" />
		<Property	Name="FinishedInspectionLines"	Type="List[JobInspectionLine]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="Check linked reported faults" WorkflowName="JobInspectionLine_ValidateLinkedReportedFaults">
			<Parameter	Name="Action"		Direction="In"		Value="Remove" />
			<Parameter	Name="JobJobPlan"	Direction="In"		Value="${JobJobPlan}" />
		</WorkflowCall>

		<When Name="Check if JobStatus is beyond Approved" Condition="${JobJobPlan.Job.Status} != JobStatus.Created &amp;&amp; ${JobJobPlan.Job.Status} != JobStatus.Approved">
			<Validation Name="JobJobPlanFromPM" Condition="${JobJobPlan.Job.PmJob} == Empty" MessageCode="3733">
				<Parameter	Name="Cancel"	Direction="In"		Value="False" />
				<Parameter	Name="JobPlan"	Direction="In"		Value="${JobJobPlan.JobPlan}" />
				<Parameter	Name="PmJob"	Direction="In"		Value="${JobJobPlan.Job.PmJob}" />
			</Validation>

			<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 Name="Detail lines found" Condition="${DetailLinesFound} == True">
				<ContinuationQuestion Name="ContinueDespiteOpenDetailLines" MessageCode="3726">
					<Parameter	Name="Action"	Direction="In"		Value="Delete" />
					<Parameter	Name="JobPlan"	Direction="In"		Value="${JobJobPlan.JobPlan}" />
				</ContinuationQuestion>
			</When>

			<Transaction>
				<GetList Name="Inspectionlines that should be kept" Type="JobInspectionLine" OutputProperty="${FinishedInspectionLines}" OrderBy="Id" OrderDirection="Ascending">
					<Filters>
						<PropertyFilter	PropertyName="Id.Job"	Operator="="		PropertyValue="${JobJobPlan.Job}" />
						<InFilter PropertyName="Status" Values="JobInspectionLineStatus.Skipped, JobInspectionLineStatus.Completed, JobInspectionLineStatus.Finished" />
					</Filters>
				</GetList>
			</Transaction>

			<ForEach Name="Remove JobJobPlan connection" In="${FinishedInspectionLines}" As="InspectionLine">
				<Assign Name="JobJobPlan connection" Property="${InspectionLine.JobJobPlan}" Value="Empty" />
			</ForEach>
		</When>

		<Assign Name="Allow deletion in JobInspectionLine_PreTrash because JobPlan is about to be cancelled" Property="#{Settings.JobJobPlan.Cancelling}" Value="True" />

		<WorkflowCall Name="DeleteObject" WorkflowName="DomainObject_Delete">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${JobJobPlan}" />
		</WorkflowCall>

		<UserContent Name="Post" />
	</Execution>
</Workflow>