EMML <operation> tag

User offline. Last seen 1 day 15 hours ago. Offline
Joined: 12/22/2009
Points: 11
Groups: None

Hi,

can i define multiple operations within a mashup?
I've tried creating 2 operations and invoking them separately using Presto's JSON RPC API and it always returns data from the first one..

¡Ieeehh!

5
Your rating: None Average: 5 (2 votes)
raj
raj's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 09/22/2008
Points: 2
Groups: None

Hi,

Multiple operations in EMML are currently not supported.   You may want to decompose those into 2 separate Mashups.

raj.  chief masher @ jackbe

User offline. Last seen 17 weeks 1 day ago. Offline
Joined: 01/08/2010
Points: 11
Groups: None

 Well, that's a pity.

When we saw that the information panel of a mashup showed the different operations, we thought that invoking the different operations would possible...

Is this feature planned to be included in a near-future release of Presto?

Thanks,

Federico Cáceres

raj
raj's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 09/22/2008
Points: 2
Groups: None

Hi Federico,

We are tentatively planning to support it in upcoming release. Can you please provide some context on where would you find this helpful ? Is it for better modularity , and avoid over-pollution of distinct mashup scripts ?

 

raj.  chief masher @ jackbe

User offline. Last seen 1 day 15 hours ago. Offline
Joined: 12/22/2009
Points: 11
Groups: None

Hi raj,

Exactly that is why. Very closely related scripts could be grouped in a single emml with multiple operations.
Furthermore, would it be possible to share variables between operations? For example having the same sources and operations but providing different outputs?

P.S.: Federico and I are working in the same project

¡Ieeehh!

Is it possible in the meantime to encapsulate the common functionality into macros? You could share them across the different mashups to simplify any duplication...

<!--Session data-->

 

Sara, technical writer/jackbe