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

ActionField1214

Beschrijving: Open a CAD report for a specific BuildingFloor. Custom: Nee

Propertiesbewerken

Property Type Accessor
BuildingFloor BuildingFloor Root
FindMethod DocumentFindMethod Optional
SkipSelf Boolean Optional

XMLbewerken

<Workflow Name="ActionField1214" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Open a CAD report for a specific BuildingFloor.</Description>
	<Properties>
		<Property	Name="BuildingFloor"	Type="BuildingFloor"		Accessor="Root"		Direction="In" />

		<Property	Name="FindMethod"		Type="DocumentFindMethod"	Accessor="Optional"	Direction="In"		Default="ByLocation"	Comment="Search Document by 'ByLocation', 'ByHierarchy' or 'ByProcessFunction'" />
		<Property	Name="SkipSelf"			Type="Boolean"				Accessor="Optional"	Direction="In"		Default="False"			Comment="Don't search Document for this DomainObject" />

		<Property	Name="BaseFileName"		Type="String"				Accessor="Internal" />
		<Property	Name="CadDocument"		Type="Document"				Accessor="Internal" />
		<Property	Name="CadImportRuns"	Type="List[CadImportRun]"	Accessor="Internal" />
		<Property	Name="CadReport"		Type="CadReport"			Accessor="Internal" />
		<Property	Name="PdfFileName"		Type="String"				Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Command Name="FindCadDocument" CommandName="Document_GetDocumentFromDomainObject">
				<Parameter	Name="DocumentFileType"	Direction="In"		Value="CadDocument" />
				<Parameter	Name="DomainObject"		Direction="In"		Value="${BuildingFloor}" />
				<Parameter	Name="FindMethod"		Direction="In"		Value="${FindMethod}" />
				<Parameter	Name="SkipSelf"			Direction="In"		Value="${SkipSelf}" />
				<Parameter	Name="Document"			Direction="Out"									OutputProperty="${CadDocument}" />
			</Command>

			<Validation Name="Found a document" Condition="${CadDocument} != Empty" MessageCode="0901">
				<Parameter	Name="DomainObject"	Direction="In"		Value="${BuildingFloor}" />
			</Validation>

			<GetList Name="get runs associated with this document" Type="CadImportRun" OutputProperty="${CadImportRuns}" OrderBy="Date" OrderDirection="Descending" Top="1">
				<Filters>
					<PropertyFilter	PropertyName="Document"	Operator="="		PropertyValue="${CadDocument}" />
				</Filters>
			</GetList>
		</Transaction>

		<Validation Name="if errors associated with run, bail out" Condition="${CadImportRuns} == Empty || ${CadImportRuns.Count} == 0 || ${CadImportRuns[0].CadImportRunErrors.Count} == 0" MessageCode="2970" />

		<Dialog Name="Get report" TitleCode="SELECT_FLOORAREA_PLAN">
			<Container>
				<SelectionList Name="CadReport" OutputProperty="${CadReport}" ColumnName="CrptId" Required="True" />
			</Container>
		</Dialog>

		<UserContent Name="Post" />

		<WorkflowCall Name="Call workflow to open a CAD report" WorkflowName="CadReport_Open">
			<Parameter	Name="CadDocument"	Direction="In"		Value="${CadDocument}" />
			<Parameter	Name="CadReport"	Direction="In"		Value="${CadReport}" />
		</WorkflowCall>
	</Execution>
</Workflow>