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
2,246
questions
0
votes
0
answers
32
views
How do I create a custom PMD rule to check if a specific method is called?
I am completely new with the PMD. I am trying to write some basic rules to get used to it. I have this very basic code:
public class Main {
static void print() {
System.out.println("I ...
0
votes
1
answer
20
views
IBM ODM create a rule
I need to create a rule. I have this precondition:
Student is adult (older than 18)
Student's first treatment date is present and is in the past
if
the dateOfBirth of Input is before <...
0
votes
1
answer
51
views
Issue to create a Yara rule using the ssdeep fuzzy hashing technique
I am trying to create a Yara rule using the ssdeep fuzzy hashing technique, I understand that my Yara rule should look like this:
import "hash"
rule SuspiciousSSDeep {
meta:
...
2
votes
0
answers
51
views
How to select only direct subClassOf element in a GraphDB custom ruleset?
In a GraphDB custom ruleset, I need to access only the explicitly declared superclass of an element, but I can't find any predicate (like sesame:directSubClassOf), nor use the implicit/explicit ...
0
votes
0
answers
24
views
How to Transform Incoming IoT Core Message using IoT Core Rule SQL
I am receiving incoming messages as
{"set":
{"datapoints":[
{"name":"abc","type":"int","value":151},
{"name":&...
0
votes
0
answers
101
views
How to perform SWRL rule based reasoning on an ontology owl file in Python to infer individuals into subclasses
I have created an ontology which has Axioms i.e. classes, properties, and Swrl rules incoporated using Protege editor. When I run the reasoner Pallet (Incremental), it infer the implicit facts based ...
0
votes
0
answers
41
views
Suricata rule - extract properties from the rule using python
I am trying to get only certain propreties from the Suricata rule - content and related within and distance values. The outpu should look like eg.:
[[content1, distance1, within1], [content2, none, ...
0
votes
1
answer
97
views
Automatically activating Record Creation and Update rule - Dynamics CRM
I am importing a solution from Dev to target environment. In the solution there is a "Record Creation and Update" rule which after importing is set to "draft" status.
Is there a ...
1
vote
2
answers
100
views
Drools to decide fields to display in UI
I have a scenario where the fields in UI should be displayed based on User roles. For Example- If user is from role "A" then UI will display 5 fields but if the user is from role "B&...
0
votes
0
answers
63
views
Apply a variable discount woocommerce
I am using Woo Rules Pro but i cant find a solution with it
My Issue is that i have several products that have a regular and a sales price (example Product X1 regular price is 100 and now the ...
1
vote
0
answers
107
views
How to execute "Run Rule Now" in Outlook Online using Exchange Online Powershell?
I've looked over all of the Exchange Online Powershell commands related to mailboxes and rule processing, but I can't seem to locate a command or parameter that allows Powershell to execute the "...
0
votes
1
answer
187
views
How can I use whereHas() method in Rule::unique() for Multi Column Unique Validation
Can I use whereHas method in Rule::unique() ?
There are no column here for cows, the data of cows are comming from pivot table by ManyToMany relationship.
Please help me.
I want something like that:
...
1
vote
1
answer
95
views
Snakemake: issues decompressing files in one rule and processing in another. Any solutions or guidance?
I am currently facing an issue with Snakemake, and I hope someone could help me resolve it. I've searched the internet for a solution to a similar problem, but I haven't found anything that solves my ...
0
votes
0
answers
98
views
Disable sale price on Subscription price. WooCommerce Subscriptions & Woo Discount Rules plugin
I have subscriptions applied to most all products on my website. My issue is, when an item goes on sale, the subscription price is based off the sale price at checkout instead of the regular price. ...
0
votes
1
answer
168
views
ASP.NET Core rewrite rule for www https to https non-www using web.config
Say I want my website www.example.com redirected like this:
https://www.example.com -> https://example.com
How would one achieve this? Here is what I tried, but it does not work. I get an ...