Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JBPM-9156] WorkItemHandler archetype can't be uploaded into business…
…-central (#1652)
- Loading branch information
Showing
16 changed files
with
827 additions
and
82 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
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
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
2 changes: 1 addition & 1 deletion
2
...n/resources/archetype-resources/src/test/java/__classPrefix__WorkitemIntegrationTest.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
42 changes: 42 additions & 0 deletions
42
jbpm-workitems/jbpm-workitems-repository-archetype/README.md
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,42 @@ | ||
# WorkItem Archetype | ||
|
||
Archetype used to build new jBPM Workitems. | ||
|
||
This Archetype allows you to easily start building a new jBPM Workitem and easily be contributed to the workitem repository. | ||
It creates your WorkItem Handler Maven project that includes the base Handler class, test, and | ||
a zip file that includes all needed files to upload to a jBPM workitem repository. | ||
|
||
How to run it | ||
-------------------- | ||
1. build the jbpm-workitems module (mvn clean install) | ||
2. Change to directory of your choice where you want to build the | ||
base workitem handler from this archetype. | ||
3. Create your new workitem handler from the archetype with: | ||
``` | ||
mvn archetype:generate | ||
-DarchetypeGroupId=org.jbpm | ||
-DarchetypeArtifactId=jbpm-workitems-repository-archetype | ||
-DarchetypeVersion=7.38.0-SNAPSHOT | ||
-Dversion=7.38.0-SNAPSHOT | ||
-DgroupId=org.jbpm.contrib | ||
-DartifactId=myworkitem | ||
-DclassPrefix=MyWorkItem | ||
-DarchetypeCatalog=local | ||
``` | ||
or use this one-liner | ||
|
||
``` | ||
mvn archetype:generate -DarchetypeGroupId=org.jbpm -DarchetypeArtifactId=jbpm-workitems-repository-archetype -DarchetypeVersion=7.38.0-SNAPSHOT -Dversion=7.38.0-SNAPSHOT -DgroupId=org.jbpm.contrib -DartifactId=myworkitem -DclassPrefix=MyWorkItem -DarchetypeCatalog=local | ||
``` | ||
4. Change the prompted values during the generation as needed (or leave the defaults) | ||
5. Compile and test your generated workitem handler with | ||
``` | ||
mvn clean install | ||
``` | ||
6. Package your workitem with | ||
``` | ||
mvn package | ||
``` | ||
This will create a zip file in your projects /target directory. This zip when extracted includes the correct | ||
directory structure (including the index.conf file) which then you can easily upload to a jBPM workitem repository | ||
or use directly as-is to upload your new workitem to the workbench via the jBPM Designer workitem repository feature. |
36 changes: 36 additions & 0 deletions
36
jbpm-workitems/jbpm-workitems-repository-archetype/pom.xml
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,36 @@ | ||
<?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"> | ||
<parent> | ||
<artifactId>jbpm-workitems</artifactId> | ||
<groupId>org.jbpm</groupId> | ||
<version>7.39.0-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.jbpm</groupId> | ||
<artifactId>jbpm-workitems-repository-archetype</artifactId> | ||
<name>Archetype</name> | ||
<packaging>maven-archetype</packaging> | ||
<build> | ||
<extensions> | ||
<extension> | ||
<groupId>org.apache.maven.archetype</groupId> | ||
<artifactId>archetype-packaging</artifactId> | ||
<version>3.0.1</version> | ||
</extension> | ||
</extensions> | ||
|
||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-archetype-plugin</artifactId> | ||
<version>3.0.1</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
</project> |
48 changes: 48 additions & 0 deletions
48
...m-workitems-repository-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
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,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archetype-descriptor name="${artifactId}"> | ||
|
||
<requiredProperties> | ||
<requiredProperty key="classPrefix"/> | ||
<requiredProperty key="archetypeVersion"/> | ||
</requiredProperties> | ||
|
||
<fileSets> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="false" packaged="false" encoding="UTF-8"> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/*.st</include> | ||
<include>**/*.png</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory>src/main/repository</directory> | ||
<includes> | ||
<include>**/*.conf</include> | ||
<include>**/*.wid</include> | ||
<include>**/*.png</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" encoding="UTF-8"> | ||
<directory>assembly</directory> | ||
<includes> | ||
<include>**/*.xml</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/test/java</directory> | ||
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | ||
<directory>src/test/resources</directory> | ||
</fileSet> | ||
</fileSets> | ||
|
||
</archetype-descriptor> |
12 changes: 12 additions & 0 deletions
12
...ems/jbpm-workitems-repository-archetype/src/main/resources/archetype-resources/.gitignore
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,12 @@ | ||
/target | ||
/local | ||
/bin | ||
|
||
# Eclipse, Netbeans and IntelliJ files | ||
/.* | ||
!.gitignore | ||
/nbproject | ||
/*.ipr | ||
/*.iws | ||
/*.iml | ||
|
42 changes: 42 additions & 0 deletions
42
...rkitems-repository-archetype/src/main/resources/archetype-resources/assembly/assembly.xml
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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> | ||
<id>bin</id> | ||
<formats> | ||
<format>dir</format> | ||
<format>zip</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
|
||
<fileSets> | ||
<fileSet> | ||
<directory>target</directory> | ||
<outputDirectory></outputDirectory> | ||
<includes> | ||
<include>*.jar</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>target/generated-sources/annotations</directory> | ||
<outputDirectory></outputDirectory> | ||
<includes> | ||
<include>*.wid</include> | ||
<include>index.html</include> | ||
<include>*.json</include> | ||
<include>*.xml</include> | ||
<include>*.bpmn2</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>target/classes</directory> | ||
<outputDirectory></outputDirectory> | ||
<includes> | ||
<include>repoconf.part</include> | ||
<include>repoindex.html</include> | ||
<include>*.png</include> | ||
<include>*.bpmn2</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
Oops, something went wrong.