I also have a similar [then] DSL which is trying to set a value. Looks
like:
[then]Set summary to {summary}=... code here ...
As expected, the same problem occurs.
Is there a workaround for these two scenarios?
Can I set a regex on the DSL for the [when] and [then]?
Like:
[when]- and var9 matches {v9:.*}=field9!=null, field9 matches "{v9}"
[then]Set summary to {summary:.*}=... code here ...
I am not very familiar with regex inside the DSL variable placeholders.
I've only just seen this in other forum posts.
Thanks,
John
-----------------------------------------------------------------------
Tested it and this is a bug.
I made a Jira for it so you can follow it.
> All,
>
> I have a DSL sentence that looks like this:
> [when]- and var9 matches {v9}=field9!=null, field9 matches "{v9}"
>
> When using the Guvnor guided rule editor, I add the "- and var9
> matches {v9}" DSL sentence to the rule, giving me a WHEN condition
> like this:
> - and var9 matches [text box]
>
> I want to put a URL in the text box, but anytime I use a value
> containing a colon":",
> I get a popup box with error message "The value [some value with a
> colon] is not valid for this field"
>
> Example:
> DSL in rule, using guvnor guided editor: "- and var9 matches
> [
http://google.com]"
> Popup error message: "The value
http://google.com is not valid for
> this field"
>
> What needs to happen to allow a value with a colon? I did not have
> this problem with drools4 and JBRMS.
>
> Thanks,
> John