GithubHelp home page GithubHelp logo

fraud-scenario's People

Contributors

bsunderhus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fraud-scenario's Issues

Fails to evaluate situation DoubleSessionLocation in the FraudScenarioTest

there's an error when evaluationg temporal operators in drools involving situations

Session(this.client == client, this overlappedby firstSession || this after [1h] firstSession)

brings an error

Exception in thread "Thread-0" java.lang.RuntimeException: Error evaluating constraint 'overlappedby0.evaluate( this, firstSes
sion ) || after1.evaluate( this, firstSession )' in [Rule "DoubleSessionLocation" in FraudScenario.drl]

FraudScenarioTest fails to build metamodel

The main FraudScenarioTest is failling right at the moment to evaluate the `KieSession``.

14:28:12,472  INFO FraudScenarioTest:58 - Now running data
14:28:12,476 DEBUG SCENELogger:24 - INSERT - co.pextra.fraud.Client@1d05366
14:28:12,476 DEBUG SCENELogger:24 - INSERT - co.pextra.fraud.Device@f143ed
14:28:12,476 DEBUG SCENELogger:24 - INSERT - co.pextra.fraud.AuthToken@1e3314
14:28:12,477  INFO FraudScenarioTest:67 - Final checks
Exception in thread "Thread-0" Exception executing consequence for rule "Session" in co.pextra.fraud: br.ufes.inf.lprm.scene.exceptions.SituationTypeNotFound: co.pextra.fraud.Session not found
    at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
    at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1063)
    at org.drools.core.phreak.RuleExecutor.fire(RuleExecutor.java:121)
    at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:74)
    at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:970)
    at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1312)
    at org.drools.core.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1232)
    at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:1398)
    at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:1377)
    at co.pextra.fraud.RuleEngineThread.run(RuleEngineThread.java:14)
Caused by: br.ufes.inf.lprm.scene.exceptions.SituationTypeNotFound: co.pextra.fraud.Session not found
    at br.ufes.inf.lprm.scene.util.SituationHelper.situationDetected(SituationHelper.java:34)
    at co.pextra.fraud.Rule_Session1742232626.defaultConsequence(Rule_Session1742232626.java:7)
    at co.pextra.fraud.Rule_Session1742232626DefaultConsequenceInvokerGenerated.evaluate(Unknown Source)
    at co.pextra.fraud.Rule_Session1742232626DefaultConsequenceInvoker.evaluate(Unknown Source)
    at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1052)
    ... 8 more```

Improve fraud scenario

The current fraud scenario deserves a redo widening the problem to provide a better reference as a situation scenario.

here's a class diagram:

main

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.