How to use Drools decision tree in mongodb or any other rule engine - mongodb

I have to store plenty of rules in my data base nearly 100k thousand.
and these rules can be modified , deleted and added dynamically, also my solution is HA(same application will run inmultiple instance ) hence instead of using Drools decision tree sheet (csv or xl) I have to use mongoDB.
So is there any adapter for drool to work with mongoDB ?
is there drool working memory limitation when it related number of rules ?
Will Drool supports below kind of decision checks ?
OSType DeviceType Make year Country Value
(attr1) (attr2) (attr3) (attr4) (attr5) (result)
BADA Galaxy Samsung 2014 IN 100
Android Samsung 2015 China 150
J7 Samsung 2018 IN 80
Android Note10 Samsung 2019 500
IOS I7 APPLE USA 1100
IOS 2019 1000
now if data to rule is
OStype=Android,DeviceType=Note10, Make=Samsung, year=2019 Country=IN
in this case I have to return 500, as country is empty so I have to ignore from rule check
OStype=IOS,DeviceType=I11, Make=APPLE, year=2029 Country=US
in this case I have to return 1000

Related

AnyLogic Source Block Creating Multiple Types of Agents with Different Interarrival Times

I am working in AnyLogic to create a model. I have a source that creates 17 different Agent Names. Each with their own inter arrival time. I would like for all 17 agents to arrive according to their interarrival time in parallel.
My database looks like this:
part_name iat processing_time
part_1 2.3 4.3
part_2 3.5 3.9
.....
.
.
.
I have searched and tried all I can online.
The AnyLogic documentation suggests creating an agent populatino, but I do not think that feature is supported anymore.
Help pls

How do I add milestones to an already existing timeline chart in excel

I have the data of temperatures over the past century with me.
data extracted from here
google sheet with the requisite data
I have this data that shows the important events over the centuries.
(milestones)
year reason
1712 Steam Engine Invented; Start of industrialisation
1824 Greenhouse Concept described by "J Fourier"
1886 Karl Benz designed first Automobile
1969 UNESCO Conference "Earth Day is born"
1972 First UN environment conference. The United Nations Environment Programme (UNEP) is formed.
1980 The Vienna Convention for protection of Ozone layer (1985) ; Montreal Porocol (1987)
1997 Kyoto Protocol Signed
Now when i created the chart using just the above data, i get
TimeLine chart that is formed
I want to add the additional data of the important events to the same chart.
I checked the milestones chart but did not work for me.

ms project : issue in wbs number reset

I have project schedule as below. I need start wbs from number 1 from kick-off meeting. Till Kick-off, I used customised wbs code, ie M1,M2,M3,M4. it is working. From from kick-off meeting on wards I need to start 1 1.1 1.2, 2, 2.1, 2.2 etc
Existing schedule
WBS Task name
1 M1: Milestone1
2 M2: Milestone2
3 M3: Milestone3
4 M4: Milestone4
5 Kick-off meeting
6 Requirement
6.1. Requirement collection
6.2. Requirement priority
6.3. Finalise requirements
7 Design
7.1 High level design
7.2 Low level design
8 Implementation
8.1 coding
8.2 code review
9 Testing
9.1 Test plan
9.2 Test case preparation
9.3 Start Testing
10 Delivery
10.1 Deliver to customer
10.2 Release resource
I need to change above WBS with wbs code as below.
Expected schedule
WBS Task name
M1: Milestone1
M2: Milestone2
M3: Milestone3
M4: Milestone4
1 Kick-off meeting
2 Requirement
2.1. Requirement collection
2.2. Requirement priority
2.3. Finalise requirements
3 Design
3.1 High level design
3.2 Low level design
4 Implementation
4.1 coding
4.2 code review
5 Testing
5.1 Test plan
5.2 Test case preparation
5.3 Start Testing
6 Delivery
6.1 Deliver to customer
6.2 Release resource
I tried with Project --> wbS -> Define code and Renumber, but both are not working.
Use a custom outline code, not the built-in WBS field. Then you can make it any way you want. Name the custom code CWBS or PWBS or something like that so you can tell them apart.

What machines included in Bizspark?

Can I create one A4 maschine(8 cores and 14 RAM), and two A0 machines(1 core, 768RAM). They can be turned on in the same time.
What if I create another A4 machine, but keep it turned off and turn it on alternately with another A4(keep working only one). Is it out of bizspark subscription and will be subscription blocked?
Best ragards,
Gennady
1) Sorry for off-top, I'm a newbie at stackoverflow
2) I think I found an answer. For subscription there is allowed 20 cores. Virtual machines use cores like in a table below
So I think I can create another A4, as it will be 8+8+1+1, less then 20, allowed by bizspark subscription.
Best regards,
Gennady

Cube/Mongo: Custom metric resolutions (step)

According the documentation square/cube supports 5 metric resolutions (step), the lowest is 10 seconds. I understand this is required in order to allow pyramidal reducers. Will cube work correctly (though less efficiently) with any arbitrary step value or are there other problems? If it is just an efficiency issue, how bad would it be - even with built in step values it takes time for the cache to fill for all options.
I faced a similar situation when creating horizon charts of stock data. Some stocks are not traded at all moments during the day.
In this situation, I "backfilled" in the intermediate values and created a uniform distribution. Essentially, I took the latest data and added it to a newer time stamp until new data was available.
For example, if I had the following prices for minute-by-minute data:
11:15 AM -> 112.0
11:18 AM -> 115.0
my program created the following "imaginary" intervals.
11:15 AM -> 112.0
11:16 AM -> 112.0
11:17 AM -> 112.0
11:18 AM -> 115.0
My program used a JSON data source, so manipulating these values was really easy. I have never used cube/mongo and so I don't know how easy it will be to do the same there.
Does this answer your question?