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

ActionField290

Beschrijving: Build out an ExchangePart from a ProcessFunction (configuration item). Custom: Nee

Propertiesbewerken

Property Type Accessor
ProcessFunction ProcessFunction Root
EmployeeContextToSearch List[Context] Optional
EquipmentContextToSearch List[Context] Optional
LocationContextToSearch List[Context] Optional
VendorContextToSearch List[Context] Optional
WarehouseContextToSearch List[Context] Optional

XMLbewerken

<Workflow Name="ActionField290" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Build out an ExchangePart from a ProcessFunction (configuration item).</Description>
	<Properties>
		<Property	Name="ProcessFunction"			Type="ProcessFunction"	Accessor="Root"		Direction="In" />

		<Property	Name="EmployeeContextToSearch"	Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="EmployeeContext.Standard"		Comment="Select Employee from Employees with these contexts" />
		<Property	Name="EquipmentContextToSearch"	Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="EquipmentContext.Installation"	Comment="Select Equipment from Equipments with these contexts" />
		<Property	Name="LocationContextToSearch"	Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="LocationContext.Standard"		Comment="Select Location from Locations with these contexts" />
		<Property	Name="VendorContextToSearch"	Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="VendorContext.Standard"		Comment="Select Vendor from Vendors with these contexts" />
		<Property	Name="WarehouseContextToSearch"	Type="List[Context]"	Accessor="Optional"	Direction="In"		Default="WarehouseContext.Standard"		Comment="Select Warehouse from Warehouses with these contexts" />

		<Property	Name="Destination"				Type="String"			Accessor="Internal" />
		<Property	Name="ExchangePart"				Type="Equipment"		Accessor="Internal" />
		<Property	Name="IsDefect"					Type="Boolean"			Accessor="Internal" />
		<Property	Name="Job"						Type="Job"				Accessor="Internal" />
		<Property	Name="Location"					Type="Location"			Accessor="Internal" />
		<Property	Name="Remark"					Type="UltimoString"		Accessor="Internal" />
		<Property	Name="RemovalDate"				Type="DateTime?"		Accessor="Internal" />
		<Property	Name="RemovedBy"				Type="Employee"			Accessor="Internal" />
		<Property	Name="Vendor"					Type="Vendor"			Accessor="Internal" />
		<Property	Name="Warehouse"				Type="Warehouse"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="Dialog_ProcessFunction_BuildOutExchangePart" WorkflowName="Dialog_ProcessFunction_BuildOutExchangePart">
			<Parameter	Name="EmployeeContextsToSearch"		Direction="In"		Value="${EmployeeContextToSearch}" />
			<Parameter	Name="EquipmentContextsToSearch"	Direction="In"		Value="${EquipmentContextToSearch}" />
			<Parameter	Name="LocationContextsToSearch"		Direction="In"		Value="${LocationContextToSearch}" />
			<Parameter	Name="ProcessFunction"				Direction="In"		Value="${ProcessFunction}" />
			<Parameter	Name="VendorContextsToSearch"		Direction="In"		Value="${VendorContextToSearch}" />
			<Parameter	Name="WarehouseContextsToSearch"	Direction="In"		Value="${WarehouseContextToSearch}" />
			<Parameter	Name="Destination"					Direction="Out"											OutputProperty="${Destination}" />
			<Parameter	Name="ExchangePart"					Direction="Out"											OutputProperty="${ExchangePart}" />
			<Parameter	Name="IsDefect"						Direction="Out"											OutputProperty="${IsDefect}" />
			<Parameter	Name="Location"						Direction="Out"											OutputProperty="${Location}" />
			<Parameter	Name="Remark"						Direction="Out"											OutputProperty="${Remark}" />
			<Parameter	Name="RemovalDate"					Direction="Out"											OutputProperty="${RemovalDate}" />
			<Parameter	Name="RemovedBy"					Direction="Out"											OutputProperty="${RemovedBy}" />
			<Parameter	Name="Vendor"						Direction="Out"											OutputProperty="${Vendor}" />
			<Parameter	Name="Warehouse"					Direction="Out"											OutputProperty="${Warehouse}" />
		</WorkflowCall>

		<Transaction>
			<Command Name="ProcessFunction_BuildOutExchangePart" CommandName="ProcessFunction_BuildOutExchangePart">
				<Parameter	Name="ExchangePart"	Direction="In"		Value="${ExchangePart}" />
				<Parameter	Name="IsDefect"		Direction="In"		Value="${IsDefect}" />
				<Parameter	Name="Job"			Direction="In"		Value="${Job}" />
				<Parameter	Name="Location"		Direction="In"		Value="${Location}" />
				<Parameter	Name="Remark"		Direction="In"		Value="${Remark}" />
				<Parameter	Name="RemovalDate"	Direction="In"		Value="${RemovalDate}" />
				<Parameter	Name="RemovedBy"	Direction="In"		Value="${RemovedBy}" />
				<Parameter	Name="ToLocation"	Direction="In"		Value="=${Destination} == Location" />
				<Parameter	Name="ToVendor"		Direction="In"		Value="=${Destination} == Vendor" />
				<Parameter	Name="ToWarehouse"	Direction="In"		Value="=${Destination} == Warehouse" />
				<Parameter	Name="Vendor"		Direction="In"		Value="${Vendor}" />
				<Parameter	Name="Warehouse"	Direction="In"		Value="${Warehouse}" />
			</Command>

			<Choose Name="Check if exchange part is indicated (in dialog) to be defect or available">
				<When Name="When indicated to be defect" Condition="${IsDefect} == True">
					<When Name="When status is not already defect" Condition="${ExchangePart.Status} != EquipmentStatus.ExchangeDefect">
						<ChangeStatus Name="Change status to defect" DomainObject="${ExchangePart}" NewStatus="EquipmentStatus.ExchangeDefect" />
					</When>
				</When>

				<Otherwise Name="Otherwise, indicated to be available">
					<When Name="When status is not defect" Condition="${ExchangePart.Status} != EquipmentStatus.ExchangeDefect">
						<ChangeStatus Name="Change status to usable" DomainObject="${ExchangePart}" NewStatus="EquipmentStatus.ExchangeUsable" />
					</When>
				</Otherwise>
			</Choose>
		</Transaction>

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