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

ActionField1253

Beschrijving: Create ObjectContact/Employee for Purchase Custom: Nee

Propertiesbewerken

Property Type Accessor
Purchase Purchase Root
EmployeeContext Context Optional
ObjectContactContext Context Optional

XMLbewerken

<Workflow Name="ActionField1253" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create ObjectContact/Employee for Purchase</Description>
	<Properties>
		<Property	Name="Purchase"				Type="Purchase"			Accessor="Root"		Direction="In" />

		<Property	Name="EmployeeContext"		Type="Context"			Accessor="Optional"	Direction="In"		Default="EmployeeContext.ContactPerson"	Comment="Create the Employee with this context" />
		<Property	Name="ObjectContactContext"	Type="Context"			Accessor="Optional"	Direction="In"		Default="ObjectContactContext.Standard"	Comment="Not in use" />

		<Property	Name="Employee"				Type="Employee"			Accessor="Internal" />
		<Property	Name="ObjectContact"		Type="ObjectContact"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<WorkflowCall Name="Vendor_AddEmployee" WorkflowName="Vendor_AddEmployee">
				<Parameter	Name="EmployeeContext"	Direction="In"		Value="${EmployeeContext}" />
				<Parameter	Name="Vendor"			Direction="In"		Value="${Purchase.Vendor}" />
				<Parameter	Name="Employee"			Direction="Out"									OutputProperty="${Employee}" />
			</WorkflowCall>

			<Assign Name="Set ContactEmployee" Property="${Purchase.Contact}" Value="${Employee}" />
		</Transaction>

		<UserContent Name="Post" />

		<View Name="Open Screen" ViewName="DataEntryScreen">
			<Parameter	Name="DomainObject"			Direction="In"		Value="${Employee}" />
			<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${Employee.Description} == Empty" />
		</View>
	</Execution>
</Workflow>