What is an Event
Types of an Event
There are two types of Events – Predefined & Custom
Pre-defined – These are the events which are already created ??
Custom – These are the events which are created by you.
How to create an Event
Go to Mego Events plugin & click on the ‘Add Now’ card as shown below
After clicking on 'Add Now’ as shown in above screen, you’ll be redirected on the screen shown below where you could add Events.
a.) Event Name – You have to enter the event name in this field.
b.) Choose Cube ID (Feature) – You could either choose new feature or existing feature to assign event on it. If you choose 'New’ then you’ll see a field to enter the new feature name for that app(selected at top header part of screen) & if you choose 'Existing’ then you will see the dropdown on the place of input field, that dropdown will consist every feature of the app, so you could select any of that feature.
c.) Attributes – There are 3 types of attributes. Tags, Type, Value
i.) Tags –
ii.) Type – kvv
iii.) Value – kk
When an event is created you’ll be redirected on listing page, where all the events will be listed.
How to create a Rule
Go to Mego Events plugin & click on the 'Rules Lists’ tab, below screen will appear.
Click on the 'Add Now’ link to create first Rule, you’ll be redirected to the page shown on below screen.
a.) Type – This is the type of rule which you could add, it could be Single or Multiple.
On selecting 'Single’ Rule, you will be able to create rule with single event, for instance, 'Eating Breakfast’ is an event & you could create a rule with it, So when 'Eating Breakfast’ is completed it means the Rule is completed.
On the other hand if you select 'Multiple’ rule, you will be able to create rule with multiple events, for instance 'Eating Breakfast’, 'Eating Lunch’ & 'Eating Dinner’ are three events. So when 'Eating Breakfast’, 'Eating Lunch’ & 'Eating Dinner’ is completed it means the Rule is completed.
b.) Creating Rule – You could create rule by using an event & applying conditions on it.
i.) Pre-defined Events – ??
ii.) Custom Events – On Selecting this option, a drop down will appear having list of all created events
iii.) Created Tags – This option, displays all created Tags List
iv.) System Tags – There will be some system generated tags in drop down for creating Rules
v.) Duration – It will let the user select the duration like – weekly, monthly, etc
vi.) Time Period – It will let the user select the time
vii.) Validity – It will let the user schedule the rule till when it will be valid
viii.) Unique ID – It will be helpful to fetch the Id/s (as identifier)
ix.) Near Me –
x.) Occurrence – It will let the user select the rule occurrence – Once or Repeated
xi.) Value – It will let the user select the value type like equals to, greater than, etc
c.) Name – You have to enter the name of the rule in this field.
When Rules are created, it shown in listing as shown below:
How to use Events in Rule
What are pre-configured events
a.) Predefined events are those events which are prebuilt in Mego Events plugin.
b.) Currently toggle switch is inclined towards 'Predefined’ (above image), so you could see all the predefined events.