create table MON_DEF_ACTIVITY (DBID_ number(19,0) not null, CLASS_ varchar2(255 char) not null, dbversion number(19,0) not null, ACT_DEF_UUID_ varchar2(500 char), PROCESS_DEF_UUID_ varchar2(255 char), NAME_ varchar2(255 char), DOCUMENTATION_ varchar2(4000 char), SUPPR_JN_FL_ number(1,0), TGT_JN_CDT_EXP_LG_ varchar2(255 char), TGT_JN_CDT_BLN_LG_ varchar2(255 char), CHILD_ACT_DEF_ID_ number(19,0), FAULT_NAME_QNAME_ varchar2(255 char), FAULT_MESSAGE_TYPE_QNAME_ varchar2(255 char), FAULT_ELEMENT_QNAME_ varchar2(255 char), faultVariable varchar2(255 char), EX_ON_STA_FAULT_ number(1,0), TERMINATION_HANDLER_ number(19,0), COMPENSATION_HANDLER_ number(19,0), NAMESPACE_ varchar2(255 char), VERSION_ number(10,0), EXPR_LANG_ varchar2(255 char), QUERY_LANG_ varchar2(255 char), DPLY_DATE_ timestamp, UNDPLY_DATE timestamp, STATE_ varchar2(255 char), TARGET_ varchar2(255 char), IVK_PRTLNK_ varchar2(255 char), IVK_IN_VAR_ varchar2(255 char), IVK_OUT_VAR_ varchar2(255 char), IVK_OPERATION_ varchar2(255 char), IVK_PRT_PT_QNAME_ varchar2(255 char), PT_QNAME_ varchar2(255 char), FAULT_VARIABLE_ varchar2(255 char), WHL_EXP_LANG_ varchar2(255 char), WHL_BOOL_EXP_ varchar2(255 char), RPU_EXP_LANG_ varchar2(255 char), RPU_BOOL_EXP_ varchar2(255 char), REC_CRT_INST_ number(1,0), REC_VAR_ varchar2(255 char), REC_PARTN_LNK_ varchar2(255 char), REC_OPERATION_ varchar2(255 char), REC_MSG_EXCHNG_ varchar2(255 char), REC_PRT_PT_QNAME_ varchar2(255 char), REP_VAR_ varchar2(255 char), REP_PARTN_LNK_ varchar2(255 char), REP_OPERATION_ varchar2(255 char), REP_MSG_EXCHNG_ varchar2(255 char), REP_PRT_PT_QNAME_ varchar2(255 char), REP_FLT_NM_QNAME_ varchar2(255 char), ASSIGN_VLDT_ number(1,0), FOR_EXPR_LANG_ varchar2(255 char), FOR_DUR_LANG_ varchar2(255 char), UNTIL_EXPR_LANG_ varchar2(255 char), UNTIL_DEAD_LANG_ varchar2(255 char), IF_EXPR_LANG_ varchar2(255 char), IF_EXPR_ varchar2(255 char), ELSE_ACT_DEF_ID_ number(19,0), ELSE_ACT_UUID_ varchar2(500 char), PK_DF_CR_INST_ number(1,0), FRCH_C_N_EXPR_ varchar2(255 char), FRCH_PARLLL_EXPR_ number(1,0), FRCH_FINL_EXPR_ varchar2(255 char), FRCH_FINL_EXPR_LG_ varchar2(255 char), FRCH_STRT_EXPR_ varchar2(255 char), FRCH_STRT_EXPR_LG_ varchar2(255 char), FRCH_CD_EXPR_ varchar2(255 char), FRCH_CD_EXPR_LG_ varchar2(255 char), FRCH_CD_SUCC_ number(1,0), PARENT_ACT_DEF_ID_ number(19,0), INDEX_ number(10,0), SCOPE_ID_ number(19,0), primary key (DBID_));
create table MON_DEF_COPY (DBID_ number(19,0) not null, KEEP_SRC_ELT_NAME number(1,0), COPY_LST_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_CORR (DBID_ number(19,0) not null, SETVALUE_ varchar2(255 char), INITIATE_ varchar2(255 char), ON_MSG_CORR_ID_ number(19,0), INDEX_ number(10,0), ON_EVT_CORR_ID_ number(19,0), IVK_CR_DEF_ID_ number(19,0), REC_CR_DEF_ID_ number(19,0), RP_CR_DEF_ID_ number(19,0), primary key (DBID_));
create table MON_DEF_ELSEIF (DBID_ number(19,0) not null, ELSEIF_EXPR_ varchar2(255 char), ELSEIF_EXPR_LANG_ varchar2(255 char), ELSEIF_ACT_DEF_ID_ number(19,0), ELSEIF_ACT_UUID_ varchar2(500 char), IF_ELSEIF_LST_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_EXT (DBID_ number(19,0) not null, NAMESPACE varchar2(255 char), MUST_UNDERSTAND number(1,0), SUPPORTED number(1,0), PROCESS_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_FROM_PART (DBID_ number(19,0) not null, FP_PART_ varchar2(255 char), FP_TO_VAR_ varchar2(255 char), ON_MSG_FRM_PRT_ID_ number(19,0), INDEX_ number(10,0), ON_EVT_FRM_PRT_ID_ number(19,0), IVK_FR_PT_ID_ number(19,0), REC_FR_PT_ID_ number(19,0), primary key (DBID_));
create table MON_DEF_FROM_TO (DBID_ number(19,0) not null, CLASS_ varchar2(255 char) not null, FT_VARIANT_ varchar2(255 char), FT_EXP_LANG_ varchar2(255 char), FT_VARIABLE_ varchar2(255 char), FT_PART_ varchar2(255 char), FT_PARTNER_LINK_ varchar2(255 char), FT_ENDPOINT_REF_ varchar2(255 char), FT_PROP_QNAME_ varchar2(255 char), FT_EXPRESSION_ varchar2(255 char), FT_QUERY_ varchar2(255 char), FT_QUERY_LANG_ varchar2(255 char), LITRL_VALUE_ varchar2(3999 char), FROM_LST_ID_ number(19,0), INDEX_ number(10,0), TO_LST_ID_ number(19,0), primary key (DBID_));
create table MON_DEF_LINK (FLOW_LINKS_ID_ number(19,0) not null, FLOW_LINKS_ varchar2(255 char), INDEX_ number(10,0) not null, primary key (FLOW_LINKS_ID_, INDEX_));
create table MON_DEF_LINK_SRC (DBID_ number(19,0) not null, LNK_NAME varchar2(255 char), TR_CND_EXP_LG varchar2(255 char), TR_CND_BOL_EXP varchar2(255 char), SRC_LST_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_LINK_TGT (DBID_ number(19,0) not null, LNK_NAME varchar2(255 char), TRGT_LST_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_MSG_EXCHG (SCOPE_ID_ number(19,0) not null, elt varchar2(255 char), INDEX_ number(10,0) not null, primary key (SCOPE_ID_, INDEX_));
create table MON_DEF_ON_ALRM (DBID_ number(19,0) not null, ON_ALRM_ACT_DEF_ID_ number(19,0), ON_ALRM_ACT_UUID_ varchar2(500 char), FOR_EXPR_LANG_ varchar2(255 char), FOR_DUR_LANG_ varchar2(255 char), UNTIL_EXPR_LANG_ varchar2(255 char), UNTIL_DEAD_LANG_ varchar2(255 char), REPETE_EXPR_LANG_ varchar2(255 char), REPEAT_DEAD_LANG_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), PK_DF_ON_AL_ID_ number(19,0), primary key (DBID_));
create table MON_DEF_ON_EVT (DBID_ number(19,0) not null, PICK_VAR_ varchar2(255 char), PICK_PART_LNK_ varchar2(255 char), PICK_OPTN_ varchar2(255 char), PICK_MSG_EXCHG_ varchar2(255 char), PICK_PT_TP_QNAME_ varchar2(255 char), ON_EVT_ACT_DEF_ID_ number(19,0), ON_EVT_ACT_UUID_ varchar2(500 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_ON_MSG (DBID_ number(19,0) not null, PICK_VAR_ varchar2(255 char), PICK_PART_LNK_ varchar2(255 char), PICK_OPTN_ varchar2(255 char), PICK_MSG_EXCHG_ varchar2(255 char), PICK_PT_TP_QNAME_ varchar2(255 char), ON_MSG_ACT_DEF_ID_ number(19,0), ON_MSG_ACT_UUID_ varchar2(500 char), PK_DF_ON_MSG_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_PART_LNK (DBID_ number(19,0) not null, NAME_ varchar2(255 char), MY_ROLE_ varchar2(255 char), PARTNER_ROLE_ varchar2(255 char), INIT_PRTN_ROLE_ number(1,0), PRT_LNK_QNAME_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_PROC_STATE (DBID_ number(19,0) not null, DATE_ timestamp, STATE_ varchar2(255 char), PROCESS_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_RESOURCES (PROCESS_ID_ number(19,0) not null, CONTENT_ blob, NAME_ varchar2(255 char) not null, primary key (PROCESS_ID_, NAME_));
create table MON_DEF_TO_PART (DBID_ number(19,0) not null, TP_PART_ varchar2(255 char), TP_FRM_VAR_ varchar2(255 char), IVK_TO_PT_ID_ number(19,0), INDEX_ number(10,0), RP_TO_PT_ID_ number(19,0), primary key (DBID_));
create table MON_DEF_VAR (DBID_ number(19,0) not null, MSGTYPE_QNAME_ varchar2(255 char), TYPE_QNAME_ varchar2(255 char), ELT_QNAME_ varchar2(255 char), NAME_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_VAR_CS (DBID_ number(19,0) not null, NAME_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_DEF_VAR_CS_properties (CORR_ST_DEF_ID_ number(19,0) not null, PROP_QNAME_ varchar2(255 char), INDEX_ number(10,0) not null, primary key (CORR_ST_DEF_ID_, INDEX_));
create table MON_RUNT_ACTIVITY (DBID_ number(19,0) not null, CLASS_ varchar2(255 char) not null, dbversion number(19,0) not null, ACT_INST_UUID_ varchar2(255 char), ACT_DEF_UUID_ varchar2(500 char), PROCESS_UUID_ varchar2(255 char), INST_UUID_ varchar2(255 char), STARTED_DATE_ timestamp, ENDED_DATE_ timestamp, ACTIVITY_STATE_ varchar2(255 char), LAST_EXCEPTION_ number(19,0), CHILD_ACT_INST_ID_ number(19,0), OPERATION_ varchar2(255 char), VARIABLE_ varchar2(255 char), MESSAGE_EXCHANGE_ varchar2(255 char), FH_INST_ number(19,0), TH_INST_ number(19,0), CH_INST_ number(19,0), START_VALUE_ number(10,0), STOP_VALUE_ number(10,0), COMPLETION_CONDITION_VALUE_ number(10,0), CHILD_WAIT_ACT_ number(19,0), PARENT_ACT_INST_ID_ number(19,0), INDEX_ number(10,0), PARENT_SCOPE_ID_ number(19,0), primary key (DBID_));
create table MON_RUNT_BPEL_FAULT_ (DBID_ number(19,0) not null, CLASS_ varchar2(255 char) not null, FAULT_QNAME_ varchar2(255 char), MSG_PARTS_ clob, ELT_ clob, primary key (DBID_));
create table MON_RUNT_CS_INIT (DBID_ number(19,0) not null, ACT_INST_UUID_ varchar2(255 char), DATE_ timestamp, NAME_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_RUNT_CS_PROP (CS_ID_ number(19,0) not null, VALUE_ clob, QNAME_ varchar2(255 char) not null, primary key (CS_ID_, QNAME_));
create table MON_RUNT_INST_STATE (DBID_ number(19,0) not null, DATE_ timestamp, STATE_ varchar2(255 char), PROCESS_INST_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_RUNT_PLNK_UPDATE (DBID_ number(19,0) not null, ACT_INST_UUID_ varchar2(255 char), DATE_ timestamp, NAME_ varchar2(255 char), P_END_REF clob, PLNK_UPD_TYPE_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_RUNT_RECORD (DBID_ number(19,0) not null, TYPE_ varchar2(255 char), ACT_INST_UUID_ varchar2(255 char), PROCESS_UUID_ varchar2(255 char), INST_UUID_ varchar2(255 char), DATA_ blob, primary key (DBID_));
create table MON_RUNT_SCOPE_STATE (DBID_ number(19,0) not null, ACT_INST_UUID_ varchar2(255 char), DATE_ timestamp, STATE_ varchar2(255 char), SCOPE_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_RUNT_TR_COND_UPD_ (DBID_ number(19,0) not null, STATUS_ number(1,0), NAME_ varchar2(255 char), DATE_ timestamp, FLOW_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create table MON_RUNT_VAR_UPDATE (DBID_ number(19,0) not null, ACT_INST_UUID_ varchar2(255 char), DATE_ timestamp, NAME_ varchar2(255 char), IS_MESSAGE_ number(1,0), VALUE_ clob, INDEX_ number(10,0), SCOPE_ID_ number(19,0), primary key (DBID_));
create table MON_RUNT_WAITING (DBID_ number(19,0) not null, EXPECTED_STARTED_DATE_ timestamp, PICK_ID_ number(19,0), INDEX_ number(10,0), primary key (DBID_));
create index SCOPE_DEF_FAULT_HANDLERS_IDX on MON_DEF_ACTIVITY (SCOPE_ID_);
alter table MON_DEF_ACTIVITY add constraint FKB2087C9CF1C5FAB0 foreign key (PARENT_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ACTIVITY add constraint FKB2087C9C82112BDD foreign key (CHILD_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ACTIVITY add constraint FKB2087C9C614874B5 foreign key (TERMINATION_HANDLER_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ACTIVITY add constraint FKB2087C9CDE3B31AF foreign key (COMPENSATION_HANDLER_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ACTIVITY add constraint FKB2087C9CD4D0807A foreign key (ELSE_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ACTIVITY add constraint SCOPE_DEF_FAULT_HANDLERS_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index COPY_LST_IDX on MON_DEF_COPY (COPY_LST_ID_);
alter table MON_DEF_COPY add constraint COPY_LST_FK foreign key (COPY_LST_ID_) references MON_DEF_ACTIVITY;
create index RP_CR_DEF_LST_IDX on MON_DEF_CORR (RP_CR_DEF_ID_);
create index IVK_CR_DEF_LST_IDX on MON_DEF_CORR (IVK_CR_DEF_ID_);
create index ON_MSG_CORR_IDX on MON_DEF_CORR (ON_MSG_CORR_ID_);
create index REC_CR_DEF_LST_IDX on MON_DEF_CORR (REC_CR_DEF_ID_);
create index ON_EVT_CORR_IDX on MON_DEF_CORR (ON_EVT_CORR_ID_);
alter table MON_DEF_CORR add constraint REC_CR_DEF_LST_FK foreign key (REC_CR_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_CORR add constraint IVK_CR_DEF_LST_FK foreign key (IVK_CR_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_CORR add constraint RP_CR_DEF_LST_FK foreign key (RP_CR_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_CORR add constraint ON_EVT_CORR_FK foreign key (ON_EVT_CORR_ID_) references MON_DEF_ON_EVT;
alter table MON_DEF_CORR add constraint ON_MSG_CORR_FK foreign key (ON_MSG_CORR_ID_) references MON_DEF_ON_MSG;
create index IF_ELSEIF_LST_IDX on MON_DEF_ELSEIF (IF_ELSEIF_LST_ID_);
alter table MON_DEF_ELSEIF add constraint IF_ELSEIF_LST_FK foreign key (IF_ELSEIF_LST_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ELSEIF add constraint FK802DBCE366DBBFD7 foreign key (ELSEIF_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
create index PROCESS_EXT_IDX on MON_DEF_EXT (PROCESS_ID_);
alter table MON_DEF_EXT add constraint PROCESS_EXT_FK foreign key (PROCESS_ID_) references MON_DEF_ACTIVITY;
create index IVK_FR_PT_LST_IDX on MON_DEF_FROM_PART (IVK_FR_PT_ID_);
create index ON_MSG_FRM_PRT_IDX on MON_DEF_FROM_PART (ON_MSG_FRM_PRT_ID_);
create index ON_EVT_FRM_PRT_IDX on MON_DEF_FROM_PART (ON_EVT_FRM_PRT_ID_);
create index REC_FR_PT_LST_IDX on MON_DEF_FROM_PART (REC_FR_PT_ID_);
alter table MON_DEF_FROM_PART add constraint REC_FR_PT_LST_FK foreign key (REC_FR_PT_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_FROM_PART add constraint IVK_FR_PT_LST_FK foreign key (IVK_FR_PT_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_FROM_PART add constraint ON_MSG_FRM_PRT_FK foreign key (ON_MSG_FRM_PRT_ID_) references MON_DEF_ON_MSG;
alter table MON_DEF_FROM_PART add constraint ON_EVT_FRM_PRT_FK foreign key (ON_EVT_FRM_PRT_ID_) references MON_DEF_ON_EVT;
create index TO_LST_IDX on MON_DEF_FROM_TO (TO_LST_ID_);
create index FROM_LST_IDX on MON_DEF_FROM_TO (FROM_LST_ID_);
alter table MON_DEF_FROM_TO add constraint FROM_LST_FK foreign key (FROM_LST_ID_) references MON_DEF_COPY;
alter table MON_DEF_FROM_TO add constraint TO_LST_FK foreign key (TO_LST_ID_) references MON_DEF_COPY;
create index FLOW_LINKS_IDX on MON_DEF_LINK (FLOW_LINKS_ID_);
alter table MON_DEF_LINK add constraint FLOW_LINKS_FK foreign key (FLOW_LINKS_ID_) references MON_DEF_ACTIVITY;
create index SRC_LST_IDX on MON_DEF_LINK_SRC (SRC_LST_ID_);
alter table MON_DEF_LINK_SRC add constraint SRC_LST_FK foreign key (SRC_LST_ID_) references MON_DEF_ACTIVITY;
create index TRGT_LST_IDX on MON_DEF_LINK_TGT (TRGT_LST_ID_);
alter table MON_DEF_LINK_TGT add constraint TRGT_LST_FK foreign key (TRGT_LST_ID_) references MON_DEF_ACTIVITY;
create index SCOPE_DEF_M_E_IDX on MON_DEF_MSG_EXCHG (SCOPE_ID_);
alter table MON_DEF_MSG_EXCHG add constraint SCOPE_DEF_M_E_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index SCOPE_DEF_ALARMS_IDX on MON_DEF_ON_ALRM (SCOPE_ID_);
create index PK_DF_ON_AL_IDX on MON_DEF_ON_ALRM (PK_DF_ON_AL_ID_);
alter table MON_DEF_ON_ALRM add constraint PK_DF_ON_AL_FK foreign key (PK_DF_ON_AL_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ON_ALRM add constraint FK9A9936D9735C61C7 foreign key (ON_ALRM_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ON_ALRM add constraint SCOPE_DEF_ALARMS_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index SCOPE_DEF_EVTS_IDX on MON_DEF_ON_EVT (SCOPE_ID_);
alter table MON_DEF_ON_EVT add constraint FK915FD83099EA93C4 foreign key (ON_EVT_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ON_EVT add constraint SCOPE_DEF_EVTS_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index PK_DF_ON_MSG_IDX on MON_DEF_ON_MSG (PK_DF_ON_MSG_ID_);
alter table MON_DEF_ON_MSG add constraint PK_DF_ON_MSG_FK foreign key (PK_DF_ON_MSG_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_ON_MSG add constraint FK915FF5CEA6853462 foreign key (ON_MSG_ACT_DEF_ID_) references MON_DEF_ACTIVITY;
create index SCOPE_DEF_PL_IDX on MON_DEF_PART_LNK (SCOPE_ID_);
alter table MON_DEF_PART_LNK add constraint SCOPE_DEF_PL_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index PROCESS_STATE_IDX on MON_DEF_PROC_STATE (PROCESS_ID_);
alter table MON_DEF_PROC_STATE add constraint PROCESS_STATE_FK foreign key (PROCESS_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_RESOURCES add constraint FKCA16618F2951188 foreign key (PROCESS_ID_) references MON_DEF_ACTIVITY;
create index IVK_TO_PT_LST_IDX on MON_DEF_TO_PART (IVK_TO_PT_ID_);
create index RP_TO_PT_LST_IDX on MON_DEF_TO_PART (RP_TO_PT_ID_);
alter table MON_DEF_TO_PART add constraint RP_TO_PT_LST_FK foreign key (RP_TO_PT_ID_) references MON_DEF_ACTIVITY;
alter table MON_DEF_TO_PART add constraint IVK_TO_PT_LST_FK foreign key (IVK_TO_PT_ID_) references MON_DEF_ACTIVITY;
create index SCOPE_DEF_VAR_IDX on MON_DEF_VAR (SCOPE_ID_);
alter table MON_DEF_VAR add constraint SCOPE_DEF_VAR_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index SCOPE_DEF_CS_IDX on MON_DEF_VAR_CS (SCOPE_ID_);
alter table MON_DEF_VAR_CS add constraint SCOPE_DEF_CS_FK foreign key (SCOPE_ID_) references MON_DEF_ACTIVITY;
create index CORR_ST_DEF_IDX on MON_DEF_VAR_CS_properties (CORR_ST_DEF_ID_);
alter table MON_DEF_VAR_CS_properties add constraint CORR_ST_DEF_FK foreign key (CORR_ST_DEF_ID_) references MON_DEF_VAR_CS;
create index ACT_INST_EXCEPTION_IDX on MON_RUNT_ACTIVITY (LAST_EXCEPTION_);
create index ACT_INST_PARENT_IDK on MON_RUNT_ACTIVITY (PARENT_ACT_INST_ID_);
create index SCOPE_INST_EVT_IDX on MON_RUNT_ACTIVITY (PARENT_SCOPE_ID_);
create index ACT_INST_CHILD_IDX on MON_RUNT_ACTIVITY (CHILD_ACT_INST_ID_);
create index ACT_PROC_INST_UUID_IDX on MON_RUNT_ACTIVITY (INST_UUID_);
create index ACT_INST_FH_IDX on MON_RUNT_ACTIVITY (FH_INST_);
create index ACT_INST_CH_IDX on MON_RUNT_ACTIVITY (CH_INST_);
create index ACT_INST_WAIT_IDX on MON_RUNT_ACTIVITY (CHILD_WAIT_ACT_);
create index ACT_INST_UUID_IDX on MON_RUNT_ACTIVITY (ACT_INST_UUID_);
create index ACT_INST_TH_IDX on MON_RUNT_ACTIVITY (TH_INST_);
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_PARENT_FK foreign key (PARENT_ACT_INST_ID_) references MON_RUNT_ACTIVITY;
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_CH_FK foreign key (CH_INST_) references MON_RUNT_ACTIVITY;
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_TH_FK foreign key (TH_INST_) references MON_RUNT_ACTIVITY;
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_FH_FK foreign key (FH_INST_) references MON_RUNT_ACTIVITY;
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_EXCEPTION_FK foreign key (LAST_EXCEPTION_) references MON_RUNT_BPEL_FAULT_;
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_WAIT_FK foreign key (CHILD_WAIT_ACT_) references MON_RUNT_WAITING;
alter table MON_RUNT_ACTIVITY add constraint ACT_INST_CHILD_FK foreign key (CHILD_ACT_INST_ID_) references MON_RUNT_ACTIVITY;
alter table MON_RUNT_ACTIVITY add constraint SCOPE_INST_EVT_FK foreign key (PARENT_SCOPE_ID_) references MON_RUNT_ACTIVITY;
create index SCOPE_INST_CS_IDX on MON_RUNT_CS_INIT (SCOPE_ID_);
alter table MON_RUNT_CS_INIT add constraint SCOPE_INST_CS_FK foreign key (SCOPE_ID_) references MON_RUNT_ACTIVITY;
create index CS_INST_PROP_IDX on MON_RUNT_CS_PROP (CS_ID_);
alter table MON_RUNT_CS_PROP add constraint CS_INST_PROP_FK foreign key (CS_ID_) references MON_RUNT_CS_INIT;
create index PROCESS_INST_STATE_IDX on MON_RUNT_INST_STATE (PROCESS_INST_ID_);
alter table MON_RUNT_INST_STATE add constraint PROCESS_INST_STATE_FK foreign key (PROCESS_INST_ID_) references MON_RUNT_ACTIVITY;
create index SCOPE_INST_PLNK_IDX on MON_RUNT_PLNK_UPDATE (SCOPE_ID_);
alter table MON_RUNT_PLNK_UPDATE add constraint SCOPE_INST_PLNK_FK foreign key (SCOPE_ID_) references MON_RUNT_ACTIVITY;
create index IDX_REC_PROC_INST on MON_RUNT_RECORD (INST_UUID_);
create index IDX_REC_ACT_INST on MON_RUNT_RECORD (ACT_INST_UUID_);
create index IDX_REC_PROC_DEF on MON_RUNT_RECORD (PROCESS_UUID_);
create index SCOPE_INST_STATE_IDX on MON_RUNT_SCOPE_STATE (SCOPE_ID_);
alter table MON_RUNT_SCOPE_STATE add constraint SCOPE_INST_STATE_FK foreign key (SCOPE_ID_) references MON_RUNT_ACTIVITY;
create index FLOW_INST_TR_COND_IDX on MON_RUNT_TR_COND_UPD_ (FLOW_ID_);
alter table MON_RUNT_TR_COND_UPD_ add constraint FLOW_INST_TR_COND_FK foreign key (FLOW_ID_) references MON_RUNT_ACTIVITY;
create index SCOPE_INST_VAR_IDX on MON_RUNT_VAR_UPDATE (SCOPE_ID_);
alter table MON_RUNT_VAR_UPDATE add constraint SCOPE_INST_VAR_FK foreign key (SCOPE_ID_) references MON_RUNT_ACTIVITY;
create index PICK_WAIT_IDX on MON_RUNT_WAITING (PICK_ID_);
alter table MON_RUNT_WAITING add constraint PICK_WAIT_FK foreign key (PICK_ID_) references MON_RUNT_ACTIVITY;
create table BPEL_HISTORY_SEQS ( sequence_name varchar2(255 char) not null ,  next_val number(19,0), primary key ( sequence_name ) ) ;
