Skip to content

Instantly share code, notes, and snippets.

@meyerdan
Created February 20, 2014 12:05
Show Gist options
  • Save meyerdan/9112096 to your computer and use it in GitHub Desktop.
Save meyerdan/9112096 to your computer and use it in GitHub Desktop.
Bpmn Model API Repository Service access
// 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