You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/02/07 14:41:46 UTC

[camel] branch camel-2.x updated: CAMEL-13155: Added wid files and icon for consumption by jBPM Service Task repo.

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.x by this push:
     new 01f6b9c  CAMEL-13155: Added wid files and icon for consumption by jBPM Service Task repo.
01f6b9c is described below

commit 01f6b9cb29a736e1bd472476eb093022eb365c74
Author: Duncan Doyle <Du...@gmail.com>
AuthorDate: Thu Feb 7 14:32:30 2019 +0100

    CAMEL-13155: Added wid files and icon for consumption by jBPM Service Task repo.
---
 components/camel-jbpm/pom.xml                      |   9 +++-
 .../jbpm/workitem/InOnlyCamelWorkItemHandler.java  |   5 +-
 .../jbpm/workitem/InOutCamelWorkItemHandler.java   |   5 +-
 .../src/main/resources/InOnlyCamelConnector.wid    |  27 +++++++++++
 .../src/main/resources/InOutCamelConnector.wid     |  27 +++++++++++
 .../camel-jbpm/src/main/resources/camel-jbpm.wid   |  51 +++++++++++++++++++++
 components/camel-jbpm/src/main/resources/icon.png  | Bin 0 -> 35236 bytes
 7 files changed, 121 insertions(+), 3 deletions(-)

diff --git a/components/camel-jbpm/pom.xml b/components/camel-jbpm/pom.xml
index 7927c7c..1df65dc 100644
--- a/components/camel-jbpm/pom.xml
+++ b/components/camel-jbpm/pom.xml
@@ -156,5 +156,12 @@
             </exclusions>
         </dependency>
     </dependencies>
-
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+  </build>
 </project>
diff --git a/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOnlyCamelWorkItemHandler.java b/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOnlyCamelWorkItemHandler.java
index b20bcda..e732a63 100644
--- a/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOnlyCamelWorkItemHandler.java
+++ b/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOnlyCamelWorkItemHandler.java
@@ -53,6 +53,7 @@ import org.kie.api.runtime.process.WorkItemManager;
         widfile = "InOnlyCamelConnector.wid",
         name = "InOnlyCamelConnector",
         displayName = "InOnlyCamelConnector",
+        category = "Camel",
         defaultHandler = "mvel: new org.apache.camel.component.jbpm.workitem.InOnlyCamelWorkitemHandler()",
         documentation = "${artifactId}/index.html",
         parameters = {
@@ -69,7 +70,9 @@ import org.kie.api.runtime.process.WorkItemManager;
         serviceInfo = @WidService(category = "${name}",
                 description = "${description}",
                 keywords = "apache,camel,payload,route,connector",
-                action = @WidAction(title = "Send payload to a Camel endpoint")))
+                action = @WidAction(title = "Send payload to a Camel endpoint")),
+        icon = "InOnlyCamelConnector.png"  
+    )
 public class InOnlyCamelWorkItemHandler extends AbstractCamelWorkItemHandler {
 
     public InOnlyCamelWorkItemHandler() {
diff --git a/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOutCamelWorkItemHandler.java b/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOutCamelWorkItemHandler.java
index 6b6ef5f..5f470a3 100644
--- a/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOutCamelWorkItemHandler.java
+++ b/components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/workitem/InOutCamelWorkItemHandler.java
@@ -55,6 +55,7 @@ import org.kie.api.runtime.process.WorkItemManager;
         widfile = "InOutCamelConnector.wid",
         name = "InOutCamelConnector",
         displayName = "InOutCamelConnector",
+        category = "Camel",
         defaultHandler = "mvel: new org.apache.camel.component.jbpm.workitem.InOutCamelWorkitemHandler()",
         documentation = "${artifactId}/index.html",
         parameters = {
@@ -71,7 +72,9 @@ import org.kie.api.runtime.process.WorkItemManager;
         serviceInfo = @WidService(category = "${name}",
                 description = "${description}",
                 keywords = "apache,camel,payload,route,connector",
-                action = @WidAction(title = "Send payload to a Camel endpoint")))
+                action = @WidAction(title = "Send payload to a Camel endpoint")),
+        icon = "InOutCamelConnector.png"
+    )
 public class InOutCamelWorkItemHandler extends AbstractCamelWorkItemHandler {
 
     public InOutCamelWorkItemHandler() {
diff --git a/components/camel-jbpm/src/main/resources/InOnlyCamelConnector.wid b/components/camel-jbpm/src/main/resources/InOnlyCamelConnector.wid
new file mode 100644
index 0000000..9d178a8
--- /dev/null
+++ b/components/camel-jbpm/src/main/resources/InOnlyCamelConnector.wid
@@ -0,0 +1,27 @@
+[
+        [
+            "name" : "InOnlyCamelConnector",
+            "displayName" : "InOnlyCamelConnector",
+            "category" : "Camel",
+            "description" : "",
+            "defaultHandler" : "mvel: new org.apache.camel.component.jbpm.workitem.InOnlyCamelWorkitemHandler()",
+            "documentation" : "camel-jbpm/index.html",
+
+            "parameters" : [
+                                "CamelEndpointId" : new StringDataType()
+
+            ],
+            "results" : [
+                                "Response" : new StringDataType()
+                ,"Message" : new StringDataType()
+
+            ],
+            "mavenDependencies" : [
+                                 "org.apache.camel:camel-jbpm:${project.version}"
+
+            ],
+            "icon" : "InOnlyCamelConnector.png"
+
+        ]
+
+]
\ No newline at end of file
diff --git a/components/camel-jbpm/src/main/resources/InOutCamelConnector.wid b/components/camel-jbpm/src/main/resources/InOutCamelConnector.wid
new file mode 100644
index 0000000..f95e43b
--- /dev/null
+++ b/components/camel-jbpm/src/main/resources/InOutCamelConnector.wid
@@ -0,0 +1,27 @@
+[
+        [
+            "name" : "InOutCamelConnector",
+            "displayName" : "InOutCamelConnector",
+            "category" : "Camel",
+            "description" : "",
+            "defaultHandler" : "mvel: new org.apache.camel.component.jbpm.workitem.InOutCamelWorkitemHandler()",
+            "documentation" : "camel-jbpm/index.html",
+
+            "parameters" : [
+                                "CamelEndpointId" : new StringDataType()
+
+            ],
+            "results" : [
+                                "Response" : new StringDataType()
+                ,"Message" : new StringDataType()
+
+            ],
+            "mavenDependencies" : [
+                                 "org.apache.camel:camel-jbpm:${project.version}"
+
+            ],
+            "icon" : "InOutCamelConnector.png"
+
+        ]
+
+]
\ No newline at end of file
diff --git a/components/camel-jbpm/src/main/resources/camel-jbpm.wid b/components/camel-jbpm/src/main/resources/camel-jbpm.wid
new file mode 100644
index 0000000..d71ccba
--- /dev/null
+++ b/components/camel-jbpm/src/main/resources/camel-jbpm.wid
@@ -0,0 +1,51 @@
+[
+        [
+            "name" : "InOutCamelConnector",
+            "displayName" : "InOutCamelConnector",
+            "category" : "Camel",
+            "description" : "",
+            "defaultHandler" : "mvel: new org.apache.camel.component.jbpm.workitem.InOutCamelWorkitemHandler()",
+            "documentation" : "camel-jbpm/index.html",
+
+            "parameters" : [
+                                "CamelEndpointId" : new StringDataType()
+
+            ],
+            "results" : [
+                                "Response" : new StringDataType()
+                ,"Message" : new StringDataType()
+
+            ],
+            "mavenDependencies" : [
+                                 "org.apache.camel:camel-jbpm:${project.version}"
+
+            ],
+            "icon" : "InOutCamelConnector.png"
+
+        ]
+    ,[
+            "name" : "InOnlyCamelConnector",
+            "displayName" : "InOnlyCamelConnector",
+            "category" : "Camel",
+            "description" : "",
+            "defaultHandler" : "mvel: new org.apache.camel.component.jbpm.workitem.InOnlyCamelWorkitemHandler()",
+            "documentation" : "camel-jbpm/index.html",
+
+            "parameters" : [
+                                "CamelEndpointId" : new StringDataType()
+
+            ],
+            "results" : [
+                                "Response" : new StringDataType()
+                ,"Message" : new StringDataType()
+
+            ],
+            "mavenDependencies" : [
+                                 "org.apache.camel:camel-jbpm:${project.version}"
+
+            ],
+            "icon" : "InOnlyCamelConnector.png"
+
+        ]
+
+]
\ No newline at end of file
diff --git a/components/camel-jbpm/src/main/resources/icon.png b/components/camel-jbpm/src/main/resources/icon.png
new file mode 100644
index 0000000..1c94e50
Binary files /dev/null and b/components/camel-jbpm/src/main/resources/icon.png differ