Yes., There are some good examples from the "Activiti in Action" book. So for example in chapter 6, the book discusses about how to use a Java code to submit the data that was collected from a form service., here is a snippet of the code,
<code>
Map<String, Object> processVariables = new HashMap<String, Object>();
List<String> authorList = new ArrayList<String>();
authorList.add("Tijs Rademakers");
authorList.add("Ron van Liempd");
processVariables.put("authorList", authorList);
runtimeService.startProcessInstanceByKey("jpaTest", processVariables);
Task task = taskService.createTaskQuery().singleResult();
Map<String, String> formProperties = new HashMap<String, String>();
formProperties.put("booktitle", "Activiti in Action");
formProperties.put("isbn", "123456");
formService.submitTaskFormData(task.getId(), formProperties);
</code>
so basically you collect the form data information from a JSP and in a spring service bean process the variable keeping this above code as benchmark.
Cheers.