Versions Compared

Key

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

There are now 3 versions of the Hansen integration, the older version supports a push/pull type operation but the newer versions have buttons available in Hansen and Weave to call each other directly.

...

If a filter is specified then the id's coming from Hansen will be passed through the filter before being applied to the entity, and when sending the Hansen the process will be reversed.

Filtering identifiers

If you need to filter the values then you can specify a filter when setting up the entities and add the definition for the filter. Note the addition of the new xmlns:filter="urn:com.cohga.selection.filter#1.0" namespace.

...

Code Block
languagexml
titleExample Hansen 5.x configuration
<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="urn:com.cohga.server.config#1.0" xmlns:hansen="urn:com.cohga.weave.hansen#5.0">

    <hansen:config>
		<!-- Base URL for launching Hansen viewer -->
        <url>http://vhansen/hanseninterface/InformationViewer.aspx?viewertype=ASSET</url>

		<!--viewer is for Send to Hansen, mapping is for Send to Weave -->
		<viewer id="96">
			<entity>lyr_buildings</entity>
		</viewer>
		<mapping id="96">
			<entity>lyr_buildings</entity>
		</mapping>

		<viewer id="1000001">
			<entity>lyr_playspaces</entity>
		</viewer>
		<mapping id="1000001">
			<entity>lyr_playspaces</entity>
		</mapping>

		<viewer id="30">
			<entity>lyr_sw_pits</entity>
		</viewer>
		<mapping id="30">
			<entity>lyr_sw_pits</entity>
		</mapping>

		<viewer id="31">
			<entity>lyr_sw_pipes</entity>
		</viewer>
		<mapping id="31">
			<entity>lyr_sw_pipes</entity>
		</mapping>

		<viewer id="32">
			<entity>lyr_sw_nodes</entity>
		</viewer>
		<mapping id="32">
			<entity>lyr_sw_nodes</entity>
		</mapping>

		<viewer id="1000003">
			<entity>lyr_bbqs</entity>
		</viewer>
		<mapping id="1000003">
			<entity>lyr_bbqs</entity>
		</mapping>

		<viewer id="68">
			<entity>lyr_roadseg</entity>
		</viewer>
		<mapping id="68">
			<entity>lyr_roadseg</entity>
		</mapping>

		<viewer id="97">
			<entity>lyr_roadpath</entity>
		</viewer>
		<mapping id="97">
			<entity>lyr_roadpath</entity>
		</mapping>

		<!-- create asset group in Hansen -->
		<group url="http://vhansen/hanseninterface/CreateAssetGroup.aspx">
			<entity>lyr_buildings</entity>
			<entity>lyr_playspaces</entity>
			<entity>lyr_sw_pits</entity>
			<entity>lyr_sw_pipes</entity>
			<entity>lyr_sw_nodes</entity>
			<entity>lyr_bbqs</entity>
			<entity>lyr_roadseg</entity>
			<entity>lyr_roadpath</entity>
		</group>

		<!-- Setup a project link -->
		<project url="http://wrath:8080/InformationViewer.aspx">
			<entity>lyr_buildings</entity>
			<entity>lyr_playspaces</entity>
			<entity>lyr_bbqs</entity>
		</project>

		<!-- Setup a work order link -->
		<workorder url="http://wrath:8080/InformationViewer.aspx">
			<entity>lyr_buildings</entity>
			<entity>lyr_playspaces</entity>
			<entity>lyr_bbqs</entity>
		</workorder>

		<!-- Filter the bbq id's when sending/receiving -->
		<!-- The filter is defined the same as v4 -->
		<filter entity="lyr_bbqs" id="hansen.filter.bbq"/>

    </hansen:config>
</config>

...