`
hong114126
  • 浏览: 28408 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Activiti工作流详解一

阅读更多

 最近项目中使用工作流activiti,采用activiti-rest方式。下载将activiti学习过程总的总结作一下分享。希望大家拍砖。谢谢!

 

工作流activiti的下载地址:

     http://activiti.org/download.html

工作流activiti的必须的软件

JDK5+Ant1.81+Eclipse3.6.2

JDK:查看版本 java –version

ANT:查看版本 ant –version

运行默认的Demo安装:

   1.需要配置JAVA_HOME,ANT_HOME环境变量。

   2.更新(C:\mash_activiti-5.6\setup)build.propertiesbuild.{your-database}.properties属性文件参数。

   3.运行ant命令(C:\mash_activiti-5.6\setup)ant demo.start

   4.如果运行不报错的,activitidemo部署成功了。

运行ant的目的官方描述如下:

   This ant target will start a tomcat and a H2 database if you didn't change the default setings.(如果你再启动时候不更改相关的配置文件信息,ant将帮助你启动tomcat和H2数据库) The first time when the script is executed, it will also perform following installations: (第一次执行这个命令需要执行一下步骤)

·         (*) Build the webapps. All libraries are stored in ${actviti.home}/setup/files/dependencies/libs The webapps without the libs are stored in ${actviti.home}/setup/files/webapps. Building the webapps means that webapps are combined with the necessary libraries in ${actviti.home}/setup/build/webapps (activiti的WebApp工具在 ${actviti.home}/setup/build/webapps )

·         (*) Install the H2 in ${activiti.home}/apps/h2. This only happens if you're using h2 as your database. H2 is the default database.(H2的安装位置为 ${activiti.home}/apps/h2)

·         Start the H2 database. Again, this is only done if using h2 as the database. If you're using a different database it is assumed that it is already up and running.(启动H2数据库)

·         (*) Create the Activiti tables in the database(创建activiti相关的表结构)

·         (*) Insert the demo users and groups in the Activiti identity tables (向activiti对象的数据库中插入默认的用户和用户组)

·         (*) Deploy the example processes to the Activiti Engine DB(将实例demo中流程信息部署到activiti引擎对应的数据库)

·         (*) Download Tomcat if not available in the ${downloads.dir}(如果在build.properties文件中downloads.dir下Tomcat不可用用或者不存在自动下载Tomcat)

·         (*) Install Tomcat in ${activiti.home}/apps/apache-tomcat-${tomcat.version}(安装Tomcat)

·         (*) Create an Activiti configuration jar  (创建Activiti的配置文件activiti.cfg.xml等信息)

·         (*) Deploy the REST interface webapp into tomcat(部署REST接口的webapp信息到tomcat中)

·         (*) Download the Activiti Modeler webapp to ${activiti.home}/webapps. The license for the Activiti Modeler is MIT.(下载activiti-Modeler对象到目录)

·         (*) Deploy the Probe, Explorer and Modeler webapps into tomcat.(部署activiti的相关的webapp tools)

·         Start tomcat

(*) only performed the first time when running ant demo.start

After running this target H2 and Tomcat will be running in the background. To stop those processes run ant demo.stop.

The other targets in that build script can also be called individually and they will take the configurable properties into account. Run ant -p for more details.

讲述安装的目的:1.向拷贝依赖jaractiviti webapp工具文件信息
2.
如果相应的目录(C:\mash_activiti-5.6\apps)中的tomcatH2tomant不可用的,则下载相关的软件。
3..
向对应H2数据库中添加相关的数据。
4.
启动tomcatH2数据库服务。

默认demo用户信息:

Table 2.1. The demo users

 

UserId

Password

Security roles

kermit

kermit

admin

gonzo

gonzo

manager

fozzie

fozzie

user

部署成功之后我们可以访问的activiti提供的webapp工具如下:

Table 2.2. The webapp tools

 

Webapp Name

URL

Description

 

Activiti Probe

http://ip:8080/activiti-probe 
管理控制台用于查看工作流引擎相关的信息(流程,数据库,定时任务,部署)

The admin management console. Use this tool to see if the configured process engine is correctly initialized, DB tables contents.

 

Activiti Explorer

http://ip:8080/activiti-explorer (用于查看流程和任务,以及流程详细信息和启动流程)

The process engine user console. Use this tool to view your personal and candidate task lists and to complete tasks.

 

Activiti Cycle

http://ip:8080/activiti-cycle

The Activiti collabotation tool. Use this to browse repositories and execute transformations between model formats.

 

Activiti Modeler powered by Signavio

http://ip:8080/activiti-modeler

The web based process designer tool. Use this tool to graphically author BPMN 2.0 compliant process definitions files.

 

Activiti KickStart

http://ip:8080/activiti-kickstart

Allows to specify processes quickly and efficiently in an adhoc way. Simple processes, quick prototypes and adhoc workflow are created in no time using KickStart.

 

Activiti Administrator

http://ip:8080/activiti-administrator

A webapp to administer the users and groups. Currently this is realized as a seperate app, but we plan to unify some of the webapps into a single webapp with authorization.

 

 

Note that the Activiti demo setup is a way of showing the capabilities and functionality of Activiti as easy and as fast as possible. This does however, not mean that it is the only way of using Activiti. As Activiti is 'just a jar', it can be embedded in any Java environment: with swing or on a Tomcat, JBoss, WebSphere, etc. Or you could very well choose to run Activiti as a typical, standalone BPM server. If it is possible in Java, it is possible with Activiti!

activiti的实例实例工程中。

activiti-engine-examples: This set of examples show the most common usage of Activiti: BPMN process definitions and process executions are stored in a DB and the examples make use of the persistent API.()

This project contains the eclipse project files, an ant build file and a maven pom file. The ant build file is independent of the maven pom. Both are there to show how you can use ant and maven respectively for building and deploying processes as part of your build.

activiti-spring-examples: These examples show how you can use the Activiti Engine in a Spring environment.(activitiSpring的整合实例demo)

activiti-groovy-examples: These examples show the library dependencies for groovy and an example process with groovy scripting.

activiti-jpa-examples: These examples show library dependencies and how you can work with JPA in Activiti.

activiti-cxf-examples: These examples show library dependencies and how you can work with web services in Activiti.

activiti-cycle-examples: This is a project containing an demo example project for Activiti Cycle

activiti-modeler-examples: This is a file based model repository to which the Activiti Modeler is configured in the demo setup.

 activitiLibrary依赖的包:
所有的lib文件都被放在setup/files/dependencies/libs,其中activiti-5.6\setup\files\dependencies中每一个文件包含了不同项目依赖的lib文件的名称集合。

·         libs.engine.runtime.txt: The library runtime dependencies to run the Activiti Engine.

 

·         libs.engine.runtime.test.txt: The libraries that need to be added to the ones in libs.engine.runtime.txt to run the tests

 

·         libs.engine.runtime.feature.groovy.txt: The libraries that need to be added to the ones in libs.engine.runtime.txt to use the groovy scripting capabilities.

 

·         libs.engine.runtime.txt: The libraries that need to be added to the ones in libs.engine.runtime.txt to use the JPA variable reference capabilities.

 

·         libs.spring.runtime.txt: The library runtime dependencies to run the Activiti Engine in a Spring environment. (This list includes the libs in libs.engine.runtime.txt)

 

·         libs.spring.runtime.test.txt: The libraries that need to be added to the ones in libs.spring.runtime.txt to run tests in a Spring environment (Spring和activiti整合需要的所有lib文件)

 

·         libs.cycle.runtime.test.txt, libs.webapp.rest.txt and libs.webapp.ui.txt: The full list of libraries dependencies for the respective components cycle, the rest webapp and the UI webapps like Activiti Explorer, Activiti Probe and Activiti Cycle (activiti REST整合,activiti-explorer需要的所有lib文件)

分享到:
评论

相关推荐

    Activiti工作流详解完整教程

    Activiti工作流详解完整教程, 1) JDK1.6或者更高版本 2) 支持的数据库有:h2,mysql,oracle,mysql,db2等 3) 支持Activiti运行的jar包,可以通过maven依赖引入 4) 开发环境为Eclipse3.7或者以上版本,myeclipse为8.6...

    Activiti工作流引擎入门

    Activiti工作流引擎是Java平台上的一个开源工作流管理系统,专为简化业务流程自动化而设计。它使用BPMN(Business Process Model and Notation)2.0标准进行流程建模,使得非技术人员也能理解并创建复杂的业务流程。...

    activiti 工作流23张表详细介绍

    ### Activiti工作流23张表详细介绍 #### 一、Activiti数据库表结构概述 Activiti是一款开源的工作流引擎,其强大的流程管理能力使得它在众多业务场景中得到广泛应用。为了更好地理解Activiti如何存储流程数据,本...

    Activiti工作流教学

    Activiti工作流两天上手教程。详解工作流主流技术,从环境安装、核心API讲解到流程实例、任务执行,不错的java工作流教程

    Activiti工作流数据库表结构.docx

    Activiti工作流数据库表结构详解 Activiti是一款基于Java的开源工作流引擎,可以实现业务流程自动化和工作流管理。为了更好地理解Activiti的工作机制,我们需要了解Activiti工作流数据库表结构。 Activiti工作流...

    初识工作流 Activiti 视频详解

    Activiti工作流视频详解,带课程文档Activiti工作流视频详解,带课程文档

    Activiti工作流数据库表结构

    ### Activiti工作流数据库表结构详解 #### 一、概述 Activiti是一个开源的工作流引擎,基于Java语言实现,能够支持BPMN 2.0标准。它提供了一套完整的解决方案来管理和执行业务流程,包括流程建模、执行、监控等...

    activiti工作流

    ### Activiti工作流详解 #### 一、工作流概念与定义 **工作流(Workflow)**是一种将业务过程的某部分或全部实现计算机自动化的方式。它主要用于处理文档、信息或任务在多个参与者之间的传递过程,目的是为了实现...

    Activiti-5.21数据库表结构详解(共25张表)

    工作流的应用越来越广泛,而activiti是公认的现阶段最好的工作流框架之一,详细了解activiti的库表结构有助于您更好的掌握学习工作流框架,共享本资源以供广大编程从业人员学习交流,望本资源可以帮助您更上一层楼。

    Activiti工作流开发笔记

    ### Activiti工作流开发知识点详解 #### 一、工作流概念与原理 1. **工作流定义**:工作流指的是“业务过程的部分或整体在计算机应用环境下的自动化”。其核心目的是通过自动化流程来提高效率,确保流程按照预定的...

    activiti工作流的新手入门答疑

    虽然国产的工作流较多,但开源一直为activiti和JBPM所垄断,相对来说acticiti更为灵活,但目前国内关于activiti的资料还是比较少,或几乎没有,而本书无疑是activiti工作流的新手入门答疑书籍,本书籍包括activiti...

    activiti工作流.docx

    ### Activiti工作流知识点详解 #### 一、Activiti简介 Activiti是一个开源的业务流程管理(BPM)框架,由Alfresco软件在2010年5月17日发布。它不仅覆盖了业务流程管理、工作流和服务协作等领域,而且提供了一个...

    activiti,入门详解

    【Activiti工作流入门详解】 Activiti是一款开源的工作流程引擎,它基于模型驱动的架构,提供了高度可扩展性和灵活性,广泛应用于企业的业务流程自动化。在本文中,我们将深入理解如何入门Activiti,包括配置安装、...

    传智播客_Activiti工作流视频

    根据提供的文件信息,我们可以推断出这是一套关于Activiti工作流引擎的视频教程。下面将详细介绍Activiti工作流的相关知识点以及这套视频教程可能涵盖的内容。 ### Activiti工作流引擎简介 Activiti是一个轻量级的...

    Java Activiti⼯作流引擎简介详解

    Java Activiti 工作流引擎简介详解 Activiti 是一个开源的业务流程管理(BPM)框架,由 Alfresco 软件在 2010 年 5 月 17 日发布。它是一个灵活的、易扩展的可执行流程语言框架,覆盖了业务流程管理、工作流、服务...

    eclipse-activiti工作流插件

    **Eclipse Activiti 工作流插件详解** Activiti 是一个开源的工作流和业务流程管理(BPM)系统,它被广泛应用于企业级应用程序中,以实现灵活、可扩展的业务流程自动化。Eclipse Activiti 插件是专门为开发人员提供...

    activiti6.0工作流配置(中文)

    《Activiti 6.0 工作流配置详解——与MySQL 8.0集成实践》 Activiti是一款开源的工作流引擎,它为企业的业务流程管理(BPM)提供了强大的支持。在Activiti 6.0版本中,我们看到了一系列的改进和优化,包括更友好的API...

    activiti表结构详解

    Activiti是一款开源的工作流引擎,它为企业流程自动化提供强大的支持。在深入了解Activiti之前,我们需要先理解其核心的表结构,这些表是引擎运行的基础,它们存储了流程定义、实例、任务等各种信息。本篇文章将详细...

    Activiti 工作流

    【Activiti工作流详解】 Activiti是一个开源的业务流程管理(BPM)框架,由Alfresco软件在2010年发布。它提供了一种强大的工具,用于设计、执行和监控业务流程,同时保持高度的灵活性和可扩展性。Activiti基于...

Global site tag (gtag.js) - Google Analytics