cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Know which event called a service

SOLVED
Highlighted
Newbie

Know which event called a service

Hi,

I have a service which I call through a "SelectedRowChange" or a "ServiceInvokeCompleted" event and I want to do differents things on my service regarding the event which called it.

So is it possible inside a service to get the caller event ?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Know which event called a service

Hi Jean-Noel Durand,

As far as I know there is no way to recognize which event call a service in a mashup,

but as an alternative you could set a value for a property or a textbox value when ou triggered a "SelectedRowChange" or a "ServiceInvokeCompleted" event, for example, you give value to 1 if SelectedRowChange, and 2 if ServiceInvokeCompleted(here you need create another service to set the value at the time either of the two events is triggered), and then the value could be as an input of the service you will call you could  set a different logic or do different thing based on the different value passed in.

Hope this helps,

Br,

Anna

View solution in original post

3 REPLIES 3
Highlighted

Re: Know which event called a service

Hi Jean-Noel DURAND​,

As per my understanding; the event details are available in case of subscription but not in a mashup.

So, you might have to create separate services for "SelectedRowChange" and "ServiceInvokeCompleted" event.

Highlighted

Re: Know which event called a service

Hi Jean-Noel Durand,

As far as I know there is no way to recognize which event call a service in a mashup,

but as an alternative you could set a value for a property or a textbox value when ou triggered a "SelectedRowChange" or a "ServiceInvokeCompleted" event, for example, you give value to 1 if SelectedRowChange, and 2 if ServiceInvokeCompleted(here you need create another service to set the value at the time either of the two events is triggered), and then the value could be as an input of the service you will call you could  set a different logic or do different thing based on the different value passed in.

Hope this helps,

Br,

Anna

View solution in original post

Re: Know which event called a service

In my case it is the best alternative.

Thanks

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!