Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2099

Example source.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 5.2.0.M1
    • 5.0.1.FINAL
    • drools-compiler
    • None
    • Documentation (Ref Guide, User Guide, etc.)

    Description

      Hi! We are studying Drools 5.0 in order to use..
      But a curious problem has happened, while executeing an example in documentation.

      It is 3.1.3. Defining Processes Using the Process API in drools-5.0-docs\drools-flow\html_single\index.html.
      Actually, 3.1.3.1. Example 1 is working normally, but 3.1.3.2. Example 2 and 3.1.3.3. Example 3 occur error.
      I 'll tell you what we grasp the reason for error, so far.

      When it's working normal, <ActionNode> exists.
      The other way, when it is not working normal, <ActionNode> doesn't exist.
      For example, in case of 3.1.3.2. Example 2

      RuleFlowProcessFactory factory =
      RuleFlowProcessFactory.createProcess("org.drools.HelloWorldJoinSplit");
      factory
      // Header
      .name("HelloWorldJoinSplit")
      .version("1.0")
      .packageName("org.drools")
      // Nodes
      .startNode(1).name("Start").done()
      .splitNode(2).name("Split").type(Split.TYPE_AND).done()
      .actionNode(3).name("Action 1")
      .action("mvel", "System.out.println(\"Inside Action 1\")").done() < -here, NullPointerException occurs.
      .actionNode(4).name("Action 2")
      .action("mvel", "System.out.println(\"Inside Action 2\")").done()
      .joinNode(5).type(Join.TYPE_AND).done()
      .endNode(6).name("End").done()
      // Connections
      .connection(1, 2)
      .connection(2, 3)
      .connection(2, 4)
      .connection(3, 5)
      .connection(4, 5)
      .connection(5, 6);
      RuleFlowProcess process = factory.validate().getProcess();

      Please, let me know entire source I can execute this example well.

      Thank you for your consideration.

      I am waiting for you answer.

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            ygt1005_jira gitae yang (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified

                PagerDuty