提交 6e4ae885 编写于 作者: T trademak

Removed cycle and modeler references

上级 9c52cafb
......@@ -11,7 +11,4 @@ tomcat.version=6.0.32
# downloads.dir property to that directly. If tomcat is
# not found in the downloads.dir, it will be automatically
# downloaded there.
downloads.dir=../../downloads
# Remove this property or set it to disabled if you're not using Activiti Modeler
feature.modeler=enabled
\ No newline at end of file
downloads.dir=../../downloads
\ No newline at end of file
......@@ -12,8 +12,6 @@
<property name="activiti.version" value="5.9-SNAPSHOT" />
<property name="tomcat.url" value="http://activiti.org/downloads/" />
<property name="activiti.modeler.base.url" value="http://localhost:8080/activiti-modeler/" />
<!-- ### OS PROPERTIES #################################################################### -->
<condition property="is.windows">
......@@ -25,12 +23,6 @@
<os family="Windows"/>
</not>
</condition>
<!-- ### DEMO SETUP OPTIONAL FEATURES #################################################################### -->
<condition property="modeler.is.enabled">
<equals arg1="${feature.modeler}" arg2="enabled" />
</condition>
<!-- ### EXAMPLES #################################################################### -->
......
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Falko Menge <falko.menge@camunda.com>
*/
// define namespace if it doesn't already exist
if (!ORYX) {
var ORYX = new Object();
}
if (!ORYX.Plugins) {
ORYX.Plugins = new Object();
}
ORYX.Plugins.ActivitiCycle = ORYX.Plugins.AbstractPlugin.extend({
button: undefined,
panel: undefined,
numberOfLinks: 1,
construct: function() {
// call super class constructor
arguments.callee.$.construct.apply(this, arguments);
// add button to toolbar
// this.facade.offer({
// 'name': 'Activiti Cycle: 0 Links',
// 'cls': 'x-btn-text-icon', // button with icon and text
// 'functionality': this.perform.bind(this),
// 'group': 'Activiti',
// 'icon': ORYX.PATH + "images/activiti_logo_16x16.png",
// 'description': 'Activiti Cycle',
// 'index': 1,
// 'minShape': 0,
// 'maxShape': 0
// });
this.panel = new Ext.Panel({
title: this.getPanelTitle(),
cls: 'activiticyclepanel',
border: false,
autoWidth: true,
autoScroll: true,
tbar: [{
text: 'Show links',
handler: this.showLinks.bind(this),
'cls': 'x-btn-text-icon', // button with icon and text
'icon': ORYX.PATH + "images/activiti_logo_16x16.png"
},{
text: 'Add link',
handler: this.openAddLinkDialog.bind(this),
'cls': 'x-btn-text-icon', // button with icon and text
'icon': ORYX.PATH + "images/activiti_logo_16x16.png"
}]//,
// html: '3 Artifacts linked with this model'
});
var region = this.facade.addToRegion("west", this.panel);
// this.button = new Ext.Button({
// text: 'Add Link',
// 'cls': 'x-btn-text-icon', // button with icon and text
// 'icon': ORYX.PATH + "images/activiti_logo_16x16.png",
// autoWidth: true,
// handler: this.perform.bind(this)
// });
// this.panel.add(this.button);
// this.panel.doLayout();
},
showLinks: function () {
// fake data
validExtensions = [ {
title : 'ABPM-2',
definition : 'User Story',
'extends' : 'JIRA'
} ];
loadedExtensions = [];
successCallback = this.openAddLinkDialog.bind(this);
// Extract the data
var data = [];
validExtensions.each(function(value){
data.push([value.title, value.definition, value["extends"]]);
});
// Create a new Selection Model
var sm = new Ext.grid.CheckboxSelectionModel();
// Create a new Grid with a selection box
var grid = new Ext.grid.GridPanel({
deferRowRender: false,
id: 'oryx_new_stencilset_extention_grid',
store: new Ext.data.SimpleStore({
fields: ['title', 'definition', 'extends']
}),
cm: new Ext.grid.ColumnModel([
sm,
{
header: 'Target Artifact',
width: 200,
sortable: true,
dataIndex: 'title'
},
{
header: 'Type',
width: 90,
sortable: true,
dataIndex: 'definition'
},
{
header: 'Repository',
width: 90,
sortable: true,
dataIndex: 'extends'
}
]),
sm: sm,
frame: true,
width: 400,
height: 400,
iconCls: 'icon-grid',
listeners: {
"render": function(){
this.getStore().loadData(data);
selectItems.defer(1);
}
}
});
function selectItems() {
// Select loaded extensions
var selectedRecords = new Array();
grid.store.each(function(rec) {
if(loadedExtensions.any(function(ext) { return ext.definition == rec.get('definition'); }))
selectedRecords.push(rec);
});
sm.selectRecords(selectedRecords);
}
/* grid.store.on("load", function() {
console.log("okay");
grid.getSelectionModel().selectRecords(selectedRecords);
}, this, {delay:500});*/
// Create a new Panel
var panel = new Ext.Panel({
items: [{
xtype: 'label',
text: 'The following list show artifacts from Activiti Cycle that are linked with the current model.',
style: 'margin:10px;display:block'
}, grid],
frame: true,
buttons: [{
text: 'Remove selected links',
handler: function(){
var selectionModel = Ext.getCmp('oryx_new_stencilset_extention_grid').getSelectionModel();
var result = selectionModel.selections.items.collect(function(item){
return item.data;
});
// Ext.getCmp('activiti_cycle_show_links_window').close();
successCallback(result);
}.bind(this)
}, {
text: 'Add link',
handler: function(){
var selectionModel = Ext.getCmp('oryx_new_stencilset_extention_grid').getSelectionModel();
var result = selectionModel.selections.items.collect(function(item){
return item.data;
});
// Ext.getCmp('activiti_cycle_show_links_window').close();
successCallback(result);
}.bind(this)
}, {
text: 'Close',
handler: function(){
Ext.getCmp('activiti_cycle_show_links_window').close();
}.bind(this)
}]
});
// Create a new Window
var window = new Ext.Window({
id: 'activiti_cycle_show_links_window',
width: 427,
title: 'Activiti Cycle: Linked Artifacts',
floating: true,
shim: true,
modal: true,
resizable: false,
autoHeight: true,
items: [panel]
});
// Show the window
window.show();
},
openAddLinkDialog: function () {
var options = [
[
undefined,
'User Story',
'user_story'
]
];
var store = new Ext.data.SimpleStore({
fields: [{name: 'icon'},
{name: 'title'},
{name: 'value'} ],
data : options
});
var typeCombo = new Ext.form.ComboBox({
tpl: '<tpl for="."><div class="x-combo-list-item">{[(values.icon) ? "<img src=\'" + values.icon + "\' />" : ""]} {title}</div></tpl>',
store: store,
displayField:'title',
valueField: 'value',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true
});
// Create a new Panel
var panel = new Ext.Panel({
items: [
{
xtype: 'label',
text: 'Please select the target artifact from Activiti Cycle that should be linked with the current model.',
style: 'margin-top:5px;margin-bottom:5px;display:block'
},
{
xtype: 'panel',
frame: true,
html: '<iframe src="http://localhost:8080/activiti-cycle/" width="389" height="300" frameborder="no" />'
},
{
xtype: 'label',
text: 'Type:',
style: 'margin-top:10px;display:block'
},
typeCombo
],
frame: true,
buttons: [{
text: 'Add link',
handler: function(){
this.addLink();
Ext.getCmp('activiti_cycle_add_link_window').close();
}.bind(this)
}, {
text: 'Cancel',
handler: function(){
Ext.getCmp('activiti_cycle_add_link_window').close();
}.bind(this)
}]
});
// Create a new Window
var window = new Ext.Window({
id: 'activiti_cycle_add_link_window',
width: 427,
title: 'Activiti Cycle: Add Link',
floating: true,
shim: true,
modal: true,
resizable: false,
autoHeight: true,
items: [panel]
});
// Show the window
window.show();
},
addLink: function () {
++this.numberOfLinks;
this.panel.setTitle(this.getPanelTitle());
},
getPanelTitle: function () {
return 'Activiti Cycle: ' + this.numberOfLinks + ' artifact' + (this.numberOfLinks == 1 ? '' : 's') + ' linked';
}
});
# Defines the home directory of the Activiti installation.
# The value is either the absolute path to ${acitviti.home} or the relative path
activiti.home = C://Projekte_Activiti/activiti/distro/target/activiti-5.9-SNAPSHOT
activiti.tomcat.lib = C://Projekte_Activiti/activiti/distro/target/activiti-5.9-SNAPSHOT/apps/apache-tomcat-6.0.29/lib
<?xml version="1.0" encoding="UTF-8"?>
<project name="EasyBugFilingProcess" default="compile">
<property file="build.properties" />
<property name="target.dir" value="target" />
<property name="activiti.cfg.jar" value="${activiti.tomcat.home.lib}/activiti-cfg.jar" />
<property name="maven.repo.local" value="${user.home}/.m2/repository" />
<property name="maven.ant.tasks.version" value="2.1.3" />
<property name="maven.ant.tasks.dir" value="${maven.repo.local}/org/apache/maven/maven-ant-tasks/${maven.ant.tasks.version}/" />
<property name="maven.ant.tasks.jar" value="${maven.ant.tasks.dir}/maven-ant-tasks-${maven.ant.tasks.version}.jar" />
<property name="maven.ant.tasks.bootstrap.location"
value="http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/${maven.ant.tasks.version}/maven-ant-tasks-${maven.ant.tasks.version}.jar" />
<available property="maven.ant.tasks.jar.exists" file="${maven.ant.tasks.jar}" />
<!--
This will download the "latest version" of the maven-ant-tasks if
needed
-->
<target name="bootstrap.maven.tasks" unless="maven.ant.tasks.jar.exists">
<mkdir dir="${maven.ant.tasks.dir}" />
<get src="${maven.ant.tasks.bootstrap.location}" dest="${maven.ant.tasks.jar}" />
</target>
<!-- This will make the connection of ANT to your maven project -->
<target name="mvn.init" unless="compile.classpath" depends="bootstrap.maven.tasks"
xmlns:artifact="urn:maven-artifact-ant">
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpath="${maven.ant.tasks.jar}" />
<condition property="maven.repo.local" value="${maven.repo.local}" else="${user.home}/.m2/repository">
<isset property="maven.repo.local" />
</condition>
<echo>Using maven.repo.local=${maven.repo.local}</echo>
<artifact:localRepository id="local.repository" path="${maven.repo.local}" />
<artifact:pom file="pom.xml" id="maven.project" />
<artifact:dependencies pathId="compile.classpath" filesetId="compile.fileset" useScope="compile">
<pom refid="maven.project" />
<localRepository refid="local.repository" />
</artifact:dependencies>
<artifact:dependencies pathId="test.classpath" filesetId="test.fileset" useScope="test">
<pom refid="maven.project" />
<localRepository refid="local.repository" />
</artifact:dependencies>
<artifact:dependencies pathId="runtime.classpath" filesetId="runtime.fileset" useScope="runtime">
<pom refid="maven.project" />
<localRepository refid="local.repository" />
</artifact:dependencies>
</target>
<target name="clean">
<delete dir="target" />
</target>
<target name="compile" depends="mvn.init">
<mkdir dir="target/classes" />
<javac srcdir="src/main/java" destdir="target/classes"
classpathref="compile.classpath" />
<copy todir="target/classes">
<fileset dir="src/main/java" excludes="**/*.java" />
</copy>
<copy todir="target/classes" failonerror="false">
<fileset dir="src/main/resources" />
</copy>
</target>
<!-- package our jar file -->
<target name="package" depends="compile">
<jar destfile="${target.dir}/${ant.project.name}.jar" basedir="target/classes">
<include name="**/*.class" />
</jar>
<jar destfile="${target.dir}/${ant.project.name}.bar" basedir="src/main/resources">
<include name="**/*.bpmn20.xml" />
<include name="**/*.form" />
</jar>
</target>
<target name="deploy.bar" depends="package, mvn.init">
<taskdef name="deploy-bar" classname="org.activiti.engine.impl.ant.DeployBarTask">
<classpath>
<!-- add activiti.cfg.xml for database connection -->
<pathelement location="target/classes" />
<path refid="runtime.classpath" />
</classpath>
</taskdef>
<deploy-bar file="${target.dir}/${ant.project.name}.bar" />
</target>
<target name="deploy.jar" depends="package">
<!-- A bit hacky, but quickest way to deploy classes to your Tomcat -->
<copy file="${target.dir}/${ant.project.name}.jar" todir="${activiti.tomcat.lib}"/>
<echo message="Restart your Tomcat that the changes in the classpath can take effect" />
</target>
<target name="print">
<sequential>
<pathconvert pathsep="${line.separator}" property="echopath"
refid="runtime.classpath" />
<echo> ------- echoing runtime.classpath -------</echo>
<echo>${echopath}</echo>
</sequential>
</target>
</project>
<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>
<name>EasyBugFilingProcess</name>
<groupId>org.activiti</groupId>
<artifactId>EasyBugFilingProcess</artifactId>
<version>5.9-SNAPSHOT</version>
<packaging>jar</packaging>
<parent>
<!-- use the parent for correct dependency versions -->
<groupId>org.activiti</groupId>
<artifactId>activiti-root</artifactId>
<version>5.9-SNAPSHOT</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<!--
<version>3.8.1</version>
-->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<!--
<version>5.9-SNAPSHOT</version>
-->
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<!--
<version>1.2.132</version>
-->
</dependency>
</dependencies>
<repositories>
<repository>
<id>camunda</id>
<url>http://fox.camunda.com/mvn/</url>
</repository>
</repositories>
</project>
This is the result of a demo we did for a screencast available here:
http://www.bpm-guide.de/wp-content/uploads/2010/11/EasyBugFilingProcess/EasyBugFilingProcess.html
This project works if you adjust the build.properties to your needs.
package com.camunda.training.client;
import java.util.HashMap;
import java.util.Map;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RuntimeService;
public class StartProcess {
public static void main(String[] args) {
ProcessEngines.init();
ProcessEngine processEngine = ProcessEngines.getProcessEngine(ProcessEngines.NAME_DEFAULT);
RuntimeService runtimeService = processEngine.getRuntimeService();
Map<String,Object> variables = new HashMap<String,Object>();
variables.put("test", "test");
runtimeService.startProcessInstanceByKey("EasyBugFilingProcess", variables);
}
}
package com.camunda.training.delegate;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
public class FileIssueDelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
System.out.println("We create a issue for execution id " + execution.getId());
}
}
package com.camunda.training.delegate;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.activiti.engine.impl.runtime.ExecutionEntity;
public class SysoutDelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
System.out.println("Execution " + execution.getId() + " passes by " + ((ExecutionEntity)execution).getActivityId() + "...");
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns:activiti="http://activiti.org/bpmn" id="sid-00be6558-49c4-4c46-bb85-c18f49f79820" targetNamespace="http://www.omg.org/bpmn20" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
<process name="EasyBugFilingProcess" id="EasyBugFilingProcess">
<startEvent name="new bug report filed" id="new_bug_report_filed" activiti:formKey="fileBug.form"/>
<userTask activiti:assignee="kermit" name="Handle bug" id="Handle_bug" activiti:formKey="handleBug.form"/>
<exclusiveGateway gatewayDirection="Diverging" name="is bug?" id="is_bug_"/>
<serviceTask activiti:class="com.camunda.training.delegate.FileIssueDelegate" name="insert into issue tracker" id="insert_into_issue_tracker"/>
<exclusiveGateway gatewayDirection="Converging" name="" id="Exclusive_Databased_Gateway"/>
<serviceTask name="send notification email to customer" id="send_notification_email_to_customer" activiti:type="mail">
<extensionElements>
<activiti:field name="from" stringValue="activiti@camunda.com" />
<activiti:field name="to" expression="${email}" />
<activiti:field name="subject" expression="Your issue id ${execution.id} has been worked on" />
<activiti:field name="html">
<activiti:expression>
<![CDATA[
<html>
<body>
Hello from Activiti.
</body>
</html>
]]>
</activiti:expression>
</activiti:field>
</extensionElements>
</serviceTask>
<endEvent name="" id="EndNoneEvent"/>
<sequenceFlow targetRef="Handle_bug" sourceRef="new_bug_report_filed" name="" id="SequenceFlow_1"/>
<sequenceFlow targetRef="is_bug_" sourceRef="Handle_bug" name="" id="SequenceFlow"/>
<sequenceFlow targetRef="insert_into_issue_tracker" sourceRef="is_bug_" name="" id="SequenceFlow_2">
<conditionExpression xsi:type="tFormalExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">${isBug}</conditionExpression>
</sequenceFlow>
<sequenceFlow targetRef="Exclusive_Databased_Gateway" sourceRef="insert_into_issue_tracker" name="" id="SequenceFlow_3"/>
<sequenceFlow targetRef="send_notification_email_to_customer" sourceRef="Exclusive_Databased_Gateway" name="" id="SequenceFlow_4"/>
<sequenceFlow targetRef="EndNoneEvent" sourceRef="send_notification_email_to_customer" name="" id="SequenceFlow_5"/>
<sequenceFlow targetRef="Exclusive_Databased_Gateway" sourceRef="is_bug_" name="" id="SequenceFlow_6">
<conditionExpression xsi:type="tFormalExpression" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">${!isBug}</conditionExpression>
</sequenceFlow>
</process>
</definitions>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<!-- Database configurations -->
<property name="databaseSchemaUpdate" value="true" />
</bean>
</beans>
<h1>File bug</h1>
<p>
<b>Email: </b>
<input type="text" name="email" value="" />
<input type="hidden" name="email_required" value="true" />
<p>
<p>
<b>Title: </b>
<input type="text" name="title" value="" />
<input type="hidden" name="title_required" value="true" />
<p>
<p>
<b>Bug description:</b><br/>
<textarea name="description" value=""></textarea>
</p>
<h1>Please handle this bug</h1>
<p>
<b>Email:</b> ${email}
<p>
<p>
<b>Title:</b> ${title}
<p>
<p>
<b>Description:</b> ${description}
<p>
<p>
<b>Is it really a bug?</b><br/>
<input type="radio" name="isBug" value="true" checked="true"/> Yes <br/>
<input type="radio" name="isBug" value="false"/> No <br/>
<input type="hidden" name="isBug_type" value="Boolean"/>
</p>
handlers = java.util.logging.ConsoleHandler
.level = FINE
java.util.logging.ConsoleHandler.level=FINEST
java.util.logging.ConsoleHandler.formatter=org.activiti.engine.impl.util.LogUtil$LogFormatter
package com.camunda.training;
import java.util.HashMap;
import java.util.List;
import org.activiti.engine.history.HistoricProcessInstance;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import org.activiti.engine.test.ActivitiTestCase;
import org.activiti.engine.test.Deployment;
public class ProcessTestCase extends ActivitiTestCase {
public void assertInActivity(String processInstanceId, String activityId) {
List<String> activeActivityIds = runtimeService.getActiveActivityIds(processInstanceId);
assertTrue("Current activities (" + activeActivityIds + ") does not contain " + activityId, activeActivityIds.contains(activityId));
}
@Deployment(resources = "EasyBugFilingProcess.bpmn20.xml")
public void testHappyPath() {
HashMap<String, Object> variables = new HashMap<String, Object>();
variables.put("email", "bernd.ruecker@camunda.com");
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("EasyBugFilingProcess", variables);
String id = processInstance.getId();
System.out.println("Started process instance id " + id);
assertInActivity(id, "Handle_bug");
Task task = taskService.createTaskQuery().taskAssignee("kermit").singleResult();
variables = new HashMap<String, Object>();
variables.put("isBug", Boolean.TRUE);
taskService.complete(task.getId(), variables);
assertProcessEnded(id);
HistoricProcessInstance historicProcessInstance = historicDataService.createHistoricProcessInstanceQuery().processInstanceId(id).singleResult();
assertNotNull(historicProcessInstance);
System.out.println("Finished, took " + historicProcessInstance.getDurationInMillis() + " millis");
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
</bean>
</beans>
db=h2
jdbc.driver=org.h2.Driver
jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000
jdbc.url=jdbc:h2:tcp://localhost/activiti
jdbc.username=sa
jdbc.password=
......@@ -88,14 +88,6 @@
<property name="webapp.redeploy.module" value="explorer"/>
<antcall target="webapp.redeploy"/>
</target>
<!--
See comment in "webapp.cycle.redeploy.resources"
<target name="webapp.cycle.redeploy">
<property name="webapp.redeploy.module" value="activiti-webapp-cycle"/>
<antcall target="webapp.redeploy"/>
</target>
-->
<target name="webapp.redeploy">
<fail message="To use this target, set property webapp.redeploy.module to the chosen module" unless="webapp.redeploy.module"/>
......@@ -159,28 +151,6 @@ Then run test.demo.setup to make it get placed inside your tomcat server." unles
<antcall target="webapp.redeploy.resources"/>
</target>
<!--
NOTE: the below applies to all webapps. (probe and explorer are now prefixed "activti-webapp-",
but still deployed with prefix "activiti-" )
The cycle webapp mvn module is called activiti-webapp-cycle, whereas the deployment in
the server is called activiti-cycle, so the standard deployment with the module name doesn't
work... Temporarily added a separate, non-generic target "webapp.cycle.redeploy.resources"
<target name="webapp.cycle.redeploy.resources">
<property name="webapp.redeploy.module" value="webapp-cycle"/>
<antcall target="webapp.redeploy.resources"/>
</target>
-->
<target name="webapp.cycle.redeploy.resources">
<copy todir="${tomcat.home}/webapps/activiti-cycle" verbose="true">
<fileset dir="../modules/activiti-webapp/src/main/webapp/" excludes="WEB-INF/web.xml" />
</copy>
<copy todir="${tomcat.home}/webapps/activiti-cycle" verbose="true">
<fileset dir="../modules/activiti-webapp-cycle/src/main/webapp/" excludes="WEB-INF/web.xml" />
</copy>
</target>
<target name="webapp.redeploy.resources">
<copy todir="${tomcat.home}/webapps/activiti-${webapp.redeploy.module}" verbose="true">
<fileset dir="../modules/activiti-webapp/src/main/webapp/" excludes="WEB-INF/web.xml" />
......
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
<property name="jdbcUrl" value="@jdbc.url@" />
<property name="jdbcDriver" value="@jdbc.driver@" />
<property name="jdbcUsername" value="@jdbc.username@" />
<property name="jdbcPassword" value="@jdbc.password@" />
<property name="dbHistoryUsed" value="false" />
<property name="dbCycleUsed" value="true" />
<!-- Database configurations -->
<property name="databaseSchemaUpdate" value="true" />
<!-- job executor configurations -->
<property name="jobExecutorActivate" value="false" />
<!-- mail server configurations -->
<property name="mailServerPort" value="5025" />
</bean>
</beans>
......@@ -18,25 +18,6 @@
<javaresource name="org/activiti/db/create/activiti.${database}.create.engine.sql" classpathref="test.classpath"/>
<javaresource name="org/activiti/db/create/activiti.${database}.create.history.sql" classpathref="test.classpath"/>
<javaresource name="org/activiti/db/create/activiti.${database}.create.identity.sql" classpathref="test.classpath"/>
<!-- javaresource name="org/activiti/db/create/activiti.${database}.create.cycle.sql" classpathref="test.classpath"/ -->
</sql>
</target>
<target name="create.db.schema.cycle">
<echo message="creating cycle database schema"/>
<echo message=" basedir: ${basedir}"/>
<echo message=" database: ${database}"/>
<property file="${user.home}/.activiti/jdbc/${database}.properties"/>
<echo message=" jdbc.driver: ${jdbc.driver}"/>
<echo message=" jdbc.url: ${jdbc.url}"/>
<echo message=" jdbc.username: ${jdbc.username}"/>
<echo message=" jdbc.password: ${jdbc.password}"/>
<!-- echo message=" test_classpath: ${test_classpath}" / -->
<path id="test.classpath">
<pathelement path="${test_classpath}"/>
</path>
<sql driver="${jdbc.driver}" password="${jdbc.password}" url="${jdbc.url}" userid="${jdbc.username}" classpathref="test.classpath">
<javaresource name="org/activiti/db/cycle/create/activiti.${database}.create.sql" classpathref="test.classpath"/>
</sql>
</target>
......@@ -57,25 +38,6 @@
<javaresource name="org/activiti/db/drop/activiti.${database}.drop.engine.sql" classpathref="test.classpath"/>
<javaresource name="org/activiti/db/drop/activiti.${database}.drop.history.sql" classpathref="test.classpath"/>
<javaresource name="org/activiti/db/drop/activiti.${database}.drop.identity.sql" classpathref="test.classpath"/>
<!-- javaresource name="org/activiti/db/drop/activiti.${database}.drop.cycle.sql" classpathref="test.classpath"/ -->
</sql>
</target>
<target name="drop.db.schema.cycle">
<echo message="dropping cycle database schema"/>
<echo message=" basedir: ${basedir}"/>
<echo message=" database: ${database}"/>
<property file="${user.home}/.activiti/jdbc/${database}.properties"/>
<echo message=" jdbc.driver: ${jdbc.driver}"/>
<echo message=" jdbc.url: ${jdbc.url}"/>
<echo message=" jdbc.username: ${jdbc.username}"/>
<echo message=" jdbc.password: ${jdbc.password}"/>
<!-- echo message=" test_classpath: ${test_classpath}" / -->
<path id="test.classpath">
<pathelement path="${test_classpath}"/>
</path>
<sql driver="${jdbc.driver}" password="${jdbc.password}" url="${jdbc.url}" userid="${jdbc.username}" classpathref="test.classpath">
<javaresource name="org/activiti/db/cycle/drop/activiti.${database}.drop.sql" classpathref="test.classpath"/>
</sql>
</target>
......
......@@ -17,10 +17,3 @@ drop table ACT_HI_TASKINST cascade;
drop table ACT_HI_DETAIL cascade;
drop table ACT_HI_COMMENT cascade;
drop table ACT_HI_ATTACHMENT cascade;
drop table ACT_CY_CONN_CONFIG cascade;
drop table ACT_CY_CONFIG cascade;
drop table ACT_CY_LINK cascade;
drop table ACT_CY_PEOPLE_LINK cascade;
drop table ACT_CY_TAG cascade;
drop table ACT_CY_COMMENT cascade;
......@@ -16,11 +16,4 @@ drop table ACT_HI_ACTINST cascade;
drop table ACT_HI_TASKINST cascade;
drop table ACT_HI_DETAIL cascade;
drop table ACT_HI_COMMENT cascade;
drop table ACT_HI_ATTACHMENT cascade;
drop table ACT_CY_CONN_CONFIG cascade;
drop table ACT_CY_CONFIG cascade;
drop table ACT_CY_LINK cascade;
drop table ACT_CY_PEOPLE_LINK cascade;
drop table ACT_CY_TAG cascade;
drop table ACT_CY_COMMENT cascade;
\ No newline at end of file
drop table ACT_HI_ATTACHMENT cascade;
\ No newline at end of file
......@@ -16,11 +16,4 @@ drop table ACT_HI_ACTINST cascade constraints;
drop table ACT_HI_TASKINST cascade constraints;
drop table ACT_HI_DETAIL cascade constraints;
drop table ACT_HI_COMMENT cascade constraints;
drop table ACT_HI_ATTACHMENT cascade constraints;
drop table ACT_CY_CONN_CONFIG cascade constraints;
drop table ACT_CY_CONFIG cascade constraints;
drop table ACT_CY_LINK cascade constraints;
drop table ACT_CY_PEOPLE_LINK cascade constraints;
drop table ACT_CY_TAG cascade constraints;
drop table ACT_CY_COMMENT cascade constraints;
\ No newline at end of file
drop table ACT_HI_ATTACHMENT cascade constraints;
\ No newline at end of file
......@@ -17,10 +17,3 @@ drop table ACT_HI_TASKINST cascade;
drop table ACT_HI_DETAIL cascade;
drop table ACT_HI_COMMENT cascade;
drop table ACT_HI_ATTACHMENT cascade;
drop table ACT_CY_CONN_CONFIG cascade;
drop table ACT_CY_CONFIG cascade;
drop table ACT_CY_LINK cascade;
drop table ACT_CY_PEOPLE_LINK cascade;
drop table ACT_CY_TAG cascade;
drop table ACT_CY_COMMENT cascade;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册