Bug 724240 (BRMS-184) - Example source.
Summary: Example source.
Keywords:
Status: CLOSED NOTABUG
Alias: BRMS-184
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: unspecified
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.0.1
Assignee: Mark Proctor
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-07 15:37 UTC by nwallace
Modified: 2009-10-05 00:20 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Windows XP,eclipse
Last Closed: 2009-07-30 15:18:18 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-184 0 None None None Never

Description nwallace 2009-07-07 15:37:59 UTC
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.

Comment 1 nwallace 2009-07-07 15:39:21 UTC
Link: Added: This issue is related to JBRULES-2099


Comment 2 trev 2009-07-30 15:18:18 UTC
After talking to Mark P, rejected as not applicable to the product.


Note You need to log in before you can comment on or make changes to this bug.