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

ActionField1612

Beschrijving: Create a pinned marker for the current plot plan if no pinned marker is present yet Custom: Nee

Propertiesbewerken

Property Type Accessor
PlotPlan PlotPlan Root
PlotPlanMarkerContext Context? Optional

XMLbewerken

<Workflow Name="ActionField1612" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create a pinned marker for the current plot plan if no pinned marker is present yet</Description>
	<Properties>
		<Property	Name="PlotPlan"					Type="PlotPlan"				Accessor="Root"		Direction="In" />

		<Property	Name="PlotPlanMarkerContext"	Type="Context?"				Accessor="Optional"	Direction="In" />

		<Property	Name="Label"					Type="UltimoString"			Accessor="Internal" />
		<Property	Name="PlotPlanMarker"			Type="PlotPlanMarker"		Accessor="Internal" />
		<Property	Name="TextParameters"			Type="Dictionary[Object]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetItem Name="Try to get pinned marker" Type="PlotPlanMarker" OutputProperty="${PlotPlanMarker}">
				<Filters>
					<PropertyFilter	PropertyName="PlotPlan"	Operator="="		PropertyValue="${PlotPlan}" />
					<PropertyFilter	PropertyName="Pinned"	Operator="="		PropertyValue="True" />
				</Filters>
			</GetItem>

			<When Name="When there is no pinned marker yet" Condition="${PlotPlanMarker} == Empty">
				<When Name="When marker context is not yet specified" Condition="${PlotPlanMarkerContext} == Empty">
					<WorkflowCall Name="Get marker context" WorkflowName="PlotPlan_GetMarkerContext">
						<Parameter	Name="PlotPlan"					Direction="In"		Value="${PlotPlan}" />
						<Parameter	Name="PlotPlanMarkerContext"	Direction="Out"							OutputProperty="${PlotPlanMarkerContext}" />
					</WorkflowCall>
				</When>

				<CreateObject Name="Initialize dictionary for text parameters" ObjectType="Dictionary[Object]" OutputProperty="${TextParameters}" />

				<Assign Name="Add text parameter" Property="${TextParameters.PlotPlanMarkerContext}" Value="${PlotPlanMarkerContext}" />

				<Command Name="Get translated label for pinned marker description" CommandName="GetLabel">
					<Parameter	Name="LabelCode"		Direction="In"		Value="PLOTPLANMARKER_PINNED_MARKER_DESCRIPTION" />
					<Parameter	Name="TextParameters"	Direction="In"		Value="${TextParameters}" />
					<Parameter	Name="LabelValue"		Direction="Out"															OutputProperty="${Label}" />
				</Command>

				<Insert Name="Insert a pinned marker for this plot plan" ObjectType="PlotPlanMarker" OutputProperty="${PlotPlanMarker}">
					<Parameter	Name="Context"		Direction="In"		Value="${PlotPlanMarkerContext}" />
					<Parameter	Name="CoordinateX"	Direction="In"		Value="100" />
					<Parameter	Name="CoordinateY"	Direction="In"		Value="100" />
					<Parameter	Name="Description"	Direction="In"		Value="${Label}" />
					<Parameter	Name="Pinned"		Direction="In"		Value="True" />
					<Parameter	Name="PlotPlan"		Direction="In"		Value="${PlotPlan}" />
				</Insert>
			</When>
		</Transaction>

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