Changeset 31:424c99e07053

Added tasks to camunda classpath
author unexist
date Mon, 12 Jul 2021 16:14:08 +0200
parents dbbff288439e
children e196efc41724
files todo-service-camunda/src/main/java/dev/unexist/showcase/todo/application/RestApplication.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/todo-service-camunda/src/main/java/dev/unexist/showcase/todo/application/RestApplication.java	Mon Jul 12 16:13:44 2021 +0200
+++ b/todo-service-camunda/src/main/java/dev/unexist/showcase/todo/application/RestApplication.java	Mon Jul 12 16:14:08 2021 +0200
@@ -13,6 +13,8 @@
 
 import dev.unexist.showcase.todo.adapter.CamundaResource;
 import dev.unexist.showcase.todo.adapter.TodoResource;
+import dev.unexist.showcase.todo.adapter.tasks.CamundaTodoCheckTask;
+import dev.unexist.showcase.todo.adapter.tasks.CamundaTodoTallyTask;
 import dev.unexist.showcase.todo.infrastructure.camunda.CamundaEngine;
 import org.camunda.bpm.engine.rest.impl.CamundaRestResources;
 
@@ -31,6 +33,10 @@
         classes.add(CamundaResource.class);
         classes.add(CamundaEngine.class);
 
+        /* Add tasks */
+        classes.add(CamundaTodoCheckTask.class);
+        classes.add(CamundaTodoTallyTask.class);
+
         /* Add all camunda engine rest resources (or just add those that you actually need) */
         classes.addAll(CamundaRestResources.getResourceClasses());