Server Event: Difference between revisions
| (60 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
Server events are [[events]] which are communicated to the server, and may affect all [[stakeholder]]s. For example, a server event can automatically plan a [[measure]] or change attribute values of [[areas]] and [[neighborhoods]], resulting in new [[overlay]] and [[indicator]] results. | |||
Server Events can be used in multiple locations in the {{software}}; as part of a [[Measure]], when a [[Scenario]] is activated, as part of a larger [[Events#Event Bundles|event bundle]] in the [[Actions|action]] menu, or during a [[Cinematics|cinematic sequence]]. Server Events allow for events to be triggered during a session, which will result in a reaction from the server. | |||
Server Events can be used in multiple locations in the | |||
==Different Server Event types== | ==Different Server Event types== | ||
There are two flavors of Server Events: '''Logic Events''' and ''' | There are two flavors of Server Events: '''Logic Events''' and '''Participant Events'''. The difference between these Event Types is that for Participant Events at least one dedicated stakeholder needs to be assigned to the Server Event ''itself as event property''. A good example of this is the asking for or receiving of a money transfer (MONEY_TRANSFER_ASK & MONEY_TRANSFER_GIVE) as a Server Event. | ||
Logic Events do not require such a dedicated stakeholder and can be fired without one being assigned as property. A good example of this is the activation of a specific | Logic Events do not require such a dedicated stakeholder and can be fired without one being assigned as property. A good example of this is the activation of a specific [[areas|area]] (AREA_SET_ACTIVE) when creating a [[Areas#Flooding|flooding]] as part of a measure. Events like CINEMATIC_STAKEHOLDER_START are also Logic Event Types, because the stakeholder is not a property of the event, but of the linked cinematic. | ||
===Logic Event Types=== | ===Logic Event Types=== | ||
Below is a list describing available Logic | Below is a list describing the available Logic Event Types: | ||
{ | {{:Api session event logic}} | ||
=== | ===Participant Event Types=== | ||
Below is a list describing the available | Below is a list describing the available Participant Event Types: | ||
{ | {{:Api session event participant}} | ||
==Adding Server Side Events to a project== | ==Adding Server Side Events to a project== | ||
Server events are added to Scenario's using [[Coded Event]]s: | |||
*[[How to change Events fired by a Scenario]] | |||
==Changing the properties of a Server Side Event in a project== | |||
The properties of events can be edited on the bottom panel (see image above). On this panel a linked [[ID]] of an [[Action Menu]] and [[Function]] can be linked to an event for instance. Also can a dedicated stakeholder be selected here for Participant Type Events. Again, any changed made need to be confirmed first with the 'Commit' button, or cancelled with the 'Cancel' button. | |||
[[File:Scenario_event_bottom_panel.png|thumb|600px|center|Editing a Scenario Event in [[Bottom Panel]] and confirming with 'Commit']] | |||
{{ | {{article end | ||
|seealso= | |||
* [[Measure]] | |||
* [[Scenario]] | |||
* [[Event Bundle]] | |||
* [[Cinematic]] | |||
*[[Action Menu]] | |||
|api= | |||
*[[Api session event logic]] | |||
*[[Api session event participant]] | |||
*[[Api session event editor scenario add event]] | |||
*[[Api session event editor scenario remove event]] | |||
*[[Api session event editor scenario set event]] | |||
*[[Api session event editor eventbundle add event]] | |||
*[[Api session event editor eventbundle remove event]] | |||
*[[Api session event editor eventbundle set event]] | |||
*[[Api session event editor measure add event]] | |||
*[[Api session event editor measure set event]] | |||
*[[Api session event editor measure remove event]] | |||
}} | |||
Latest revision as of 10:59, 13 November 2026
Server events are events which are communicated to the server, and may affect all stakeholders. For example, a server event can automatically plan a measure or change attribute values of areas and neighborhoods, resulting in new overlay and indicator results.
Server Events can be used in multiple locations in the Tygron Platform; as part of a Measure, when a Scenario is activated, as part of a larger event bundle in the action menu, or during a cinematic sequence. Server Events allow for events to be triggered during a session, which will result in a reaction from the server.
Different Server Event types
There are two flavors of Server Events: Logic Events and Participant Events. The difference between these Event Types is that for Participant Events at least one dedicated stakeholder needs to be assigned to the Server Event itself as event property. A good example of this is the asking for or receiving of a money transfer (MONEY_TRANSFER_ASK & MONEY_TRANSFER_GIVE) as a Server Event.
Logic Events do not require such a dedicated stakeholder and can be fired without one being assigned as property. A good example of this is the activation of a specific area (AREA_SET_ACTIVE) when creating a flooding as part of a measure. Events like CINEMATIC_STAKEHOLDER_START are also Logic Event Types, because the stakeholder is not a property of the event, but of the linked cinematic.
Logic Event Types
Below is a list describing the available Logic Event Types:
Participant Event Types
Below is a list describing the available Participant Event Types:
Adding Server Side Events to a project
Server events are added to Scenario's using Coded Events:
Changing the properties of a Server Side Event in a project
The properties of events can be edited on the bottom panel (see image above). On this panel a linked ID of an Action Menu and Function can be linked to an event for instance. Also can a dedicated stakeholder be selected here for Participant Type Events. Again, any changed made need to be confirmed first with the 'Commit' button, or cancelled with the 'Cancel' button.

See also
API Endpoints
- Api session event logic
- Api session event participant
- Api session event editor scenario add event
- Api session event editor scenario remove event
- Api session event editor scenario set event
- Api session event editor eventbundle add event
- Api session event editor eventbundle remove event
- Api session event editor eventbundle set event
- Api session event editor measure add event
- Api session event editor measure set event
- Api session event editor measure remove event