Bug 1079390

Summary: DSL sentences can not be started with "When"
Product: [Retired] JBoss BRMS Platform 6 Reporter: Toni Rikkola <trikkola>
Component: Business CentralAssignee: manstis
Status: CLOSED DUPLICATE QA Contact: Jiri Locker <jlocker>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lpetrovi, mwinkler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-21 20:11:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***