I have an issue to find out the response of a process in rest api via the rest client, which is present in Activiti-explorer of the same tomcat serve

cancel
Showing results for 
Search instead for 
Did you mean: 
anindita_user
Member II

I have an issue to find out the response of a process in rest api via the rest client, which is present in Activiti-explorer of the same tomcat serve

I have an issue to find out the response of a process in rest api via the rest client, which is present in Activiti-explorer of the same tomcat server.

I have the URL by which I can find out some other processes from the activiti explorer; like this -

http://127.0.0.1:8085/activiti-rest/service/repository/process-definitions?size=1000

I found the following details -

But, out of them I cannot find the process which I deployed or run from the activiti explorer.

Please let me know how to find out the id of the process required.

Thanks for the help in advance.

15 Replies
ryandawson
Alfresco Employee

Re: Hi,

Are the explorer and activiti-rest definitely pointing at the same database? See for example  

anindita_user
Member II

Re: Hi,

Yes, I have updated the db details of both the activity rest and activity explorer and then again tried. Still the details for the required process is not coming under the list of the published processes while the url is being hit in the rest client.

Please help.

anindita_user
Member II

Re: Hi,

Yes, I have updated the db details of both the activity rest and activity explorer and then again tried. Still the details for the required process is not coming under the list of the published processes while the url is being hit in the rest client.

ryandawson
Alfresco Employee

Re: Hi,

Do you see any process definitions in Activiti REST?

anindita_user
Member II

Re: Hi,

Yes I can see some process definitions as depicted below:

The processes above have been exposed and available when the http://127.0.0.1:8085/activiti-rest/service/repository/process-definitions?size=1000 URL is hit,

any one of the processes can be exposed by hitting the URL in the rest client : http://127.0.0.1:8085/activiti-rest/service/repository/process-definitions/createTimersProcess:1:31

One of the processes I created, deployed and ran successfully in activiti-explorer as depicted below :

But I cannot expose this process via Rest API similar to the above processes.

What should be the URL similar to http://127.0.0.1:8085/activiti-rest/service/repository/process-definitions/createTimersProcess:1:31

for the process I created to expose from Rest?

I need to know what is the URL to hit from rest client for the process running from the activiti-explorer.

Please help.

ryandawson
Alfresco Employee

Re: Hi,

So you are able to start process instances for this process from the explorer? If so maybe check whether you can see those instances from the REST API (Activiti User Guide )

anindita_user
Member II

Re: Hi,

Yes I am able to start my process from activiti explorer. But I am not able to understand from where i can find the instance/process id as it is 31 for the process http://127.0.0.1:8085/activiti-rest/service/repository/process-definitions/createTimersProcess:1:31, similarly how to find out the process instance id as described in the guide you have indicated as -

How to get the processInstanceId value for my process.?

ryandawson
Alfresco Employee

Re: Hi,

I was wondering if you could just query for all of them and find it in the list. Or is it a really big list?

I am still not clear on whether any of the process definitions that you see in the explorer are also shown in REST? Is there any overlap between the data? Are all the process instances and definitions that you see in explorer present in REST except for that one process definition?

Others have reported problems with this Not able to view newly deployed process information from Rest api calls  but I think it should work if you use the same database  . You could also try connecting with a database/SQL client directly to the database and querying to see what process definitions are there.

anindita_user
Member II

Re: Hi,

It is a list of 10-11 processes in the activiti explorer out of which only 6processes are being displayed as the response of the activiti-rest api call.

There are total 11processes present in the activiti explorer. But out of them only 6processes are getting generated as the response in the rest api. But rest (11-6)=5 processes [available in activiti explorer] are not getting generated in the rest api call. The process created by me is among those 5 processes which are present in activiti explorer but not coming in the activiti rest api.

I have the same DB configuration in db.properties file for both the activiti rest and activiti explorer as follows :

Please let me know how to connect with a database/SQL client directly to the database and to query to see what process definitions are there.