cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Rest Api Receive Task

chandraprabha
Champ in-the-making
Champ in-the-making
Hi ,

Could any one please help me with below:

Does Activiti Rest API support Receive task? As i have Receive task after the start event in a process. When i am trying to query the task of a process instance i do not get any thing back.


I created receive task for File received business process.


Thanks,
Chandra
7 REPLIES 7

balsarori
Champ on-the-rise
Champ on-the-rise
It's hard to help you without knowing more details such as what url did you use for querying and what results do you expect?

Does using the following url include activity instances of your Receive task activity?
GET history/historic-activity-instances
You can filter down results by a set of parameters such as processInstanceId, refer to section 15.8.17. Get historic activity instances in the user guide.

chandraprabha
Champ in-the-making
Champ in-the-making
Thanks for the response.

I have receive task after the start event so i am trying to get the  receive task(pending) back from below url .

http://localhost:9080/activiti-rest/service/runtime/tasks?processInstanceId=49296

Thanks,
Chandra

chandraprabha
Champ in-the-making
Champ in-the-making
Thanks it is working

chandraprabha
Champ in-the-making
Champ in-the-making
Could you please let me know if i can complete the Receive Task using rest api

As i read on internet that Activiti does not have Rest api support for Receive task

jbarrez
Star Contributor
Star Contributor
That would be a signal on an execution. See the docs for PUT runtime/executions/{executionId} in the user guide.

chandraprabha
Champ in-the-making
Champ in-the-making
Thanks for the response.
I tried execution
PUT  http://localhost:9080/activiti-rest/service/runtime/executions?executionId=70024
{
  "action":"signalEventReceived",
  "signalName":"receivetask1"
 
}

i am getting 204  but when i check in activiti explorer it Administration screen it still show Receive task as pending .

please let me know what am doing wrong and why it not moving to next task which is user task.

Thanks,
Chandra

jbarrez
Star Contributor
Star Contributor
A 204 means it did something correct. What's the database status of executionId=70024. Is that the right executionid, of the execution waiting at the receive task?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.