Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
stylenone

Intro

 In Data Exchange section you should prepare a domain that is configured for Fi2 exports:

image-20240216-133159.pngImage Added

 

Please note the Field Type and Field Value (reference: Fi2 Mappings )

If any of the fields are missing, you can add them here, select how they should be emitted, and they will be added to the output XML.

Output file

For test and debug, set the debug parameter to true. In that case a file will also be written to provided location.

 

Running the Export

Export can be activated from any object starting from Property – down to Space. It must be an object that is present in Fastighet perspective.

image-20240216-133231.pngImage Added

Plugin config

Property

Sample / allowed value

Description

debug

true/false

Enable writing export file

debug_output_directory

/etc/hdc/msf-test2/debug

Directory where the debug file will be stored

XML Headers

HEADER_VERB_CLASS_CODE_NAME

SHOW

HEADER_NOUN_CLASS_CODE_NAME

A000.F

HEADER_NOUN_CLASS_SCHEME_ID_NAME

CA000_003_005

HEADER_VERB_CLASS_SCHEME_ID_NAME

CA000_002_003

HEADER_A_VALUE_CODE

A

HEADER_A_VALUE_VALUE

Service Works Global Nordic AB

HEADER_A_SCHEME_URL

http://www.fi2.se/valuelist/VA000_004_004.xml

HEADER_B_VALUE_VALUE

FM Access

HEADER_B_SCHEME_URL

http://www.fi2.se/valuelist/VA000_004_004.xml

HEADER_B_VALUE_CODE

B

HEADER_MESSAGE_COUNT

1

Classes config

FI2_006_PROPERTY_CLASS

fi2property

FI2_006_BUILDING_CLASS

fi2structure

FI2_006_FLOOR_CLASS

fi2floor

FI2_006_ROOM_CLASS

fi2space

FI_2_VERSION_NAME

1.3

FMA settings

UNIT_VALUE

kvm

Used as a fixed unit for AREA fields

PRIMARY_PERSPECTIVE_ID

12

Perspective used to find end export object structure.

Communication settings

URL

Base URL

URL_POST_PREFIX

Data post suffix for base URL

URL_AUTH_PREFIX

Auth suffix for base URL

USERNAME

Username for auth

PASSWORD

Password for auth

Sample output headers based on provided config

Code Block
languagexml
<?xml version="1.0"?>
<fi2propertymessage
	xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://www.fi2.se/schemas/1.3 http://www.fi2.se/schemas/1.3/fi2propertymessage.xsd
	xmlns=http://www.fi2.se/schemas/1.3>
	<fi2messageheader>
		<fi2sender>
			<fi2reference>
				<fi2value_code>A</fi2value_code>
				<fi2value_scheme>
					<fi2scheme_url>http://www.fi2.se/valuelist/VA000_004_004.xml</fi2scheme_url>
				</fi2value_scheme>
				<fi2value_value>Service Works Global Nordic AB</fi2value_value>
			</fi2reference>
			<fi2reference>
				<fi2value_code>B</fi2value_code>
				<fi2value_scheme>
					<fi2scheme_url>http://www.fi2.se/valuelist/VA000_004_004.xml</fi2scheme_url>
				</fi2value_scheme>
				<fi2value_value>FM Access</fi2value_value>
			</fi2reference>
			<fi2systemidentity>-</fi2systemidentity>
		</fi2sender>
		<fi2version>1.3</fi2version>
		<fi2messageversion>1.3</fi2messageversion>
		<fi2messageid>8f55fdc6-7ada-41bb-87bb-d70ff604f5b6</fi2messageid> (SWG comment: id to be generated for every new export)

		<fi2messagedate>2018-10-15T08:58:27.242528+02:00</fi2messagedate> (SWG comment: date time to be generated for every new export)

		<fi2sessionidentity>772bc2b8-6e9e-4a3c-866d-433f3ae4851c</fi2sessionidentity> (SWG comment: sessionidentity to be generated for every new export)

		<fi2messagecount>1</fi2messagecount>
		<fi2messagetask>
			<fi2verb>
				<fi2class_code>SHOW</fi2class_code>
				<fi2class_scheme>
					<fi2scheme_id>CA000_002_003</fi2scheme_id>
				</fi2class_scheme>
			</fi2verb>
			<fi2noun>
				<fi2class_code>A000.F</fi2class_code>
				<fi2class_scheme>
					<fi2scheme_id>CA000_003_005</fi2scheme_id>
				</fi2class_scheme>
			</fi2noun>
		</fi2messagetask>
	</fi2messageheader>