Created
February 20, 2014 12:05
-
-
Save meyerdan/9112096 to your computer and use it in GitHub Desktop.
Bpmn Model API Repository Service access
This file contains hidden or 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
// get the BpmnModelInstance for a deployed process | |
BpmnModelInstance processModel = runtimeService.getBpmnModelInstance("someProcessDefinitionId"); | |
// find all User Tasks | |
ModelElementType taskType = processModel.getModel().getType(UserTask.class); | |
Collection<ModelElementInstance> taskInstances = modelInstance.getModelElementsByType(taskType); | |
// Iterate the tasks ... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment