提交 b29dbc51 编写于 作者: T Tijs Rademakers

Added test for ACT-1464

上级 b713eb9b
......@@ -62,6 +62,18 @@ public class BusinessProcessBeanTest extends CdiActivitiTestCase {
}
@Test
@Deployment
public void testProcessWithoutWaitState() {
BusinessProcess businessProcess = getBeanInstance(BusinessProcess.class);
// start the process
businessProcess.startProcessByKey("businessProcessBeanTest").getId();
// assert that the process is ended:
assertNull(processEngine.getRuntimeService().createProcessInstanceQuery().singleResult());
}
@Test
@Deployment(resources = "org/activiti/cdi/test/api/BusinessProcessBeanTest.test.bpmn20.xml")
public void testResolveProcessInstanceBean() {
......
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="taskAssigneeExample"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="Examples">
<process id="businessProcessBeanTest">
<startEvent id="startEvent" name="StartEvent" />
<endEvent id="endEvent" name="EndEvent" />
<sequenceFlow targetRef="endEvent" sourceRef="startEvent" />
</process>
</definitions>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册