11-02-2010 06:20 AM
11-02-2010 08:05 AM
11-10-2010 12:59 AM
create table ACT_RU_EXECUTION (
ID_ varchar(64) NOT NULL,
REV_ integer,
PROC_INST_ID_ varchar(64),
BUSINESS_KEY_ varchar(255),
PARENT_ID_ varchar(64),
PROC_DEF_ID_ varchar(64),
SUPER_EXEC_ varchar(64),
ACT_ID_ varchar(255),
IS_ACTIVE_ SMALLINT CHECK(IS_ACTIVE_ IN (1,0)),
IS_CONCURRENT_ SMALLINT CHECK(IS_CONCURRENT_ IN (1,0)),
IS_SCOPE_ SMALLINT CHECK(IS_SCOPE_ IN (1,0)),
UNI_BUSINESS_KEY VARCHAR (255) NOT NULL GENERATED ALWAYS AS (CASE WHEN "BUSINESS_KEY_" IS NULL THEN "ID_" ELSE "BUSINESS_KEY_" END),
UNI_PROC_DEF_ID VARCHAR (64) NOT NULL GENERATED ALWAYS AS (CASE WHEN "BUSINESS_KEY_" IS NULL THEN "ID_" ELSE "PROC_DEF_ID_" END),
CONSTRAINT PK_RU_EXECUTION primary key (ID_)
);
create table ACT_HI_PROCINST (
ID_ varchar(64) not null,
PROC_INST_ID_ varchar(64) not null,
BUSINESS_KEY_ varchar(255),
PROC_DEF_ID_ varchar(64) not null,
START_TIME_ timestamp not null,
END_TIME_ timestamp,
DURATION_ bigint,
START_USER_ID_ varchar(255),
START_ACT_ID_ varchar(255),
END_ACT_ID_ varchar(255),
UNI_BUSINESS_KEY VARCHAR (255) NOT NULL GENERATED ALWAYS AS (CASE WHEN "BUSINESS_KEY_" IS NULL THEN "ID_" ELSE "BUSINESS_KEY_" END),
UNI_PROC_DEF_ID VARCHAR (64) NOT NULL GENERATED ALWAYS AS (CASE WHEN "BUSINESS_KEY_" IS NULL THEN "ID_" ELSE "PROC_DEF_ID_" END),
CONSTRAINT PK_HI_PROC_INST primary key (ID_),
CONSTRAINT UQ_PROC_INST_ID unique (PROC_INST_ID_)
);
create unique index business_key_ru_idx on ACT_RU_EXECUTION
(UNI_BUSINESS_KEY ,UNI_PROC_DEF_ID);
create unique index business_key_hi_idx on ACT_HI_PROCINST
(UNI_BUSINESS_KEY ,UNI_PROC_DEF_ID);
<dependency>
<groupId>com.ibm</groupId>
<artifactId>db2jcc</artifactId>
<version>3.59.81</version>
</dependency>
11-10-2010 02:15 AM
11-10-2010 02:58 AM
11-12-2010 03:20 AM
11-13-2010 01:48 AM
03-04-2011 02:33 AM
03-04-2011 10:55 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.