AnsweredAssumed Answered

a task calls a REST web service and makes the result available to other tasks

Question asked by forschungsstudentin on Mar 7, 2016
Latest reply on Mar 12, 2016 by forschungsstudentin
hello,
I use Activiti 5.17, Apache Maven 3.3.3, Apache Tomcat 7.0.62 and jdk 1.8.0_45-b15.

My goal is to create a task which calls my own REST-Webservice to receive a simple PIN (4 digits). The next task should wait until the PIN is received. This is the link to my REST-Webservice returning the PIN: http://wwwlab.cs.univie.ac.at/~a0904202/rest/random.php/TXTPIN (IN JSON: wwwlab.cs.univie.ac.at/~a0904202/rest/random.php/PIN)

I found a description in the Activiti userguide ("8.5.7 Mule Task"). → Is this the solution of my problem?
So I create at Activiti-Explorer → "Processes" → "Model workspace" a "New model", with a "Mule task" and a "User task".
When I deploy the model the error message "Create of BPMN XML failed. Could not find org.activiti.mule. MuleSendActivitiBehavior" appears.
What do I need to do to make it work?

I found a youtube video "Activiti REST Call task demonstration" (https://www.youtube.com/watch? v=x7YCHYCIxpM) where the user has a "rest call task" but I dont have this task in my Activitit Explorer (Alfresco Acitiviti Modeler). Also I cannot define the endpoints as explained in the video as well.

Does somebody have an idea or even an example/instruction on how a task calls a REST web service and makes the result available to other tasks?

Thanks a lot.

Regards.
Sabine


I hope I describe my problem understandable. English is not my first language.

Attachments

Outcomes