Invoking WLM asynchronously

8 messages Options
Embed this post
Permalink
chetan_tal

Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Hi,

Is there any way to invoke WLM asynchronously? I tried to define wsdl with oneway opertation and building WLM module it could not generate XForm and gave following error.
java.lang.NullPointerException
        at org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)

My requirement is our existing web module should be able to insert tasks into WLM database and approval can be done from WorklistWebApplication. Are there operations in TaskCommon.wsdl to insert tasks? Which operations can be useful in this scenario?

Thanks,
Chetan
Mei Wu-2

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Yes, you can do this with 2 BPEL process:
1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as
you did before, but the WSDL for this BP itself is one way
2. Define another BP that calls BP1. this BP is your actual main
business process, this BP2 calls BP1 whenever it wants to insert tasks,
since BP1 is asynchronous, BP2 will not wait  for the task to complete.

Does it make sense?

Thanks
Mei

chetan_tal wrote:

> Hi,
>
> Is there any way to invoke WLM asynchronously? I tried to define wsdl with
> oneway opertation and building WLM module it could not generate XForm and
> gave following error.
> java.lang.NullPointerException
>         at
> org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)
>
> My requirement is our existing web module should be able to insert tasks
> into WLM database and approval can be done from WorklistWebApplication. Are
> there operations in TaskCommon.wsdl to insert tasks? Which operations can be
> useful in this scenario?
>
> Thanks,
> Chetan
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

chetan_tal

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Thanks mei,

Is there any way I can avoid using BPEL? Are there API(s) which will allow me to insert task?
Can I completely use my own web module to interact with WLM module for creating and approving tasks?

Regards,
Chetan


Mei Wu wrote:
Yes, you can do this with 2 BPEL process:
1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as
you did before, but the WSDL for this BP itself is one way
2. Define another BP that calls BP1. this BP is your actual main
business process, this BP2 calls BP1 whenever it wants to insert tasks,
since BP1 is asynchronous, BP2 will not wait  for the task to complete.

Does it make sense?

Thanks
Mei

chetan_tal wrote:
> Hi,
>
> Is there any way to invoke WLM asynchronously? I tried to define wsdl with
> oneway opertation and building WLM module it could not generate XForm and
> gave following error.
> java.lang.NullPointerException
>         at
> org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)
>
> My requirement is our existing web module should be able to insert tasks
> into WLM database and approval can be done from WorklistWebApplication. Are
> there operations in TaskCommon.wsdl to insert tasks? Which operations can be
> useful in this scenario?
>
> Thanks,
> Chetan
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@open-esb.dev.java.net
For additional commands, e-mail: users-help@open-esb.dev.java.net
Mei Wu-2

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi, Chetan,

Yes, you can avoid BPEL, you can use WSDL to generate classes and interact with WLM, but you need this indirection to insert task, just replace BPEL with a webservice, you will do:

WS1 (one way) --> WS2 (two way) <--> WLM.

But I wonder if you do so, how do you get the approve result? Why do you want to bypass BPEL at all, note that you can can use API + BPEL in flexible combination

Thanks
Mei

chetan_tal wrote:
Thanks mei,

Is there any way I can avoid using BPEL? Are there API(s) which will allow
me to insert task?
Can I completely use my own web module to interact with WLM module for
creating and approving tasks?

Regards,
Chetan



Mei Wu wrote:
  
Yes, you can do this with 2 BPEL process:
1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as 
you did before, but the WSDL for this BP itself is one way
2. Define another BP that calls BP1. this BP is your actual main 
business process, this BP2 calls BP1 whenever it wants to insert tasks, 
since BP1 is asynchronous, BP2 will not wait  for the task to complete.

Does it make sense?

Thanks
Mei

chetan_tal wrote:
    
Hi,

Is there any way to invoke WLM asynchronously? I tried to define wsdl
with
oneway opertation and building WLM module it could not generate XForm and
gave following error.
java.lang.NullPointerException
        at
org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)

My requirement is our existing web module should be able to insert tasks
into WLM database and approval can be done from WorklistWebApplication.
Are
there operations in TaskCommon.wsdl to insert tasks? Which operations can
be
useful in this scenario?

Thanks,
Chetan
  
      
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



    

  
chetan_tal

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Thanks Mei,

It seems right now worklist supports scenario where one user is creating tasks and parallely approver is approving it. Till approver thread approves it the sender service (WS2-two way) will have to wait.

This is the constraint as in real scenario multiple users will just create tasks and be done with it. While approver who has to approve tasks from multiple users will approve them during next few days. It might be next day or later than that.

Can this be bypassed?

regards,
Chetan

Mei Wu wrote:
Hi, Chetan,

Yes, you can avoid BPEL, you can use WSDL to generate classes and
interact with WLM, but you need this indirection to insert task, just
replace BPEL with a webservice, you will do:

WS1 (one way) --> WS2 (two way) <--> WLM.

But I wonder if you do so, how do you get the approve result? Why do you
want to bypass BPEL at all, note that you can can use API + BPEL in
flexible combination

Thanks
Mei

chetan_tal wrote:
> Thanks mei,
>
> Is there any way I can avoid using BPEL? Are there API(s) which will allow
> me to insert task?
> Can I completely use my own web module to interact with WLM module for
> creating and approving tasks?
>
> Regards,
> Chetan
>
>
>
> Mei Wu wrote:
>  
>> Yes, you can do this with 2 BPEL process:
>> 1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as
>> you did before, but the WSDL for this BP itself is one way
>> 2. Define another BP that calls BP1. this BP is your actual main
>> business process, this BP2 calls BP1 whenever it wants to insert tasks,
>> since BP1 is asynchronous, BP2 will not wait  for the task to complete.
>>
>> Does it make sense?
>>
>> Thanks
>> Mei
>>
>> chetan_tal wrote:
>>    
>>> Hi,
>>>
>>> Is there any way to invoke WLM asynchronously? I tried to define wsdl
>>> with
>>> oneway opertation and building WLM module it could not generate XForm and
>>> gave following error.
>>> java.lang.NullPointerException
>>>         at
>>> org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)
>>>
>>> My requirement is our existing web module should be able to insert tasks
>>> into WLM database and approval can be done from WorklistWebApplication.
>>> Are
>>> there operations in TaskCommon.wsdl to insert tasks? Which operations can
>>> be
>>> useful in this scenario?
>>>
>>> Thanks,
>>> Chetan
>>>  
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@open-esb.dev.java.net
>> For additional commands, e-mail: users-help@open-esb.dev.java.net
>>
>>
>>
>>    
>
>  
Mei Wu-2

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi, Chetan,

It is not correct to say worklist supports only the one scenario you described, using BPEL + WLM, you can achieve both synchronous and asynchronous task creation.
I have detailed the solution below, you can do exactly the scenario you described below using 2 BPEL processes and 1WLM. In the future release, we will consider to provide direct asynchronous task creation, but right now, you can do pretty much the same with 2 BPEL processes.
As you say "can this be bypassed", I take it that you mean if the asynchronous task creation can be achieved, but you need to use 2 BPEL processes. I can explain more on how to use 2 BPELs to achieve asynchronous task creation, but the first thing is you need to be fine with using BPEL.

Thanks
Mei

chetan_tal wrote:
Thanks Mei,

It seems right now worklist supports scenario where one user is creating
tasks and parallely approver is approving it. Till approver thread approves
it the sender service (WS2-two way) will have to wait. 

This is the constraint as in real scenario multiple users will just create
tasks and be done with it. While approver who has to approve tasks from
multiple users will approve them during next few days. It might be next day
or later than that. 

Can this be bypassed?

regards,
Chetan


Mei Wu wrote:
  
Hi, Chetan,

Yes, you can avoid BPEL, you can use WSDL to generate classes and 
interact with WLM, but you need this indirection to insert task, just 
replace BPEL with a webservice, you will do:

WS1 (one way) --> WS2 (two way) <--> WLM.

But I wonder if you do so, how do you get the approve result? Why do you 
want to bypass BPEL at all, note that you can can use API + BPEL in 
flexible combination

Thanks
Mei

chetan_tal wrote:
    
Thanks mei,

Is there any way I can avoid using BPEL? Are there API(s) which will
allow
me to insert task?
Can I completely use my own web module to interact with WLM module for
creating and approving tasks?

Regards,
Chetan



Mei Wu wrote:
  
      
Yes, you can do this with 2 BPEL process:
1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as 
you did before, but the WSDL for this BP itself is one way
2. Define another BP that calls BP1. this BP is your actual main 
business process, this BP2 calls BP1 whenever it wants to insert tasks, 
since BP1 is asynchronous, BP2 will not wait  for the task to complete.

Does it make sense?

Thanks
Mei

chetan_tal wrote:
    
        
Hi,

Is there any way to invoke WLM asynchronously? I tried to define wsdl
with
oneway opertation and building WLM module it could not generate XForm
and
gave following error.
java.lang.NullPointerException
        at
org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)

My requirement is our existing web module should be able to insert
tasks
into WLM database and approval can be done from WorklistWebApplication.
Are
there operations in TaskCommon.wsdl to insert tasks? Which operations
can
be
useful in this scenario?

Thanks,
Chetan
  
      
          
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



    
        
  
      
    

  
chetan_tal

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
Thanks Mei,

As suggested by you, I have created 2 BPEL processes and 1 WLM.
This combination works fine.

Regards,
Chetan

Mei Wu wrote:
Hi, Chetan,

It is not correct to say worklist supports only the one scenario you
described, using BPEL + WLM, you can achieve both synchronous and
asynchronous task creation.
I have detailed the solution below, you can do exactly the scenario you
described below using 2 BPEL processes and 1WLM. In the future release,
we will consider to provide direct asynchronous task creation, but right
now, you can do pretty much the same with 2 BPEL processes.
As you say "can this be bypassed", I take it that you mean if the
asynchronous task creation can be achieved, but you need to use 2 BPEL
processes. I can explain more on how to use 2 BPELs to achieve
asynchronous task creation, but the first thing is you need to be fine
with using BPEL.

Thanks
Mei

chetan_tal wrote:
> Thanks Mei,
>
> It seems right now worklist supports scenario where one user is creating
> tasks and parallely approver is approving it. Till approver thread approves
> it the sender service (WS2-two way) will have to wait.
>
> This is the constraint as in real scenario multiple users will just create
> tasks and be done with it. While approver who has to approve tasks from
> multiple users will approve them during next few days. It might be next day
> or later than that.
>
> Can this be bypassed?
>
> regards,
> Chetan
>
>
> Mei Wu wrote:
>  
>> Hi, Chetan,
>>
>> Yes, you can avoid BPEL, you can use WSDL to generate classes and
>> interact with WLM, but you need this indirection to insert task, just
>> replace BPEL with a webservice, you will do:
>>
>> WS1 (one way) --> WS2 (two way) <--> WLM.
>>
>> But I wonder if you do so, how do you get the approve result? Why do you
>> want to bypass BPEL at all, note that you can can use API + BPEL in
>> flexible combination
>>
>> Thanks
>> Mei
>>
>> chetan_tal wrote:
>>    
>>> Thanks mei,
>>>
>>> Is there any way I can avoid using BPEL? Are there API(s) which will
>>> allow
>>> me to insert task?
>>> Can I completely use my own web module to interact with WLM module for
>>> creating and approving tasks?
>>>
>>> Regards,
>>> Chetan
>>>
>>>
>>>
>>> Mei Wu wrote:
>>>  
>>>      
>>>> Yes, you can do this with 2 BPEL process:
>>>> 1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as
>>>> you did before, but the WSDL for this BP itself is one way
>>>> 2. Define another BP that calls BP1. this BP is your actual main
>>>> business process, this BP2 calls BP1 whenever it wants to insert tasks,
>>>> since BP1 is asynchronous, BP2 will not wait  for the task to complete.
>>>>
>>>> Does it make sense?
>>>>
>>>> Thanks
>>>> Mei
>>>>
>>>> chetan_tal wrote:
>>>>    
>>>>        
>>>>> Hi,
>>>>>
>>>>> Is there any way to invoke WLM asynchronously? I tried to define wsdl
>>>>> with
>>>>> oneway opertation and building WLM module it could not generate XForm
>>>>> and
>>>>> gave following error.
>>>>> java.lang.NullPointerException
>>>>>         at
>>>>> org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)
>>>>>
>>>>> My requirement is our existing web module should be able to insert
>>>>> tasks
>>>>> into WLM database and approval can be done from WorklistWebApplication.
>>>>> Are
>>>>> there operations in TaskCommon.wsdl to insert tasks? Which operations
>>>>> can
>>>>> be
>>>>> useful in this scenario?
>>>>>
>>>>> Thanks,
>>>>> Chetan
>>>>>  
>>>>>      
>>>>>          
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@open-esb.dev.java.net
>>>> For additional commands, e-mail: users-help@open-esb.dev.java.net
>>>>
>>>>
>>>>
>>>>    
>>>>        
>>>  
>>>      
>>    
>
>  
Mei Wu-2

Re: Invoking WLM asynchronously

Reply Threaded More More options
Print post
Permalink
In reply to this post by Mei Wu-2
Some javascript/style in this post has been disabled (why?)
Cool, thanks for letting us know.
I think this solution would work, but if you need to inform the main process about the outcome of the task (whether it gets approved or rejected), you will need to save the reply in some form by BP1 (the BP that invokes WLM) and make BP2 poll the results, or have some interaction between BP1 and BP2.

Thanks
Mei



Mei Wu wrote:
Hi, Chetan,

It is not correct to say worklist supports only the one scenario you described, using BPEL + WLM, you can achieve both synchronous and asynchronous task creation.
I have detailed the solution below, you can do exactly the scenario you described below using 2 BPEL processes and 1WLM. In the future release, we will consider to provide direct asynchronous task creation, but right now, you can do pretty much the same with 2 BPEL processes.
As you say "can this be bypassed", I take it that you mean if the asynchronous task creation can be achieved, but you need to use 2 BPEL processes. I can explain more on how to use 2 BPELs to achieve asynchronous task creation, but the first thing is you need to be fine with using BPEL.

Thanks
Mei

chetan_tal wrote:
Thanks Mei,

It seems right now worklist supports scenario where one user is creating
tasks and parallely approver is approving it. Till approver thread approves
it the sender service (WS2-two way) will have to wait. 

This is the constraint as in real scenario multiple users will just create
tasks and be done with it. While approver who has to approve tasks from
multiple users will approve them during next few days. It might be next day
or later than that. 

Can this be bypassed?

regards,
Chetan


Mei Wu wrote:
  
Hi, Chetan,

Yes, you can avoid BPEL, you can use WSDL to generate classes and 
interact with WLM, but you need this indirection to insert task, just 
replace BPEL with a webservice, you will do:

WS1 (one way) --> WS2 (two way) <--> WLM.

But I wonder if you do so, how do you get the approve result? Why do you 
want to bypass BPEL at all, note that you can can use API + BPEL in 
flexible combination

Thanks
Mei

chetan_tal wrote:
    
Thanks mei,

Is there any way I can avoid using BPEL? Are there API(s) which will
allow
me to insert task?
Can I completely use my own web module to interact with WLM module for
creating and approving tasks?

Regards,
Chetan



Mei Wu wrote:
  
      
Yes, you can do this with 2 BPEL process:
1. Define a one way operation  for BP1, using this BP1 to invoke wlm  as 
you did before, but the WSDL for this BP itself is one way
2. Define another BP that calls BP1. this BP is your actual main 
business process, this BP2 calls BP1 whenever it wants to insert tasks, 
since BP1 is asynchronous, BP2 will not wait  for the task to complete.

Does it make sense?

Thanks
Mei

chetan_tal wrote:
    
        
Hi,

Is there any way to invoke WLM asynchronously? I tried to define wsdl
with
oneway opertation and building WLM module it could not generate XForm
and
gave following error.
java.lang.NullPointerException
        at
org.netbeans.modules.wlm.project.anttasks.Util.generateXForm(Util.java:271)

My requirement is our existing web module should be able to insert
tasks
into WLM database and approval can be done from WorklistWebApplication.
Are
there operations in TaskCommon.wsdl to insert tasks? Which operations
can
be
useful in this scenario?

Thanks,
Chetan
  
      
          
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]