08-05-2011 06: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);
}
08-08-2011 04:51 AM
08-09-2011 12:13 AM
08-09-2011 05:48 AM
Strange… That means that, at runtime, new engines get registered under the name "default" in ProcessEngines. You should double-check the way you bootstrap/configure your engine.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration"
class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="jdbcUrl" value="jdbc:mysql://localhost:5555/activiti" />
<property name="jdbcDriver" value="com.mysql.jdbc.Driver" />
<property name="jdbcUsername" value="root" />
<property name="jdbcPassword" value="password" />
<property name="databaseSchemaUpdate" value="false" />
<property name="jobExecutorActivate" value="false" />
</bean>
</beans>
08-10-2011 04:32 AM
08-11-2011 12:55 AM
Only one should exist for that key, right. But when another engine is created with that name afterwards, it's registered as the default -> previous value in map dissapears.
The first time you call getDefaultProcessEngine(), the init() will be called, and all process-engines on the classpath will be created. How do you know the engine isn't the same one as before?
08-16-2011 04:57 AM
08-16-2011 05:24 AM
10-03-2013 04:09 AM
10-03-2013 04:20 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.