Loading previous data in process start form

Wow! Thanks Stephen! I think your solution is valid.
I figured out something very similar before I could read your response.

inject([ '$scope', '$http', '$location', 'Uri', function($scope, $http, $location, Uri) {

	camForm.on('form-loaded', function () {
		$http.get(Uri.appUri("engine://engine/:engine/process-definition/key/my-process-key/startForm")).success(function(result){
			var contextPath = result.contextPath + '/forms/';		
			var filePath = contextPath + 'my-json-file.json';
			$.getJSON(filePath, function(json) {
				$scope.myOptions = json;
			});
		});	
	});` 

And as HTML I am using a very simple select element without grouping with
<option ng-repeat="entry in myOptions" value="{{entry.data}}">{{entry.data}}</option>

Anyway, I think your solution using the Deployment REST API might be better, since one doesn’t have to fix code the process key into the JS script.

Thanks for sharing!

Kind regards,
Wagner