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

ActionField728

Beschrijving: Set ObjectInspectionLine.Done based on score or not applicable Custom: Nee

Propertiesbewerken

Property Type Accessor
ObjectInspectionLine ObjectInspectionLine Root

XMLbewerken

<Workflow Name="ActionField728" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Set ObjectInspectionLine.Done based on score or not applicable</Description>
	<Properties>
		<Property	Name="ObjectInspectionLine"	Type="ObjectInspectionLine"	Accessor="Root"		Direction="In" />

		<Property	Name="Date"					Type="DateTime"				Accessor="Internal"						Default="#{Environment.CurrentDateTime}" />
		<Property	Name="QuestionResult"		Type="RequestResult"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="Not Applicable with jobs" Condition="${ObjectInspectionLine.NotApplicable} == True &amp;&amp; ${ObjectInspectionLine.NumberOfJobs} &gt; 0">
			<Question Name="Continue" Type="YesNo" MessageCode="0634" OutputProperty="${QuestionResult}">
				<Parameter	Name="ObjectInspectionLine"	Direction="In"		Value="${ObjectInspectionLine}" />
			</Question>

			<When Name="Answer is no" Condition="${QuestionResult} == No">
				<Transaction>
					<Assign Name="reset not applicable" Property="${ObjectInspectionLine.NotApplicable}" Value="False" />
				</Transaction>

				<Stop Name="Stop" Mode="EndCurrent" />
			</When>
		</When>

		<When Condition="${ObjectInspectionLine.NotApplicable}==True" Comment="Former CF">
			<Transaction>
				<Assign Property="${ObjectInspectionLine.InspectionLineScore}" Value="Empty" />
				<Assign Property="${ObjectInspectionLine.RemarkText}" Value="Empty" />
				<Assign Property="${ObjectInspectionLine.Ok}" Value="False" />
			</Transaction>
		</When>

		<Transaction>
			<Choose Name="Score">
				<When Name="Score Implies Approval" Condition="${ObjectInspectionLine.InspectionLineScore} != Empty &amp;&amp; ${ObjectInspectionLine.InspectionLineScore.ImpliesApproval} == True">
					<Assign Name="Set Final Score" Property="${ObjectInspectionLine.InspectionLineFinalScore}" Value="${ObjectInspectionLine.InspectionLineScore}" />
				</When>

				<Otherwise Name="Reset Final Score">
					<Assign Name="Clear Final Score" Property="${ObjectInspectionLine.InspectionLineFinalScore}" Value="Empty" />
				</Otherwise>
			</Choose>

			<WorkflowCall Name="ObjectInspectionLine_SetDone" WorkflowName="ObjectInspectionLine_SetDone">
				<Parameter	Name="Date"					Direction="In"		Value="${Date}" />
				<Parameter	Name="ObjectInspectionLine"	Direction="In"		Value="${ObjectInspectionLine}" />
			</WorkflowCall>
		</Transaction>

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