Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class DemoApplication {
Logger logger = LoggerFactory.getLogger(DemoApplication.class);
public static void main(String[] args) {, args);
public CommandLineRunner init(final RepositoryService repositoryService,
final RuntimeService runtimeService,
final TaskService taskService) {
return new CommandLineRunner() {
public void run(String... strings) throws Exception {
ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();"Number of process definitions : " + query.count());
List<ProcessDefinition> definitions = query.list();
for (ProcessDefinition definition : definitions) {"Loaded Process Definitions: "+definition.getKey());
// Execute the Saga1 Process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.