Skip to content

Instantly share code, notes, and snippets.

@tijsrademakers
Last active December 20, 2016 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tijsrademakers/865b338ab4a19a9b37bfae69984b3913 to your computer and use it in GitHub Desktop.
Save tijsrademakers/865b338ab4a19a9b37bfae69984b3913 to your computer and use it in GitHub Desktop.
@Test
public void testIntroProcess() {
// Create Flowable engine
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
// Get main service interfaces
RepositoryService repositoryService = processEngine.getRepositoryService();
RuntimeService runtimeService = processEngine.getRuntimeService();
HistoryService historyService = processEngine.getHistoryService();
// Deploy intro process definition
repositoryService.createDeployment().name("intro")
.addClasspathResource("intro.bpmn20.xml")
.deploy();
// Start intro process instance
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("intro");
assertTrue(processInstance.isEnded());
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment