diff --git a/snippets/plugin-tasklist-detail-iframe/pom.xml b/snippets/plugin-tasklist-detail-iframe/pom.xml new file mode 100644 index 0000000000..78e7a87ea0 --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/pom.xml @@ -0,0 +1,70 @@ + + + 4.0.0 + + com.camunda.consulting.example.plugin.tasklist.detail + tasklist-plugin-iframe-detail + 1.0.0-SNAPSHOT + + jar + + + + + 7.10.3-ee + 1.9 + 1.9 + UTF-8 + + + + + + org.camunda.bpm + camunda-bom + ${camunda.version} + import + pom + + + + + + + + org.camunda.bpm.webapp + camunda-webapp + classes + + provided + + + + org.camunda.bpm + camunda-engine + provided + + + + javax + javaee-api + 6.0 + provided + + + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://app.camunda.com/nexus/content/groups/public + + + + + ${project.artifactId} + + diff --git a/snippets/plugin-tasklist-detail-iframe/src/main/java/com/camunda/consulting/example/plugin/tasklist/detail/IframeDetailTasklistPlugin.java b/snippets/plugin-tasklist-detail-iframe/src/main/java/com/camunda/consulting/example/plugin/tasklist/detail/IframeDetailTasklistPlugin.java new file mode 100644 index 0000000000..3c18788b35 --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/src/main/java/com/camunda/consulting/example/plugin/tasklist/detail/IframeDetailTasklistPlugin.java @@ -0,0 +1,25 @@ +package com.camunda.consulting.example.plugin.tasklist.detail; + +import java.util.HashSet; +import java.util.Set; + +import org.camunda.bpm.tasklist.plugin.spi.impl.AbstractTasklistPlugin; + +import com.camunda.consulting.example.plugin.tasklist.detail.resources.IframeDetailTasklistPluginRootResource; + +public class IframeDetailTasklistPlugin extends AbstractTasklistPlugin { + + public static final String ID = "iframe-detail-tasklist-plugin"; + + public String getId() { + return ID; + } + + @Override + public Set> getResourceClasses() { + Set> classes = new HashSet>(); + classes.add(IframeDetailTasklistPluginRootResource.class); + return classes; + } + +} diff --git a/snippets/plugin-tasklist-detail-iframe/src/main/java/com/camunda/consulting/example/plugin/tasklist/detail/resources/IframeDetailTasklistPluginRootResource.java b/snippets/plugin-tasklist-detail-iframe/src/main/java/com/camunda/consulting/example/plugin/tasklist/detail/resources/IframeDetailTasklistPluginRootResource.java new file mode 100644 index 0000000000..b3e872e3df --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/src/main/java/com/camunda/consulting/example/plugin/tasklist/detail/resources/IframeDetailTasklistPluginRootResource.java @@ -0,0 +1,14 @@ +package com.camunda.consulting.example.plugin.tasklist.detail.resources; + +import javax.ws.rs.Path; + +import org.camunda.bpm.tasklist.resource.AbstractTasklistPluginRootResource; + +import com.camunda.consulting.example.plugin.tasklist.detail.IframeDetailTasklistPlugin; + +@Path("plugin/" + IframeDetailTasklistPlugin.ID) +public class IframeDetailTasklistPluginRootResource extends AbstractTasklistPluginRootResource { + public IframeDetailTasklistPluginRootResource() { + super(IframeDetailTasklistPlugin.ID); + } +} diff --git a/snippets/plugin-tasklist-detail-iframe/src/main/resources/META-INF/services/org.camunda.bpm.tasklist.plugin.spi.TasklistPlugin b/snippets/plugin-tasklist-detail-iframe/src/main/resources/META-INF/services/org.camunda.bpm.tasklist.plugin.spi.TasklistPlugin new file mode 100644 index 0000000000..23a315b0dc --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/src/main/resources/META-INF/services/org.camunda.bpm.tasklist.plugin.spi.TasklistPlugin @@ -0,0 +1 @@ +com.camunda.consulting.example.plugin.tasklist.detail.IframeDetailTasklistPlugin \ No newline at end of file diff --git a/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/iframe.html b/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/iframe.html new file mode 100644 index 0000000000..b5df1211d2 --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/iframe.html @@ -0,0 +1,5 @@ +
+ + + +
diff --git a/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.css b/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.css new file mode 100644 index 0000000000..4d7cbf7871 --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.css @@ -0,0 +1 @@ +// this file is required but does not have content here diff --git a/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.js b/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.js new file mode 100644 index 0000000000..576443484e --- /dev/null +++ b/snippets/plugin-tasklist-detail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.js @@ -0,0 +1,20 @@ +define(['angular'], function(angular) { + + var Configuration = ['ViewsProvider', function(ViewsProvider) { + + ViewsProvider.registerDefaultView('tasklist.task.detail', { + id: 'iframe-detail-tasklist-plugin', + label: 'iframe Detail', + url: 'plugin://iframe-detail-tasklist-plugin/static/app/iframe.html', + + // less priority as form-detail plugin (https://github.com/camunda/camunda-tasklist-ui/blob/master/client/scripts/task/plugins/detail/cam-tasklist-task-detail-form-plugin.js) + priority: 800 + }); + }]; + + var ngModule = angular.module('tasklist.plugin.iframe-detail-tasklist-plugin', []); + + ngModule.config(Configuration); + + return ngModule; +});