Skip to content

Instantly share code, notes, and snippets.

@mussatto
Created August 21, 2013 17:44
Show Gist options
  • Save mussatto/6297578 to your computer and use it in GitHub Desktop.
Save mussatto/6297578 to your computer and use it in GitHub Desktop.
groovy command to inject bean in grails console
def executionService= ctx.getBean('executionService')
def processInstances= executionService.createProcessInstanceQuery().processDefinitionId('StateSequence-1').list()
def executions = processInstances.collect{
def activeNames= it.findActiveActivityNames()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment