This repository was archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Process
Neeraj Dhiman edited this page Jan 17, 2017
·
2 revisions
-
The same concept of
Widgets
are used here inProcess
&Process locker
-
Concept of
Process locker
is introduced because we needs to tellWidgets
whatProcess
it can load on its initiation.- It is basically the collection of
Processes
which will be called based on somerules
. Every Locker will have atoken
which will be shared withWidget
. - Here we assumed that
Widgets
& 'Process' are on different servers so they have no direct relation between them so we can't map them using any Fk,M2M relations. - So admin will first create its processes , he will create a order of his process according to some scenario based on some rules. Like If he have three process P1, P2, P3. then which process will called first and which process will be called on basis of any rule etc etc.
- So though we will store his this entire scenario in a locker and tell him this is what you have created and if you are sure this is what you want then publish this.
- Once published,
locker
cannot be updated or changed. - After publish we will assign every
locker
a token and this token will be mapped withWidget
. - Only published lockers can have token, So no-publish -> no token -> no mapping to
Widget
.
- It is basically the collection of
-
resource_token
is the token ofResource
with whichProcess
is mapped. -
Process
will also log its own life cycle using logging model.