Session Trigger

Workflow Manager Developer Guide

HGD_Variant
15.00
HGD_Product
GeoMedia Smart Client
HGD_Portfolio_Suite
Platform

With this trigger you can write key/value pairs into the active session.

Parameters

Name

Value

Mandatory

Description

<name="Key">

<value="PARCEL_ID">

yes

With the parameter Key you are able to set the session key.

<name="Value">

Supported types:

<value="{REQUESTCONTEXT.PARCEL_ID}">

  • Placeholder:
  • SQL statement
  • OBJECT
  • static value

yes

With the parameter Value you are able to set the session value.

Example - method="before"

<WorkflowTrigger name="SampleSessionTrigger" type="SessionTrigger" method="before">
 <Param name="Key" value="ExtensionTypeName"/>
 <Param name="Value" value="SQL[Select e.Name From EXTENSIONTYPE e INNER JOIN BUILDINGEXTENSION b on b.EXTENSIONTYPE_ID = e.ID Where b.ID = {SESSION.BUILDINGEXTENSION.ID}]"/>
</WorkflowTrigger>

Example - method="action"

<WorkflowTrigger name="ParcelSessionTrigger" type="SessionTrigger" method="action">
 <Param name="Key" value="PARCEL_ID"/>
 <Param name="Value" value="{FORM.ParcelsTable}"/>
</WorkflowTrigger>
<WorkflowTrigger name="ParcelRCSessionTrigger" type="SessionTrigger" method="action">
  <Param name="Key" value="PARCEL_ID"/>
  <Param name="Value" value="{REQUESTCONTEXT.PARCEL_ID}"/>
</WorkflowTrigger>

RemoveSessionTrigger

Basically this trigger works the same as the SessionTrigger with the difference, that with the RemoveSessionTrigger you are able to remove keys from a session. So there is only one parameter to define (= Key). 
Only one session variable can be deleted, the RemoveSessionTrigger can be implemented as follows:
<WorkflowTrigger name="SampleRemoveSessionTrigger" type="RemoveSessionTrigger" method="after">
  <Param name="Key" value="ExtensionTypeName"/>
</WorkflowTrigger>