Skip to main content
Jan 19, 2018 8:52 AM UTC
Question

The service knows information about the widget that has invoked it

Hi All,

inside the code of the service is it possible to know information (like label, Display Name an other proerties) about the caller widget.

Many Thanks

BR

Dimitri

2 replies

5-Regular Member
Jan 26, 2018 4:48 PM UTC

Hello, Dimitri.

In general, Services run independently of the mashup/widget that calls them. You could design the Service to take parameters you'd pass at runtime when it's invoked, it's unsure if that would do what you want here.

Can you describe the use case you have in mind with more detail?

Thanks,

-- Craig A.

Translate
1-Visitor
Jan 27, 2018 9:03 AM UTC

No you don't.

On our case, on highly used services, we added a parameter ( let's call it debugId ) as string where you can set from the Mashup with the Mashup Name, and then log that parameter on the logger.info.

Best Regards,

Carles.

Translate