Author: KrisVerlaenen
Date: 2010-09-30 23:03:30 -0400 (Thu, 30 Sep 2010)
New Revision: 25380
Added:
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn2.template
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.prd.template
Removed:
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn.template
Modified:
trunk/bpmn/plugins/org.jboss.tools.jbpm/META-INF/MANIFEST.MF
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/java/org/jboss/tools/jbpm/wizard/project/NewJBPMProjectWizard.java
Log:
updated bpmn2 example
Modified: trunk/bpmn/plugins/org.jboss.tools.jbpm/META-INF/MANIFEST.MF
===================================================================
--- trunk/bpmn/plugins/org.jboss.tools.jbpm/META-INF/MANIFEST.MF 2010-10-01 02:07:14 UTC
(rev 25379)
+++ trunk/bpmn/plugins/org.jboss.tools.jbpm/META-INF/MANIFEST.MF 2010-10-01 03:03:30 UTC
(rev 25380)
@@ -7,19 +7,9 @@
Bundle-Vendor: JBoss, a division of Red Hat
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.resources,
- org.eclipse.debug.core,
org.eclipse.debug.ui,
- org.eclipse.jface.text,
- org.eclipse.ui,
- org.eclipse.ui.console,
- org.eclipse.ui.editors,
- org.eclipse.ui.forms,
org.eclipse.ui.ide,
- org.eclipse.ui.views,
org.eclipse.ui.views.properties.tabbed,
- org.eclipse.ui.workbench.texteditor,
- com.ibm.icu,
org.eclipse.jdt.core,
org.eclipse.jdt.ui
Eclipse-LazyStart: true
Modified:
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/java/org/jboss/tools/jbpm/wizard/project/NewJBPMProjectWizard.java
===================================================================
---
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/java/org/jboss/tools/jbpm/wizard/project/NewJBPMProjectWizard.java 2010-10-01
02:07:14 UTC (rev 25379)
+++
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/java/org/jboss/tools/jbpm/wizard/project/NewJBPMProjectWizard.java 2010-10-01
03:03:30 UTC (rev 25380)
@@ -286,7 +286,7 @@
throws CoreException, JavaModelException, IOException {
try {
if (extraPage.createProcessFile()) {
- createRuleFlow(project, monitor);
+ createProcess(project, monitor);
}
if (extraPage.createJavaProcessFile()) {
createProcessSampleLauncher(project);
@@ -299,17 +299,24 @@
/**
* Create the sample process file.
*/
- private void createRuleFlow(IJavaProject project, IProgressMonitor monitor) throws
CoreException {
-
- String fileName =
"org/jboss/tools/jbpm/wizard/project/sample.bpmn.template";
+ private void createProcess(IJavaProject project, IProgressMonitor monitor) throws
CoreException {
+ String fileName =
"org/jboss/tools/jbpm/wizard/project/sample.bpmn2.template";
IFolder folder = project.getProject().getFolder("src/main/resources");
- IFile file = folder.getFile("sample.bpmn");
+ IFile file = folder.getFile("sample.bpmn2");
InputStream inputstream =
getClass().getClassLoader().getResourceAsStream(fileName);
if (!file.exists()) {
file.create(inputstream, true, monitor);
} else {
file.setContents(inputstream, true, false, monitor);
}
+ fileName = "org/jboss/tools/jbpm/wizard/project/sample.prd.template";
+ file = folder.getFile("sample.prd");
+ inputstream = getClass().getClassLoader().getResourceAsStream(fileName);
+ if (!file.exists()) {
+ file.create(inputstream, true, monitor);
+ } else {
+ file.setContents(inputstream, true, false, monitor);
+ }
}
/**
Deleted:
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn.template
===================================================================
---
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn.template 2010-10-01
02:07:14 UTC (rev 25379)
+++
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn.template 2010-10-01
03:03:30 UTC (rev 25380)
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions id="Definition"
-
targetNamespace="http://www.jboss.org/drools"
-
typeLanguage="http://www.java.com/javaTypes"
-
expressionLanguage="http://www.mvel.org/2.0"
-
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
-
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
-
xs:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL
BPMN20.xsd"
-
xmlns:g="http://www.jboss.org/drools/flow/gpd"
-
xmlns:tns="http://www.jboss.org/drools">
-
- <process processType="Private" isExecutable="true"
id="com.sample.bpmn.hello" name="Hello World" >
-
- <!-- nodes -->
- <startEvent id="_1" name="StartProcess" g:x="16"
g:y="16" g:width="48" g:height="48" />
- <scriptTask id="_2" name="Hello" g:x="96"
g:y="16" g:width="80" g:height="48" >
- <script>System.out.println("Hello World");</script>
- </scriptTask>
- <endEvent id="_3" name="EndProcess" g:x="208"
g:y="16" g:width="48" g:height="48" />
-
- <!-- connections -->
- <sequenceFlow id="_1-_2" sourceRef="_1"
targetRef="_2" />
- <sequenceFlow id="_2-_3" sourceRef="_2"
targetRef="_3" />
-
- </process>
-
-</definitions>
\ No newline at end of file
Added:
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn2.template
===================================================================
---
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn2.template
(rev 0)
+++
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.bpmn2.template 2010-10-01
03:03:30 UTC (rev 25380)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn2:definitions
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
id="_KyKosM0AEd-jEMnzz1kFRw">
+ <bpmn2:process id="com.sample.bpmn.hello">
+ <bpmn2:startEvent id="_U0GnsM0AEd-jEMnzz1kFRw">
+ <bpmn2:outgoing>_WZPZgM0AEd-jEMnzz1kFRw</bpmn2:outgoing>
+ </bpmn2:startEvent>
+ <bpmn2:scriptTask id="_WZB-IM0AEd-jEMnzz1kFRw"
name="HelloWorld">
+ <bpmn2:incoming>_WZPZgM0AEd-jEMnzz1kFRw</bpmn2:incoming>
+ <bpmn2:outgoing>_ZS2q8M0AEd-jEMnzz1kFRw</bpmn2:outgoing>
+ <bpmn2:script>System.out.println("Hello
World");</bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="_WZPZgM0AEd-jEMnzz1kFRw"
sourceRef="_U0GnsM0AEd-jEMnzz1kFRw"
targetRef="_WZB-IM0AEd-jEMnzz1kFRw"/>
+ <bpmn2:sequenceFlow id="_ZS2q8M0AEd-jEMnzz1kFRw"
sourceRef="_WZB-IM0AEd-jEMnzz1kFRw"
targetRef="_a3pegM0AEd-jEMnzz1kFRw"/>
+ <bpmn2:endEvent id="_a3pegM0AEd-jEMnzz1kFRw">
+ <bpmn2:incoming>_ZS2q8M0AEd-jEMnzz1kFRw</bpmn2:incoming>
+ </bpmn2:endEvent>
+ </bpmn2:process>
+</bpmn2:definitions>
\ No newline at end of file
Added:
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.prd.template
===================================================================
---
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.prd.template
(rev 0)
+++
trunk/bpmn/plugins/org.jboss.tools.jbpm/src/main/resources/org/jboss/tools/jbpm/wizard/project/sample.prd.template 2010-10-01
03:03:30 UTC (rev 25380)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL-XMI"
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
xmi:id="_KyIMcc0AEd-jEMnzz1kFRw" type="bpmn2"
name="sample.prd" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape"
xmi:id="_U0QYsM0AEd-jEMnzz1kFRw" type="2003"
fontName="Sans">
+ <element xmi:type="bpmn2:StartEvent"
href="sample.bpmn2#_U0GnsM0AEd-jEMnzz1kFRw"/>
+ <layoutConstraint xmi:type="notation:Bounds"
xmi:id="_U0QYsc0AEd-jEMnzz1kFRw" x="72" y="27"/>
+ </children>
+ <children xmi:type="notation:Shape"
xmi:id="_WZEaYM0AEd-jEMnzz1kFRw" type="2017"
fontName="Sans">
+ <children xmi:type="notation:DecorationNode"
xmi:id="_WZFogM0AEd-jEMnzz1kFRw" type="5009"/>
+ <element xmi:type="bpmn2:ScriptTask"
href="sample.bpmn2#_WZB-IM0AEd-jEMnzz1kFRw"/>
+ <layoutConstraint xmi:type="notation:Bounds"
xmi:id="_WZFBcM0AEd-jEMnzz1kFRw" x="162" y="18"
width="106"/>
+ </children>
+ <children xmi:type="notation:Shape"
xmi:id="_a3r6wM0AEd-jEMnzz1kFRw" type="2004"
fontName="Sans">
+ <element xmi:type="bpmn2:EndEvent"
href="sample.bpmn2#_a3pegM0AEd-jEMnzz1kFRw"/>
+ <layoutConstraint xmi:type="notation:Bounds"
xmi:id="_a3r6wc0AEd-jEMnzz1kFRw" x="324" y="27"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle"
xmi:id="_KyIMcs0AEd-jEMnzz1kFRw"/>
+ <element xmi:type="bpmn2:Process"
href="sample.bpmn2#_KyKosc0AEd-jEMnzz1kFRw"/>
+ <edges xmi:type="notation:Connector"
xmi:id="_WZQnoM0AEd-jEMnzz1kFRw" type="4001"
source="_U0QYsM0AEd-jEMnzz1kFRw" target="_WZEaYM0AEd-jEMnzz1kFRw">
+ <styles xmi:type="notation:FontStyle"
xmi:id="_WZQnoc0AEd-jEMnzz1kFRw" fontName="Sans"/>
+ <element xmi:type="bpmn2:SequenceFlow"
href="sample.bpmn2#_WZPZgM0AEd-jEMnzz1kFRw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_WZQnos0AEd-jEMnzz1kFRw" points="[0, 0, 0, -60]$[0, 60, 0,
0]"/>
+ </edges>
+ <edges xmi:type="notation:Connector"
xmi:id="_ZS6VUM0AEd-jEMnzz1kFRw" type="4001"
source="_WZEaYM0AEd-jEMnzz1kFRw" target="_a3r6wM0AEd-jEMnzz1kFRw">
+ <styles xmi:type="notation:FontStyle"
xmi:id="_ZS6VUc0AEd-jEMnzz1kFRw" fontName="Sans"/>
+ <element xmi:type="bpmn2:SequenceFlow"
href="sample.bpmn2#_ZS2q8M0AEd-jEMnzz1kFRw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_ZS6VUs0AEd-jEMnzz1kFRw" points="[0, 0, 0, -60]$[0, 60, 0,
0]"/>
+ </edges>
+</notation:Diagram>