Hide Forgot
Affects: Documentation (Ref Guide, User Guide, etc.) Date of First Response: 2009-07-30 11:18:18 securitylevel_name: Public 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.
Link: Added: This issue is related to JBRULES-2099
After talking to Mark P, rejected as not applicable to the product.