cancel
Showing results for 
Search instead for 
Did you mean: 

Cann Web services

angayarkanni_m
Champ in-the-making
Champ in-the-making
Hi,

Can I call a web service from a task. If so, how?

Thanks.
7 REPLIES 7

hari
Star Contributor
Star Contributor
Hi,

Please read it here. http://www.activiti.org/userguide/#bpmnWebserviceTask
Or you may also use the java service task to invoke the webservice

angayarkanni_m
Champ in-the-making
Champ in-the-making
Thank you for the response.

I have one more question. I have a html/jsp page, which should be called as a task.
I did read about external form rendering. But unable to get it.
Can you please give me sample, on how I can do it with Activiti designer.

Regards,
Angayarkanni M

hari
Star Contributor
Star Contributor
Hi,

The way you can go with it is by building your own task inbox in your application. When user clicks on a task, with the help of the Task ID get the task variables and form key. Based on form key, you render the page which has to be displayed.

angayarkanni_m
Champ in-the-making
Champ in-the-making
Ok. Thanks.

Our requirement is, we have a set of html's.
We need to design a work flow, and use these htmls as userTask.
Eg. UserTask1: Signup - show signup.html
      EmailTask1: Send Email to the mail id (which is an value in signup.html), which has a activation link on it
      UserTask2: Success - show user_registered.html

As we already have a bunch of htmls,dynamic pages, I dont want to use the "form" attribute in the userTask.

Please advise.
Thanks.

hari
Star Contributor
Star Contributor
Hi,

I don't think you would need a BPM here for this requirement.

angayarkanni_m
Champ in-the-making
Champ in-the-making
Hi,
Here,  I have taken a simple scenario, to say that I need to call the pre-created views(htmls).

We have a many tasks, that needs to be orchestrated. Only thing is we have our views as htmls; and some web services.
We would use Activiti to create the work flow. And I need to know how should I call the htmls in my task. Reading the document to call web services from the Activiti.

Thanks.


jbarrez
Star Contributor
Star Contributor
" And I need to know how should I call the htmls in my task. "

That's not there out of the box. You will need to reference your html's somehow using the activiti:formKey attribute.
But how you fetch and display them, that's completely up to you.