Alfresco Activiti with Springboot

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

Alfresco Activiti with Springboot

Hello,

We have Alfresco Activiti enterprise installed. I want to access the workflow from my springboot application like start a workflow, approve, reject, etc. I am using REST calls to fetch the data from Activiti.

My springboot app will not have any user database as it is completely depend on the Activiti. So once user provide username and password he/she will be authenticated against the Activiti. 

I am using the below link for login with spring RestTemplate. 

http://localhost:9091/activiti-app/app/authentication/?j_username=admin@app.activiti.com&j_password=... 

I get the response like below.

Login REST call response

Now I am not sure how to use these headers for the next call in order to get the secured REST endpoints of Activiti?

Because when I am trying to access any other endpoints, it says Authentication exception...

Please help...

Thank you....

1 Reply
ryandawson
Alfresco Employee

Re: Alfresco Activiti with Springboot

I guess this question turned out to be linked with Start a process instance using REST . Looks like you're using basic authentication and so need to supply the user credentials in the request (rather than obtain an access token) and the answer on the other thread shows how to do that.