![]() |
James Thornton |
| Internet Business Consultant | Call Toll Free: 1 (800) 409-2501 |
| About James | Google Profile | Electric Speed | The Electors | Juced | Contact Me |
|---|
An example: an e-commerce site might define the following states:
The transitions might be
users table:
crm_state varchar(50) references crm_states, crm_state_entered_date date, -- when the current state was entered
The allowable states are listed in
create table crm_states ( state_name varchar(50) not null primary key, description varchar(1000) not null -- for UI );
Allowable state transitions are stored in
Thecreate table crm_state_transitions ( state_name not null references crm_states, next_state not null references crm_states, triggering_order integer not null, transition_condition varchar(500) not null, primary key (state_name, next_state) );
transition_condition field specifies a SQL fragment
which will get called as
update users set user_state = **next_state**, crm_state_entered_date = sysdate where user_state = **state_name** and (**transition_condition**)
Periodically (as defined by the parameter
UpdatePeriodHours in the [ns/server/servername/acs/crm]
section and defaulting to 24 hours), each
transition_condition fragment will be run as above, in
the order specified by triggering_order.
| Vanity Sinks
cantonantiques.com |
James Thornton, jamesthornton.com>Services: Marketing On Internet |
Electric Speed: Commercial Web Site Developer |