Last active
December 20, 2016 16:28
-
-
Save tijsrademakers/865b338ab4a19a9b37bfae69984b3913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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