SessionTrigger

From GeoMedia Smart Client
Jump to: navigation, search
Settings WorkflowSetting FormSetting CommonSetting
WorkflowTrigger SQL Trigger SQL Iterator Trigger SQL File Iterator Trigger Mail Trigger Session/Remove Session Trigger Log Trigger





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:
  • Placeholder:
 <value="{REQUESTCONTEXT.PARCEL_ID}">
  • SQL statement
  • OBJECT
  • static value
yes With the parameter Value you are able to set the session value.



Pfeil new.png To the top Pfeil new.png

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>



Pfeil new.png To the top Pfeil new.png

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>



Pfeil new.png To the top Pfeil new.png

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>



Language: English