Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 26 Next »

Building the Activiti Modeler for the first time

Check out the excellent documentation by Signavio: http://code.google.com/p/signavio-core-components/wiki/InstallationInstructions

Set the following properties and follow the instructions of the next section ('Preparing for a release') to get a working Activiti Modeler:

All other properties are optional.

Preparing for a release

  • Update your local version (svn up).
  • Update the version property in the build.properties file.
  • Here is my build.properties for reference (Joram):
# This is the Signavio Core Components configuration file. Most users only have to configure this file.

# The path to your Apache Tomcat webapps folder
dir-tomcat-webapps = /apache-tomcat-6.0.16/webapps

# The path to your jBoss deployment folder
dir-jboss-webapps = /jboss-5.1.0/server/default/deploy

# The folder the war file(s) is/are stored
target = target

# The version of the application. If you want to integrate the Signavio Core Components into
#  your own software product, you can align the version number.
version=5.0-SNAPSHOT

# The name of the war file, if you use the all-in-one-war build target
war = activiti-modeler

# The configuration you want to use. This is the name of the folder in the 'configuration' project
#  that contains the configuration and skin files. The following configurations are available:
#  default, Activiti, jBPM
#  You can also add your own configuration in the 'configuration' project.
configuration = Activiti

# The URL of your server. Format: http(s)://<domain>(:<port>)
#  Do not add a trailing slash here!
host = http://localhost:8080

# The path on your system the directories and diagram files are created.
# Do not use \ ! Always use / !
fileSystemRootDirectory = ../../../workspace/activiti-modeler-examples
  • Build the war using (on the root of signavio-core-components):
    The war file will be stored in the target folder.
  • Set or verify in user.home/.activiti/build.properties the modeler.target.folder property to point to the target folder, into which the Activiti Modeler has been built.
    eg.
  • Call the Ant target patch.activiti.modeler in distro/build.xml in the Activiti codebase. The easiest is to create a small script that does that for you on the root of the Modeler source:
    This will patch the modeler war to include the Cycle plugin and the Activiti stencil set.
    The patched war will be created in /target/patched

Testing the war

  1. Checkout the to-be-released (tag) version
  2. Edit distro/src/setup/build.xml : change the property 'activiti.modeler.download.url' to the war on your local system. Example:
  3. Comment the 'skip.deploy.activiti.modeler=true' property in the $user.home/.activiti/build.properties
  4. Build a new activiti distro (in qa dir: ant build.clean.distro or in distro dir: ant clean distro) and run the demo setup (in qa dir: ant test.demo.setup or in distro/target/activiti-${activiti.version}/setup/ dir: ant demo.setup).
  5. Verify if the modeler is correctly working.
  • No labels