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

ActionField1741

Beschrijving: Export Job to Fluke OneQA. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root

XMLbewerken

<Workflow Name="ActionField1741" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Export Job to Fluke OneQA.</Description>
	<Properties>
		<Property	Name="Job"						Type="Job"				Accessor="Root"		Direction="In" />

		<Property	Name="DataProvider"				Type="String"			Accessor="Internal"						Default="FlukeOneQA" />
		<Property	Name="FlukeOneQAProcedure"		Type="String"			Accessor="Internal" />
		<Property	Name="FlukeOneQAProcedureURL"	Type="String"			Accessor="Internal" />
		<Property	Name="JobJobPlans"				Type="List[JobJobPlan]"	Accessor="Internal" />
		<Property	Name="RegexMatchedSuccessfully"	Type="Boolean"			Accessor="Internal" />
		<Property	Name="UrlForCallbackFlukeOneQA"	Type="String"			Accessor="Internal"						Default="#{Settings.Job.UrlForCallbackFlukeOneQA}" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="Job Equipment is Empty" Condition="${Job.Equipment} != Empty" MessageCode="3502">
			<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
		</Validation>

		<When Name="Job DataProvider is not Empty" Condition="${Job.DataProvider} != Empty ">
			<ContinuationQuestion Name="Continue" MessageCode="3499" Default="No">
				<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
			</ContinuationQuestion>
		</When>

		<Transaction>
			<GetList Name="Get open products linked to Job" Type="JobJobPlan" OutputProperty="${JobJobPlans}" OrderBy="Id" OrderDirection="Ascending" Top="1">
				<Joins>
					<Join	Name="JobPlan"	Alias="jp"	Type="InnerJoin" />
				</Joins>
				<Filters>
					<PropertyFilter	PropertyName="Job"						Operator="="		PropertyValue="${Job}" />
					<PropertyFilter	PropertyName="Status"					Operator="="		PropertyValue="JobJobPlanStatus.Approved" />
					<PropertyFilter	PropertyName="jp.FlukeOneQAProcedure"	Operator="!="		PropertyValue="Empty" />
				</Filters>
			</GetList>

			<When Name="JobJobPlan.JobPlan with FlukeOneQAProcedure is found" Condition="${JobJobPlans.Count} &gt; 0">
				<Assign Name="Set FlukeOneQAProcedure JobJobPlan" Property="${FlukeOneQAProcedureURL}" Value="=#getpropertyvalue(#elementat(${JobJobPlans}, 0),'JobPlan.FlukeOneQAProcedure')" />
			</When>

			<When Name="Job jobplan not empty and FlukeOneQAProcedure is Empty" Condition="${Job.JobPlan.FlukeOneQAProcedure?} != Empty &amp;&amp; ${FlukeOneQAProcedureURL} == Empty">
				<Assign Name="Set FlukeOneQAProcedure JobPlan" Property="${FlukeOneQAProcedureURL}" Value="${Job.JobPlan.FlukeOneQAProcedure}" />
			</When>

			<When Name="Job eqmtype not empty and FlukeOneQAProcedure is Empty" Condition="${Job.EquipmentType.FlukeOneQAProcedure?} != Empty &amp;&amp; ${FlukeOneQAProcedureURL} == Empty">
				<Assign Name="Set FlukeOneQAProcedure EqmType" Property="${FlukeOneQAProcedureURL}" Value="${Job.EquipmentType.FlukeOneQAProcedure}" />
			</When>
		</Transaction>

		<UnformatText Name="Extract Guid" Text="${FlukeOneQAProcedureURL}" Mask="([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$)" CaseSensitive="False" OutputProperty="${RegexMatchedSuccessfully}">
			<Parameter	Name="1"	Direction="Out"		OutputProperty="${FlukeOneQAProcedure}" />
		</UnformatText>

		<Validation Name="FlukeOneQAProcedure Empty" Condition="${FlukeOneQAProcedure} != Empty" MessageCode="3492">
			<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
		</Validation>

		<Transaction>
			<Assign Name="Set Job dataprovider" Property="${Job.DataProvider}" Value="${DataProvider}" />
		</Transaction>

		<UserContent Name="Post" />

		<View Name="Open URL" ViewName="Url">
			<Parameter	Name="assetId"				Direction="In"		Value="${Job.Equipment.Id}" />
			<Parameter	Name="Callback"				Direction="In"		Value="${UrlForCallbackFlukeOneQA}" />
			<Parameter	Name="OpenInNewWindow"		Direction="In"		Value="True" />
			<Parameter	Name="procedureId"			Direction="In"		Value="${FlukeOneQAProcedure}" />
			<Parameter	Name="settings.WorkOrderId"	Direction="In"		Value="{&quot;id&quot;: &quot;${Job.Id}&quot;}" />
			<Parameter	Name="Url"					Direction="In"		Value="oneqa://application/execute" />
		</View>
	</Execution>
</Workflow>