cancel
Showing results for 
Search instead for 
Did you mean: 

How to Test activiti-rest

maxbaba
Champ in-the-making
Champ in-the-making
Hi:

[1] Here is my overall set-up details in Alfresco Activiti Enterprise edition:

I installed 'activiti-app', 'activiti-admin' and 'activiti-rest' apps.

'activiti-admin' has been configured to access 'jdbc/activitiAdminDS'

'activiti-app' and 'activiti-rest' are configured to access the same JNDI datasource 'jdbc/activitiDS'

Both the above datasources are defined in server.xml of tomcat with  'Resource-Links' in tomcat's context.xml

I have added a  'Resource-Ref' to web.xml of 'activiti-rest' app.

[2] Now when I use Chrome's Advanced Rest Client and Call with token authorization

GET http://<baseurl/context-root>/activiti-rest/api/repository/process-definitions, I get the following:

Response: 404 Not Found

[3] FYI: The userid and pwd I use for token authorization have tenant-admin/manager access

Can anyone please help shed light on why I'm not seeing any process definitions in my response?

-Thanks for reading.
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
what happens if you hit here?
<code>
http://<baseurl/context-root>/api/enterprise/process-definitions
</code>
you could have a look also here:
http://docs.alfresco.com/activiti/topics/bpm-process_definitions.html
and
http://forums.activiti.org/content/rest-service-activiti-enterprise

maxbaba
Champ in-the-making
Champ in-the-making
Hi - looks like Alfresco activiti Enterprise comes bundled with REST API and there is no need for me to deploy activiti-rest application separately. Once I got this information from Alfresco tech support, my <context-url> changed from activiti-rest to activiti-app as follows:

http://localhost:8080/activiti-app/api/enterprise/process-definitions
This above URL works.

Thanks for the response.