<!---->
<!---->
sql:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_CURRENTST__ID__0F975522]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_CURRENTSTEP_PREV] DROP CONSTRAINT FK__OS_CURRENTST__ID__0F975522
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_MEMBER__GROUP__1367E606]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_MEMBERSHIP] DROP CONSTRAINT FK__OS_MEMBER__GROUP__1367E606
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_CURREN__PREVI__0EA330E9]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_CURRENTSTEP_PREV] DROP CONSTRAINT FK__OS_CURREN__PREVI__0EA330E9
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_HISTOR__PREVI__117F9D94]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_HISTORYSTEP_PREV] DROP CONSTRAINT FK__OS_HISTOR__PREVI__117F9D94
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_HISTORYST__ID__1273C1CD]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_HISTORYSTEP_PREV] DROP CONSTRAINT FK__OS_HISTORYST__ID__1273C1CD
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_MEMBER__USERN__145C0A3F]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_MEMBERSHIP] DROP CONSTRAINT FK__OS_MEMBER__USERN__145C0A3F
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_CURREN__ENTRY__0DAF0CB0]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_CURRENTSTEP] DROP CONSTRAINT FK__OS_CURREN__ENTRY__0DAF0CB0
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK__OS_HISTOR__ENTRY__108B795B]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[OS_HISTORYSTEP] DROP CONSTRAINT FK__OS_HISTOR__ENTRY__108B795B
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_CURRENTSTEP]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_CURRENTSTEP]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_CURRENTSTEP_PREV]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_CURRENTSTEP_PREV]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_GROUP]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_GROUP]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_HISTORYSTEP]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_HISTORYSTEP]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_HISTORYSTEP_PREV]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_HISTORYSTEP_PREV]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_MEMBERSHIP]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_MEMBERSHIP]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_PROPERTYENTRY]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_PROPERTYENTRY]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_STEPIDS]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_STEPIDS]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_USER]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_USER]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OS_WFENTRY]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[OS_WFENTRY]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[bus_leaveApply]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[bus_leaveApply]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[bus_leaveApprove]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[bus_leaveApprove]
GO
CREATE TABLE [dbo].[OS_CURRENTSTEP] (
[ID] [int] NOT NULL ,
[ENTRY_ID] [int] NULL ,
[STEP_ID] [smallint] NULL ,
[ACTION_ID] [smallint] NULL ,
[OWNER] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[START_DATE] [datetime] NULL ,
[FINISH_DATE] [datetime] NULL ,
[DUE_DATE] [datetime] NULL ,
[STATUS] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[CALLER] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_CURRENTSTEP_PREV] (
[ID] [int] NOT NULL ,
[PREVIOUS_ID] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_GROUP] (
[GROUPNAME] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_HISTORYSTEP] (
[ID] [int] NOT NULL ,
[ENTRY_ID] [int] NULL ,
[STEP_ID] [smallint] NULL ,
[ACTION_ID] [smallint] NULL ,
[OWNER] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[START_DATE] [datetime] NULL ,
[FINISH_DATE] [datetime] NULL ,
[DUE_DATE] [datetime] NULL ,
[STATUS] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[CALLER] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_HISTORYSTEP_PREV] (
[ID] [int] NOT NULL ,
[PREVIOUS_ID] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_MEMBERSHIP] (
[USERNAME] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[GROUPNAME] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_PROPERTYENTRY] (
[GLOBAL_KEY] [varchar] (255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ITEM_KEY] [varchar] (255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ITEM_TYPE] [smallint] NULL ,
[STRING_VALUE] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
[DATE_VALUE] [datetime] NULL ,
[DATA_VALUE] [varbinary] (2000) NULL ,
[FLOAT_VALUE] [float] NULL ,
[NUMBER_VALUE] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_STEPIDS] (
[ID] [bigint] IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_USER] (
[USERNAME] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PASSWORDHASH] [text] COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[OS_WFENTRY] (
[ID] [int] NOT NULL ,
[NAME] [varchar] (128) COLLATE Chinese_PRC_CI_AS NULL ,
[STATE] [smallint] NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[bus_leaveApply] (
[applyID] [int] IDENTITY (1, 1) NOT NULL ,
[applicant] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[reason] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
[dayCount] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[applyTime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[wfid] [bigint] NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[bus_leaveApprove] (
[approveID] [int] IDENTITY (1, 1) NOT NULL ,
[applyID] [int] NULL ,
[approver] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[approveTime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[opinion] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_CURRENTSTEP] ADD
PRIMARY KEY CLUSTERED
(
[ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_CURRENTSTEP_PREV] ADD
PRIMARY KEY CLUSTERED
(
[ID],
[PREVIOUS_ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_GROUP] ADD
PRIMARY KEY CLUSTERED
(
[GROUPNAME]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_HISTORYSTEP] ADD
PRIMARY KEY CLUSTERED
(
[ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_HISTORYSTEP_PREV] ADD
PRIMARY KEY CLUSTERED
(
[ID],
[PREVIOUS_ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_MEMBERSHIP] ADD
PRIMARY KEY CLUSTERED
(
[USERNAME],
[GROUPNAME]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_PROPERTYENTRY] ADD
PRIMARY KEY CLUSTERED
(
[GLOBAL_KEY],
[ITEM_KEY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_STEPIDS] ADD
PRIMARY KEY CLUSTERED
(
[ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_USER] ADD
PRIMARY KEY CLUSTERED
(
[USERNAME]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_WFENTRY] ADD
PRIMARY KEY CLUSTERED
(
[ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[bus_leaveApprove] ADD
CONSTRAINT [PK_bus_reqApprove] PRIMARY KEY CLUSTERED
(
[approveID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OS_CURRENTSTEP] ADD
FOREIGN KEY
(
[ENTRY_ID]
) REFERENCES [dbo].[OS_WFENTRY] (
[ID]
)
GO
ALTER TABLE [dbo].[OS_CURRENTSTEP_PREV] ADD
FOREIGN KEY
(
[PREVIOUS_ID]
) REFERENCES [dbo].[OS_HISTORYSTEP] (
[ID]
),
FOREIGN KEY
(
[ID]
) REFERENCES [dbo].[OS_CURRENTSTEP] (
[ID]
)
GO
ALTER TABLE [dbo].[OS_HISTORYSTEP] ADD
FOREIGN KEY
(
[ENTRY_ID]
) REFERENCES [dbo].[OS_WFENTRY] (
[ID]
)
GO
ALTER TABLE [dbo].[OS_HISTORYSTEP_PREV] ADD
FOREIGN KEY
(
[PREVIOUS_ID]
) REFERENCES [dbo].[OS_HISTORYSTEP] (
[ID]
),
FOREIGN KEY
(
[ID]
) REFERENCES [dbo].[OS_HISTORYSTEP] (
[ID]
)
GO
ALTER TABLE [dbo].[OS_MEMBERSHIP] ADD
FOREIGN KEY
(
[GROUPNAME]
) REFERENCES [dbo].[OS_GROUP] (
[GROUPNAME]
),
FOREIGN KEY
(
[USERNAME]
) REFERENCES [dbo].[OS_USER] (
[USERNAME]
)
GO
INSERT INTO OS_USER (USERNAME,PASSWORDHASH) VALUES ('employee1','7iaw3Ur350mqGo7jwQrpkj9hiYB3Lkc/iBml1JQODbJ6wYX4oOHV+E+IvIh/1nsUNzLDBMxfqa2Ob1f1ACio/w==')
INSERT INTO OS_USER (USERNAME,PASSWORDHASH) VALUES ('hr1','7iaw3Ur350mqGo7jwQrpkj9hiYB3Lkc/iBml1JQODbJ6wYX4oOHV+E+IvIh/1nsUNzLDBMxfqa2Ob1f1ACio/w==')
INSERT INTO OS_USER (USERNAME,PASSWORDHASH) VALUES ('manager1','7iaw3Ur350mqGo7jwQrpkj9hiYB3Lkc/iBml1JQODbJ6wYX4oOHV+E+IvIh/1nsUNzLDBMxfqa2Ob1f1ACio/w==')
INSERT INTO OS_GROUP (GROUPNAME) VALUES ('employee')
INSERT INTO OS_GROUP (GROUPNAME) VALUES ('hr')
INSERT INTO OS_GROUP (GROUPNAME) VALUES ('manager')
INSERT INTO OS_MEMBERSHIP (USERNAME,GROUPNAME) VALUES ('employee1','employee')
INSERT INTO OS_MEMBERSHIP (USERNAME,GROUPNAME) VALUES ('hr1','hr')
INSERT INTO OS_MEMBERSHIP (USERNAME,GROUPNAME) VALUES ('manager1','manager')
xml 代码
- <!---->xml version="1.0" encoding="UTF-8"?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <datasources>
-
-
-
-
-
-
- <local-tx-datasource>
- <jndi-name>JSQLConnectDB_LeaveApplyjndi-name>
- <connection-url>jdbc:JSQLConnect://localhost:1433/database=osworkflow_appconnection-url>
- <driver-class>com.jnetdirect.jsql.JSQLDriverdriver-class>
- <user-name>sauser-name>
- <password>123456password>
- local-tx-datasource>
-
- datasources>
|
相关推荐
这个开源项目为开发者提供了灵活的工作流定义和执行能力,使得在系统中实现如请假审批这样的业务流程变得简单。在这个"OSWorkflow——请假审批系统(代码全,数据库mysql)"中,我们能看到一个基于OSWorkflow实现的请假...
OsWorkflow是一款开源的工作流引擎,它为应用程序提供了一种灵活且可扩展的方式来管理业务流程。在本实例中,我们将深入探讨OsWorkflow的核心概念、主要功能以及如何创建和测试一个工作流实例。 工作流引擎是软件...
这个示例提供了一个完整的osworkflow与Eclipse结合的请假审批流程,它不仅展示了osworkflow的工作流管理能力,还演示了如何将工作流引擎与实际业务逻辑相结合,为实际的企业应用提供了参考。通过学习和实践这个示例...
OSworkflow(OpenSymphony Workflow)是一个开源的工作流管理系统,它提供了强大的流程定义和执行的能力,广泛应用于企业级应用中,如请假流程等业务场景。在本实例中,我们将深入探讨如何利用OSworkflow来实现一个...
OSWorkFlow是一个强大的工作流引擎,它在IT领域中被广泛应用来实现业务流程自动化。工作流,简单来说,就是一系列相互关联的任务,按照特定的顺序执行,以完成一个业务过程。OSWorkFlow作为开源的工作流解决方案,为...
osWorkflow(简称OSW)是一个开源的工作流引擎,它允许开发者在应用程序中定义、管理和执行工作流程。这个实例是基于OSW的请假申请流程,使用了Tomcat 6.0作为应用服务器,Oracle数据库作为数据存储,并且可以方便地...
OSWorkflow(OpenSymphony Workflow)是一个开源的工作流引擎,它提供了一种灵活的方式来设计、实施和管理业务流程。本篇文章将深入探讨OSWorkflow的工作原理及其应用实例。 OSWorkflow的核心概念包括工作流定义、...
标题提到的"yy.rar_DEMO_demo osworkflow_流程引擎_请假流程引擎"是一个基于osWorkflow的工作流引擎的演示项目,专门设计用来展示如何实现请假流程。osWorkflow是一款开源的工作流引擎,它允许开发者定义、执行和...
通过基于osworkflow的OA系统DEMO,我们可以学习到如何利用工作流引擎实现业务流程自动化,提高办公效率。同时,osworkflow的灵活性和强大功能,使其成为构建复杂OA系统时的理想选择。理解并掌握osworkflow的使用,...
Osworkflow 是一个开源的工作流引擎,它为应用程序提供了一种灵活的方式来管理业务流程。这个入门级的例子将带你了解 Osworkflow2.8 的基本概念和如何在项目中简单地实现工作流。 Osworkflow 提供了一个强大的框架...
2. **osWorkFlow架构**:了解osWorkFlow的设计原理和组件,如流程定义、流程实例、任务服务、持久化机制等,这有助于你构建和维护工作流系统。 3. **流程定义**:学习如何使用XML或图形工具(如FlowDesigner)来...
osWorkflow 是一个开源的工作流引擎,它主要用于设计和执行复杂的业务流程。这个“osworkflow 工作流demo”提供了一个具体的应用示例,演示了如何使用 osWorkflow 实现请假审批这样的工作流程。osWorkflow 提供了...
osworkflow是一款开源的工作流引擎,它提供了灵活的工作流程定义和执行管理功能。在Java应用中,osworkflow常常与Spring和Hibernate这两个主流的框架结合使用,以实现业务流程的自动化处理。本篇文章将深入探讨如何...
在"osworkflow_leaveApprove_mysql"项目中,我们看到的是一个基于OSWorkflow的请假审批流程示例,专为初学者设计,帮助他们快速理解和掌握工作流系统的运作原理。 MySQL作为全球最受欢迎的开源关系型数据库管理系统...
OSWorkflow 是一个开源的工作流引擎,它允许开发者在应用程序中实现复杂的业务流程。这个中文手册是为了解决中文用户在理解和使用OSWorkflow时的语言障碍,提供详细的指南和实例解析。 工作流引擎是软件系统中一个...
OSWorkflow,全称为OpenSymphony Workflow,是一款开源的工作流引擎,用于在应用程序中实现复杂的业务流程。这个项目由OpenSymphony Group开发,现在已经并入到Atlassian的Confluence产品中。OSWorkflow提供了一种...
OSWorkflow 是一个强大的工作流引擎,它允许开发者在应用程序中实现复杂的业务流程。在这个"可以请假的小例子"中,我们将探讨如何使用OSWorkflow与MySQL数据库、Tomcat应用服务器以及Eclipse开发环境集成,来创建一...
OSWorkflow 是一个开源的工作流引擎,它允许开发者在应用程序中实现复杂的业务流程。这个框架提供了灵活的流程定义、状态跟踪、任务分配以及事件通知等功能,使得开发人员能够轻松地创建和管理动态工作流程。本文将...
osWorkflow是一款开源的工作流管理系统,专为Java环境设计,用于处理业务流程中的任务分配、状态跟踪以及流程控制。它提供了强大的API和灵活的配置,使得开发者能够轻松地在应用程序中集成工作流功能。这份...