本文整理汇总了Java中org.camunda.bpm.engine.test.assertions.ProcessEngineTests类的典型用法代码示例。如果您正苦于以下问题:Java ProcessEngineTests类的具体用法?Java ProcessEngineTests怎么用?Java ProcessEngineTests使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProcessEngineTests类属于org.camunda.bpm.engine.test.assertions包,在下文中一共展示了ProcessEngineTests类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start_multi_instance_process
import org.camunda.bpm.engine.test.assertions.ProcessEngineTests; //导入依赖的package包/类
@Test
@Deployment(resources="MultiInstanceTaskProcess.bpmn")
public void start_multi_instance_process() throws Exception {
eventBus.register(SelectorBuilder.selector(), new DelegateEventConsumer() {
@Override
public void accept(DelegateEvent t) {
System.out.println(t);
}
});
ProcessEngineTests.runtimeService().startProcessInstanceByKey("multiInstanceTaskProcess", Variables.createVariables().putValue("items", Arrays.asList("foo","bar")));
}
示例2: processInstance
import org.camunda.bpm.engine.test.assertions.ProcessEngineTests; //导入依赖的package包/类
private ProcessInstance processInstance() {
return ProcessEngineTests.processInstanceQuery().singleResult();
}