This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
forked from camunda-consulting/camunda-7-code-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Warnke
committed
Apr 10, 2019
1 parent
ebe67b8
commit a66f1d4
Showing
7 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.camunda.consulting.example.plugin.tasklist.detail</groupId> | ||
<artifactId>tasklist-plugin-iframe-detail</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
|
||
<packaging>jar</packaging> | ||
|
||
<url></url> | ||
|
||
<properties> | ||
<camunda.version>7.10.3-ee</camunda.version> | ||
<maven.compiler.source>1.9</maven.compiler.source> | ||
<maven.compiler.target>1.9</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.camunda.bpm</groupId> | ||
<artifactId>camunda-bom</artifactId> | ||
<version>${camunda.version}</version> | ||
<scope>import</scope> | ||
<type>pom</type> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<!-- Cockpit Plugin API, needs to be provided --> | ||
<groupId>org.camunda.bpm.webapp</groupId> | ||
<artifactId>camunda-webapp</artifactId> | ||
<classifier>classes</classifier> | ||
<!-- not part of camunda bom --> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<!-- process engine, needs to be provided --> | ||
<groupId>org.camunda.bpm</groupId> | ||
<artifactId>camunda-engine</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<!-- Java EE 6 APIs --> | ||
<groupId>javax</groupId> | ||
<artifactId>javaee-api</artifactId> | ||
<version>6.0</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- Add your own dependencies here, if in compile scope, they are added to the war --> | ||
|
||
</dependencies> | ||
|
||
<repositories> | ||
<repository> | ||
<id>camunda-bpm-nexus</id> | ||
<name>camunda-bpm-nexus</name> | ||
<url>https://app.camunda.com/nexus/content/groups/public</url> | ||
</repository> | ||
</repositories> | ||
|
||
<build> | ||
<finalName>${project.artifactId}</finalName> | ||
</build> | ||
</project> |
25 changes: 25 additions & 0 deletions
25
...ava/com/camunda/consulting/example/plugin/tasklist/detail/IframeDetailTasklistPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Class<?>> getResourceClasses() { | ||
Set<Class<?>> classes = new HashSet<Class<?>>(); | ||
classes.add(IframeDetailTasklistPluginRootResource.class); | ||
return classes; | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
...ting/example/plugin/tasklist/detail/resources/IframeDetailTasklistPluginRootResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...e/src/main/resources/META-INF/services/org.camunda.bpm.tasklist.plugin.spi.TasklistPlugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.camunda.consulting.example.plugin.tasklist.detail.IframeDetailTasklistPlugin |
5 changes: 5 additions & 0 deletions
5
...ail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/iframe.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="form-inline"> | ||
|
||
<iframe src="https://www.camunda.com"></iframe> | ||
|
||
</div> |
1 change: 1 addition & 0 deletions
1
...tail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// this file is required but does not have content here |
20 changes: 20 additions & 0 deletions
20
...etail-iframe/src/main/resources/plugin-webapp/iframe-detail-tasklist-plugin/app/plugin.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}); |