Scenario:
There is a hierarchy of PROCESS
. Like
PR-2, PR-3 are children of Pr-1
,
PR-4, PR-5 are children of PR-2
Now the leaf processes (in our case PR-3, PR-4 and PR-5
can be described in terms of series of ACTIVITY
Now, ACTIVITY
is just a child of PROCESS
but has some extra attributes, so
Should I make two diff. tables in the database (one for ACTIVITY
and one for PROCESS
)?
or
Should I add some fields (for extra attributes of ACTIVITIY
) in the PROCESS
table and store the ACTIVITY
in PROCESS
table.
=================================== EDITED ======================================
Actually, here PROCESS
AND ACTIVITY
are the one's that involved in BPM (Businees Process Management)
Those who have knowledge of BPM can figure out what ACTIVITY
AND PROCESS
are.
Those who don't know BPM
, I explain you what I mean by PROCESS
and ACTIVITY
.
Any enterprise has various PROCESS
es (like CustomerOrderPlaced, CustomerOrderCancelled etc.) and ACTIVIT
ies are like parts of a process which are to be performed to complete the process.
So, ACTIVITY
is a child of PROCESS
with some extra attributes.
Or in terms of Java, ACTIVITY extends PROCESS