Hi All,

Thank you Saminda. it is a very informative post.

I tried to use Airavata client API by looking at Airavata Client Test
case, but need some helping hand to use Monitor. Can you describe how
can I use Monitor to retrieve notification messages for a particular
topic ID.

Thank you,
Hasitha


On Sun, May 27, 2012 at 7:46 AM, Saminda Wijeratne <[email protected]> wrote:
> You are correct. You can use the WSMessager service to do the job. XBaya
> wraps this service and is exposed as a Monitor API through the
> AiravataClient.
>
> If you know the topic id of a running workflow use the function,
> airavataClient.getWorkflowExecutionMonitor(topicid,monitorEventListener)
> which will do the subscribing for you.
>
> From the time you call this function, all the messages received for that
> running workflow will be passed to the monitorEventListener object (where
> you can do whatever you want with it).
>
> Unfortunately you cannot subscribe to all workflow notifications using a
> single call.. you have to subscribe to each of them separately using the
> above function... in order to retrieve all existing topic ids use the
> function
> airavataClient.getRegistry().getWorkflowExecutionIdByUser(user);
> Note that here parameter "user" corresponds to the user who executed the
> workflow... passing null to it should return all topicid regardless the
> user who executed it.
>
> Please feel free to ask for more clarifications.
>
> Regards,
> Saminda
> On Sat, May 26, 2012 at 10:18 AM, Hasitha Aravinda <[email protected]
>> wrote:
>
>> Hi devs,
>>
>> Currently we are working on implementing Metadata Catalog for Apache
>> Airavata. We stared developing a dummy workflow notification generator
>> to test our tool, but found that it is not suitable for testing. So
>> now we are thinking to get workflow notification from a Airavata
>> server.
>>
>> Our Requirement is to subscribe to all workflow notifications to have
>> them in our Metadata Catalog. I went through Airavata documentations
>> and found that this can be done using Ws-messanger component, but
>> don't have clear idea to how to do this.
>>
>> Any thoughts ?
>>
>> Thank you,
>> Hasitha.
>>



-- 
--
Hasitha Aravinda,

|  hasitha.aravinda

Reply via email to