11-03-2010 09:25 AM
org.activiti.engine.ActivitiException: 'class', 'type', or 'expression' attribute is mandatory on serviceTask | de/vps/act/process/ButtonTestProcess3.bpmn20.xml | line 34 | column 69
But the BPMN definition did not change and it was ok with beta2.
<serviceTask id="t3" name="T3" activiti:class="de.vps.act.process.DummyActivitiTask" />
Do you have any idea what the problem could be?11-03-2010 09:28 AM
No need to use the activiti-namespace prefix on attributes anymore. Just use this:<serviceTask id="t3" name="T3" class="de.vps.act.process.DummyActivitiTask" />
11-03-2010 09:31 AM
<definitions
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="Examples">
11-03-2010 09:41 AM
11-03-2010 09:53 AM
11-07-2010 09:59 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="Examples">
<process id="helloworld" name="helloworld">
<startEvent id="startevent1" name="Start"></startEvent>
<serviceTask id="servicetask1" name="Service Task"
activiti:class="de.asbach.alldeakz.bpmn.task.HelloServiceTask"></serviceTask>
<sequenceFlow id="flow1" name="" sourceRef="startevent1"
targetRef="servicetask1"></sequenceFlow>
<sequenceFlow id="flow2" name="" sourceRef="servicetask1"
targetRef="endevent1"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
</process>
</definitions>
public void testBPMNProcess() throws Exception {
ProcessEngine processEngine = new ProcessEngineBuilder()
.configureFromPropertiesResource("activiti.properties")
.buildProcessEngine();
RepositoryService reposity = processEngine.getRepositoryService();
reposity
.createDeployment()
//.addClasspathResource("example.xml")
.addClasspathResource("step_by_step.bpmn20.xml")
.deploy();
ProcessInstance pi = processEngine
.getRuntimeService()
.startProcessInstanceByKey("helloworld");
11-08-2010 10:07 AM
11-11-2010 10:59 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.