FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Workflow (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Re:Webservice asynchronous and input message proce
Nov 9, 2007 5:17 pm
sjidouard (User)
6 posts
Fresh Boarder

Karma: 0  
Hi,

I read on the forum that it is possible to make asynchronous webservice for services that have a very long treatment (2 min).

For exemple :

http://bpms.intalio.com/component/option,com_fireboard/Itemid,113/func...

http://bpms.intalio.com/component/option,com_fireboard/Itemid,113/func...

I tried to do the same principle as the people activity and in this case the method of webservice contains a thread for the treatment and the method returns the answer immediately .

And do longer treatment, however, because the treatment is in background.
The process looked well get a reminder to continue but I do not know how to make it going on !



What method I should use? What message SOAP should be sent ?

I generated the java client for the process with eclipse and I have an input in the process but when I send the message with java, no resultat is returned (it has missed the instance ID of the process) !
What I want is, when the treatment in my webservice is finished, that a message is sent to the process for its resumption !

Is it possible? Could you help me in providing an exemple why not ?

Thank you so much!
 
  The administrator has disabled public write access.
Nov 9, 2007 6:54 pm
Antoine (Admin)
2755 posts
Admin

Karma: 58  
Hi,

this is possible but it is painful. One way to target back the process is to give the instance data in the closeID operation, and use it in the process/closeID operation to target it. That's what we do today with xforms, but we hide most of the pain that it represents.

The other possibility is to have a lopping subprocess later in the process that will poll your java implementation for a result. The executable pool would loop until the response is positive.

None of those mechanisms is perfect, it should be easier hopefully when we have reusable processes.

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Nov 12, 2007 10:20 am
sjidouard (User)
6 posts
Fresh Boarder

Karma: 0  
Hi Antoine,

Thank you for your response!

The second solution is not interresting for me because of the endless loop posibilities. It could be use if Ii haven't got any other solution.

The first solution seems to suit my need, because I need to do approxuimately the same xform operation. May you explain to me what are the step to do such a solution.

Thank you so much!
 
  The administrator has disabled public write access.
Nov 12, 2007 1:38 pm
Antoine (Admin)
2755 posts
Admin

Karma: 58  
Hi,

the catch is to get the SOAP address in the WSDL of the generated pool.

You can get it in the WSDL of the process located in the build folder. Since the WSDL SOAP address is computed from the name of the pool and the name of the diagram, it should not change, and you should be able to call it whenever it is running, so you actually don't need to have to map the value to the request.

Just call the reply operation with the right message (try with SOAPUi first), and it should give good results.

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Nov 12, 2007 2:32 pm
sjidouard (User)
6 posts
Fresh Boarder

Karma: 0  
Hi,

I have tried this solution without success.
Here is the SOAP message sent with SOAPUi:

Endpoint : http://localhost:8080/ode/processes/DeployProject/NewDiagram/NewTest2/...






ertret




Result :
Exception in request: java.net.SocketTimeoutException: Read timed out

I think that there is a lack of information in the header of the message but I do not know which.
Do you know the right message format of SOAP message?

Thank you so much!
 
  The administrator has disabled public write access.
Nov 13, 2007 9:16 am
sjidouard (User)
6 posts
Fresh Boarder

Karma: 0  
Sorry but all message are not present.
The message SOAP is in the last post.
 
 
Last Edit: 2007/11/13 09:21 By sjidouard.
  The administrator has disabled public write access.
Nov 13, 2007 9:20 am
sjidouard (User)
6 posts
Fresh Boarder

Karma: 0  
The message SOAP is :

 
 
Last Edit: 2007/11/13 09:21 By sjidouard.
  The administrator has disabled public write access.
Nov 13, 2007 10:37 am
Antoine (Admin)
2755 posts
Admin

Karma: 58  
Hi, you do not need to use a SOAP header.

Using SOPAUi, get the process WSDL and select the operation. There is an option there to create the right SOAP message according to the operation schema. You will just need to fill the blanks.

HTH

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Nov 14, 2007 12:36 pm
sjidouard (User)
6 posts
Fresh Boarder

Karma: 0  
Hi,

Does a correlation must be defined for the process to receive the message?

Thanks!
 
  The administrator has disabled public write access.
Aug 29, 2008 11:32 pm
m.dale (User)
4 posts
Fresh Boarder

Karma: 0  
Antoine,

In your message below you hint that the asynchronous process sjidouard describes in post #9871 could be implemented in a similar fashion to xforms. For an asynchronous process of undetermined runtime duration that seems like a much cleaner and more scalable approach than constant loop/polling.

9 months after the original post, are there "reusable processes" you mentioned that would make this easier? I spent some time searching the archives but did not find any other hints/solutions. Are there any samples or solution posts on implementing such an asynchronous callback?

Is all the instance data that would be needed available from the Intalio Designer environment?

Thanks for your help,
Markus
 
  The administrator has disabled public write access.
Oct 13, 2008 10:59 am
4 posts
Fresh Boarder

Karma: 0  
Hi all,

Can any one reply with a simple example to solve this?

There were two solutions provided. One is a looping mechanism and the other is workflow kind which is basically explicit correlation. Does Intalio supports implicit correlation using WS-addressing mechanism or any thing else?

Can some one please explain what is "reusable processes" that was mentioned earlier.
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • yodjeu.ntemde.leopold.camille (21)
  • Konstantin.Melnik (8)
  • himar.rodriguez (8)
  • amrrao1975 (6)
  • rakesh.db (6)
  • jaime.penafiel (5)
  • andre.van.der.ark (5)
  • andreas.boehm (5)
  • blue.moon (5)
  • estebanf (4)

All time

  • Antoine (2755)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (261)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.