Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rules Book engine behaves differently on same input #179

Open
nitinsridar opened this issue Jan 21, 2020 · 1 comment
Open

Rules Book engine behaves differently on same input #179

nitinsridar opened this issue Jan 21, 2020 · 1 comment

Comments

@nitinsridar
Copy link

Implementing rules engine service using Spring boot.
Every time If I hit the API with the below request I'm seeing different responses.
The first 5 times it is behaving as expected then if I start sending requests continuously for every 10ms then responses are different and it continues to behave weird.

<dependency><groupId>com.deliveredtechnologies</groupId><artifactId>rulebook-spring</artifactId><version>0.11</version></dependency>

This is the dependency we are using for the rules engine service in our project.

Request:

{
   "division":12,
   "itemId":609372131802,
   "lcoation":"bengaluru",
   "buy":false,
   "sell":false,
   "home":null,
   "store":null,
}

Response 1:

{
   "division": 12,
   "itemId": 609372131802,
   "location": "bengaluru",
   "re": [
   "sellDB",
   "calculateAll",
   "buyDB"
  ]
}

Response 2:

{
   "division": 12,
   "itemId": 609372131802,
   "location": "bengaluru",
   "fulfillmentTypeList": [
   "buyDB"
  ]
}

Expected Response:

{
   "division": 12,
   "itemId": 609372131802,
   "location": "bengaluru",
   "fulfillmentTypeList": [
   "buyDB",
   "sellDB"
  ]
}
@Clayton7510
Copy link
Collaborator

Can you attach the code that is having the issues? It would be helpful to see how you configured it. That way, I can determine if it's an issue with how the state is managed across threads or the spring config or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants