Skip to content

No Response after 10th rule #8

Description

@nitincn

Hi,

I'm running rules engine by java code as executable jar file. I'm running these rules engine by another java program to check against records in CSV file. After 10th row, I'm not getting response from this line - "Engine engine = new Engine(_rules, true);". Also no error thrown.

I can run the program successfully by Linux command directly. Also by eclipse in debug mode.

Pasted code below -

//Main another program
ProcessBuilder pb = new ProcessBuilder("java", "-jar", "myrules.jar", "jsonInput");
Process p = pb.start();

//Code in the JAR program
private int ruleEngine(List _rules, String input) {
int isPass = 0;
try {
Engine engine = new Engine(_rules, true);
isPass = engine.getMatchingRules(input).size();
} catch (Exception ex) {
isPass = 0;
System.out.println(ex.getMessage());
}
return isPass;
}

Please help me to fix the issue.

Thanks

Nitin C N

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions