How can I start a process using activiti-restapi and soapui or restclient
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2014 05:43 AM
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
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
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2014 06:53 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2014 03:32 PM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2014 08:48 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2014 10:42 AM
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 ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2014 10:55 AM
Yes Mr. the question is exactly like this. and I didn't shout,sorry.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2014 11:04 AM
Mr.Barrez thank you for response but I think too you understood the question wrong.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 03:57 AM
> 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.)
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.)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 05:18 AM
I ' ll check the SetProcessDefinitionCmd
Thanks
Thanks
