Hi guys,
I'm having trouble determining a WS Invoker trigger event. In the WS settings, I have one WS method (Invoker) which can be triggered by several "Event Triggers". Right now I only have 2 for testing: TicketCreate and TicketTitleUpdate defined.
Is there a way to determine from within the called Invoker, how it was triggered? If TicketCreate or TicketTitleUpdate event has triggered it? Or do I really have to define a separate WS method for each trigger event and map it 1:1 (that would be very tedious)?
Cheers
JanM
Determining WS Invoker trigger event
-
- Znuny newbie
- Posts: 6
- Joined: 15 Aug 2014, 14:08
- Znuny Version: OTRS 3.3
- Company: OnTec Software Solutions AG
Re: Determining WS Invoker trigger event
The official answer from OTRS dev team:
So currently the correct way is to implement several Invokers which reuse methods from a common service to avoid code duplication.In der Tat gibt es innerhalb des Invokers keine Möglichkeit, das zugrunde liegende Event herauszufinden.
Üblich ist hier die Nutzung verschiedener Invoker, welche auf Methoden einer übergeordneten Common-Datei zugreifen, um doppelten Code zu vermeiden.