08-05-2011 09:37 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn" targetNamespace="EGovRunnerProcesses">
<process id="MyTestProcess" name="MyTest Process">
<startEvent id="theStart" activiti:initiator="initiator">
<extensionElements>
<activiti:formProperty id="person" type="string" />
<activiti:formProperty id="reason" type="string" />
</extensionElements>
</startEvent>
<sequenceFlow id='flow1' sourceRef='theStart' targetRef='writeSomethingTask' />
<userTask id="writeSomethingTask" name="Write something" activiti:formKey="ch/glue/egovrunner/processes/MyTestForm.form" activiti:assignee="${initiator}">
<documentation>
Write something.
</documentation>
<extensionElements>
<activiti:taskListener event="create" class="ch.glue.egovrunner.explorer.listeners.OsisTaskCreateListener" />
</extensionElements>
</userTask>
<sequenceFlow id='flow2' sourceRef='writeSomethingTask' targetRef='theEnd' />
<endEvent id="theEnd" />
</process>
</definitions>
/**
* Start a instance which has a start form.
*
* @param processDefinition
* the process definition to start
* @param formData
* the form data filled by the user
*/
public void submitStartForm(ProcessDefinition processDefinition,
Map<String, String> formData) {
ProcessInstance pi = getFormService().submitStartFormData(
processDefinition.getId(), generateBusinessKey(), formData);
processLayout.showProcessStartSuccess(processDefinition);
}
10-03-2013 07:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.