Questions tagged [rules]

This tag is very broad, try being more specific by using tags relevant to your problem. Examples are "rule-engine" for rules engines, "url-rewriting"/"mod-rewrite" for rewrite rules or "form-validation" for validation rules. See the full wiki article for a more complete list.

Rules are used to describe a requirement for data or behavior in software.

If a more specific tag exists for the subject of your question, please use that tag to better contact experts familiar with that technology.

1666 questions
0
votes
1 answer

how to create dynamic salience in drools6

I am trying to create a dynamic salience in drools6. My project requirement is to create a salience like "Sailence (1000*weighting+sequence)". Where weighting == (10-priority) Is it possible to create this? If yes, can you provide any example or…
siddu
  • 11
  • 1
  • 4
0
votes
1 answer

Magento Shopping Cart "alert ##" rules are somehow being automatically generated

Over the past couple of months, we seem to be getting all these automatically generated shopping cart rules being created. They have the name of "Alert #691", "Alert #697" etc. The incrementation appears to be a bit random (but always increases). We…
Simon
  • 16
  • 3
0
votes
1 answer

asking for alternate method apart from eval in python

Problem i am solving: i am giving liberty to user to make conditions and actions for making rules while inserting data into a database and evaluate these conditions and action, i could not think anything else from using eval , an example of…
igauravsehrawat
  • 3,696
  • 3
  • 33
  • 46
0
votes
1 answer

Yii2 adjusting rules

I have been playing with Yii2 and I am stuck at rules. The functionality I am trying to achieve: User is presented with a form where he can add points to different statistics. However, he has only limited amount of points he can add. Same like in…
Chris Illusion
  • 277
  • 2
  • 5
  • 18
0
votes
1 answer

Prolog - Lotto Machine

This is my first post. I have been teaching myself Prolog for a university project and I am tasked with generating a program that simulates the lotto and compares the random numbers (6 in this case) with the numbers that the user has. If they all…
Jack Noone
  • 1
  • 1
  • 3
0
votes
1 answer

R. How to identify rules

Does anyone know how to identify rules that show which treatments are typically used for which diseases. I have this data. First column - patient, second - disease, third - medicine. P1 D1 M1 P1 D2 M1 P2 D3 M2 M3 P2 D4 M4 P2 D1 M5…
Sage
  • 53
  • 1
  • 5
0
votes
0 answers
0
votes
1 answer

Implement different business rules per user

I am maintaining software that is using if...else statement in Java in order to implement different business rules per user. I know that this is not the best way to implement such a requirement. One idea that I have is to use Spring and use…
Mike A
  • 71
  • 7
0
votes
2 answers

Classifying captured data in unknown format?

I've got a large set of captured data (potentially hundreds of thousands of records), and I need to be able to break it down so I can both classify it and also produce "typical" data myself. Let me explain further... If I have the following strings…
monch1962
  • 5,151
  • 5
  • 31
  • 38
0
votes
1 answer

Rule learning algorithms of RWeka, problems with finding rules concerning dates

I have some problems with the RWeka package of R, more precisely with the rule-learning-algorithms. I have created an .arff file by my own, which you can see below. Now I have run the JRip and J48 algorithm of the RWeka package with the data of the…
titus24
  • 25
  • 3
0
votes
1 answer

Outlook 2010 - rule running a VBA script gives "Script "" doesn't exist or is invalid" error

Windows 7, Outlook 2010 Exchange account. Intermediate Excel VBA programmer, newbie Outlook VBA coder. I need to ensure that all incoming emails are bcc'd to a gmail account. I modified an online macro to suit. It works flawlessly on all incoming…
parodytx
  • 75
  • 1
  • 13
0
votes
1 answer

fIs there a library (preferably python) that can generate rules and conditions using REST API?

I have a platform with some devices that can measure some parameters like temperature, voltage, water flow, etc. I use REST API to get the values. For example, if I want to read temperature of device, I send this request: GET…
JaviCru
  • 51
  • 1
  • 9
0
votes
1 answer

Snort doesn't detect rules except ping

Hi I have a problem with Snort configuration. I set up a virtual network with vagrant hosts, a host of them runs Snort (with Barnyard2), the Snort host is in promiscuous mode so I can read all packets in 192.168.10.*/24. Everything works well with…
Daniele
  • 47
  • 1
  • 9
0
votes
1 answer

Executing Drools Rules Engine on DB for remove duplicates

The question I have is not around drools or rules engine but I have a specific usecase where I am planning to use rule engine. I read through all the questions and googling but was unable to get the best fit. Below is my query we have a crawler…
chaosguru
  • 1,933
  • 4
  • 30
  • 44
0
votes
3 answers

How to handle Account Condition Properties Rules in Outlook VBA

I am trying to add a "from account" condition to a set of Outlook Rules, which are created by VBA. The DisplayName of the account is: abcd@abcd.com, AccountType is: 0 and Class is: 105. Dim oAccountRuleConditionSubscribe As…
clippertm
  • 149
  • 5
  • 18