Bug 1079390 - DSL sentences can not be started with "When"
Summary: DSL sentences can not be started with "When"
Keywords:
Status: CLOSED DUPLICATE of bug 1078835
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-21 14:12 UTC by Toni Rikkola
Modified: 2014-03-21 20:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-21 20:11:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Toni Rikkola 2014-03-21 14:12:18 UTC
Description of problem:

Fails
[when]when customer spends ${var}=$sc : ShoppingCart( cartItemTotal >= {var} )

Works
[when]if customer spends ${var}=$sc : ShoppingCart( cartItemTotal >= {var} )

When the first sentence is used the workbench gives the following error in the Problems console.

Unable to Analyse Expression var: [Error: unexpected end of statement] [Near : {... var ....}] ^

The parser might be confusing [when] with when.

Comment 1 manstis 2014-03-21 14:13:21 UTC
Toni, if this is a core engine DSL parsing issue please reassign to Edson.

Comment 3 Toni Rikkola 2014-03-21 15:53:04 UTC
I feel like it is, but need to do a test to be sure.

Comment 4 Toni Rikkola 2014-03-21 20:11:48 UTC
And after all it was the var issue like the error actually says. Marking this as a duplicate.

Sorry for the email spam.

*** This bug has been marked as a duplicate of bug 1078835 ***


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