soon I am going to start work on the modfication and deletion of process instance variables via REST (see https://app.camunda.com/jira/browse/CAM-642)
The exciting question is now: How would we map that to URLs?
--
You received this message because you are subscribed to the Google Groups "camunda BPM platform internal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
It should be possible to update or delete multiple process variables in a single, atomic request.
Daniel Meyer
Project Lead
I see the need at least for update. For deletion I think we even do not have it in the Java API – but for completeness it would be nice indeed :-)
--
Just checked the client i always used for demos and testing - no PATCH there – so maybe a bit risky (but agreed – that not an empiric proof ;-))?
-----Ursprüngliche Nachricht-----
Von: camunda...@googlegroups.com [mailto:camunda...@googlegroups.com] Im Auftrag von Falko Menge
Gesendet: Mittwoch, 22. Mai 2013 11:11
An: camunda...@googlegroups.com
Betreff: Re: REST: modify variables - POST or PATCH?
--
On Thursday, May 23, 2013 at 2:47 PM, thorben.lindhauer wrote:
Hi,
I have been discussing this issue with Daniel this morning. We came to the conclusion that the PATCH-solution is nicer from a REST point of view (together with Rafa's proposal for interacting with single variables).
So PATCH /process-instance/{id}/variables would be the corresponding URL.
We were also thinking about adding a POST request later on that does the exact same thing, in case users should have problems with PATCH. URL could then be POST /process-instance/{id}/modifyVariables
Regarding compatibility: I have just written a very simple JAX-RS application with Resteasy and Maven Tomcat Plugin that exposes a PATCH method.
Client side is plain jquery. Find the sources here: https://github.com/ThorbenLindhauer/http_patch_check
Results: No problems in Firefox and IE9, IE 7 and 8 won't work. Daniel and I agreed on IE support from 9 onwards, so this should be fine.
On client side, PATCH should also be fine with angular.js, as they state PATCH support in their changelogs: https://github.com/angular/angular.js/blob/master/CHANGELOG.md#v100rc6-runny-nose-2012-04-20
If you want to do a composite operation including multiple variables you have to use PATCH.Now the question is whether to additionally include a POST-based operation for composite operations on multiple variables.