1 Reply Latest reply on Sep 11, 2013 12:58 PM by Maciej Swiderski

    Facing issues while integrating with Rules in jBPM

    Priyadarshini Amarjeeth Newbie


      Hi,

       

      I've implemented a simple process which has been integrated wtih the Rules via Rule Task.I've also included few SOP statements in my DRL file.

       

      My observation from the logger statements in DRL file is that the details of the already compelted process instances are also getting printed wtih their respective process ids.

      The flow works fine when the previouse process have succeffully completed but when there are process instances with errors then the flow breaks with Null pointer exception.

       

      Logs for the case when the previouse instances have successfully completed

       

      11:04:14,374 INFO  [stdout] (Thread-89) Inside human task

      11:04:14,374 INFO  [stdout] (Thread-89) Inside first script task

      11:04:14,384 INFO  [stdout] (Thread-89) Processing rules GOLD ::: 63

      11:04:14,384 INFO  [stdout] (Thread-89) Processing rules PLATINUM ::: 61

      11:04:14,394 INFO  [stdout] (Thread-89) Gold customer

      11:04:17,490 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-2) Creating RulesRepository with default username.
      11:04:17,506 INFO  [stdout] (http-localhost-127.0.0.1-8080-2) =============== session-guest-745

      11:04:17,521 INFO  [stdout] (http-localhost-127.0.0.1-8080-2) =============== session-guest-745

       

      Logs for the case when the previouse instances were not successful

       

      10:58:42,032 INFO  [stdout] (Thread-89) Inside human task

      10:58:42,032 INFO  [stdout] (Thread-89) Inside first script task

      10:58:42,052 INFO  [stdout] (Thread-89) Processing rules PLATINUM ::: 59

      10:58:42,062 INFO  [stdout] (Thread-89) Processing rules PLATINUM ::: 61

      10:58:42,062 INFO  [stdout] (Thread-89) Platinum customer

       

      ERROR [org.drools.persistence.SingleSessionCommandService] (Thread-90) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.rules:56 - Rule:5] -- Exception executing consequence for rule "IS_PLATINUM" in defaultPackage: java.lang.NullPointerException

       

      I had to manually clear the data related to instances 59/61 for my process to get going

       

      Attaching the files for your reference.