cancel
Showing results for 
Search instead for 
Did you mean: 

How can I start a process using activiti-restapi and soapui or restclient

ozkan
Champ in-the-making
Champ in-the-making
Hi
I want to start a simple process that can be in activiti-explorer or I deployed,using activiti-rest api. I use SoapUI or RESTClient.Actually I wrote URL and I can see all of the process,after I start the process with rest-services, I can see the process started in SoapUI,becasuse the reponse is true,but in activiti-explorer,process isn t starting.What should I do? I m waiting your helps
Thanks
8 REPLIES 8

frederikherema1
Star Contributor
Star Contributor
First of all, are you using the same database for REST and explorer? Secondly, if the REST-call returns a "CREATED" response, the process actually started. Just use a GET on the process-instance/ID (ID found in response of the create POST) to verify.

ozkan
Champ in-the-making
Champ in-the-making
Yes I'm using the same database for REST and explorer,and you are right,I saw that after I had called the process,it started.Thank you very much.it works.
But now I have a new big problem. I designed a process using eclipse designer,and I deployed.I opened activiti-explorer and I started three processes from this deployment. For this three processes,process instances are different from each other. Now I want to change the deployment a little bit different,for example I want to add a user task in to the previous deployment.And I don't want to lose the previous process-instances.For this,is there any solution,if there is WHAT SHOULD I DO ? PLEASE HELP ME,THIS IS VERY IMPORTANT FOR ME.
Thank you.

jbarrez
Star Contributor
Star Contributor
That is the Activiti strategy: process instances will run against the process definition they are started from, new process instances will use the latest version of the process definition.

You can workaround this (see the SetProcessDefinitionCmd), but this is tricky, non-trivial stuff.

> WHAT SHOULD I DO ? PLEASE HELP ME,THIS IS VERY IMPORTANT FOR ME.

No need to shout, I can hear you. Every forum user here is convinced their question is important.

akotako
Champ in-the-making
Champ in-the-making
Hi,thanx for your response,but i think you understood the question wrong…The question is for example a process instance is waiting on a user task but i change the deployment and i add another user task after that i mentioned before.The question is what should i do if i want to go on with this new deployment and with the previous instance will continue from this deployment and after i claimed from the user task now i want it to go on the user task that i add ?

ozkan
Champ in-the-making
Champ in-the-making
Yes Mr.  the question is exactly like this. and I didn't shout,sorry.

ozkan
Champ in-the-making
Champ in-the-making
Mr.Barrez thank you for response but I think too you understood the question wrong.

jbarrez
Star Contributor
Star Contributor
> Hi,thanx for your response,but i think you understood the question wrong…

No, I understood it correctly. See below.

> The question is for example a process instance is waiting on a
> user task but i change the deployment and i add another user task after that i mentioned before.The question is what should i do if i want
> to go on with this new deployment and with the previous instance will continue from this deployment and after i claimed from the user
> task now i want it to go on the user task that i add ?

Like I said above, the default strategy of Activiti does not do this. Old process instances and thus your task keep running against the deployment it was started against.

You can change the process definition though (like I said, check the SetProcessDefinitionCmd), but this works only for simple cases (non-concurrent, variables are all correct, etc.)


ozkan
Champ in-the-making
Champ in-the-making
I ' ll check the SetProcessDefinitionCmd
Thanks