I was using template to build the decision table type of rule editor. I
have switched to the "decision table" since then.
However since the template design allows me to achieve the decision table
look and feel, it would be great to allow us to define the display name of
the "column" as well.
Yes, since I was allowed to provide a nature context, the application
should either handle it or remind me that the value is not valid when I
define the template key, instead of giving me a exception.
Sean
Sent from my iPad
On Apr 23, 2012, at 4:34 AM, Michael Anstis <michael.anstis(a)gmail.com>
wrote:
Hello,
Are you using a Rule Template or Decision Table? Your post states "template
(decision table)" but these are two different things entirely.
That aside, it does sound like a bug - you should either not be able to
define invalid column names in Guvnor or we should provide a means to
protect against internal limitations (e.g. invisibly munge the
user-provided column title into one that is valid at compile time). Can you
please raise a JIRA
https://issues.jboss.org/browse/GUVNOR and attach a
repository export demonstrating the problem.
Thanks,
Mike
On 19 April 2012 20:52, Sean Su <sean.x.su(a)gmail.com> wrote:
Apparently, the value of the column (name) must be one word. In the
case I
have, "Lower Range" is not valid.
value Lower Range is not a valid column definition.
Question for the Guvnor development team: is there any other place we can
set the column name as "natural language"? Or this is bug?
Sean
On Thu, Apr 19, 2012 at 3:31 PM, Sean Su <sean.x.su(a)gmail.com> wrote:
> I am using 5.4.0.CR1 to build a template (decision table) but regardless
> what I do, I will get this exception from the first column.
>
> Are we aware of any known issues in this build? Or the way I am using the
> tool is wrong? I can provide the repository if it helps.
>
> Thanks
>
> Sean
>
> ERROR 19-04 15:25:31,518 (LoggingHelper.java:error:74) Unable to
> build asset.
> java.lang.IllegalArgumentException: value Lower Range is not a valid
> column definition
> at
> org.drools.template.parser.ColumnFactory.getColumn(ColumnFactory.java:34)
> at
>
org.drools.template.parser.DefaultTemplateContainer.parseTemplate(DefaultTemplateContainer.java:93)
> at
>
org.drools.template.parser.DefaultTemplateContainer.<init>(DefaultTemplateContainer.java:47)
> at
> org.drools.template.DataProviderCompiler.compile(DataProviderCompiler.java:56)
> at
> org.drools.guvnor.server.util.BRDRTPersistence.marshal(BRDRTPersistence.java:57)
> at
>
org.drools.guvnor.server.contenthandler.drools.BRLContentHandler.getSourceDRL(BRLContentHandler.java:84)
> at
>
org.drools.guvnor.server.contenthandler.drools.BRLContentHandler.compile(BRLContentHandler.java:61)
> at
>
org.drools.guvnor.server.builder.PackageAssemblerBase.compile(PackageAssemblerBase.java:88)
> at
>
org.drools.guvnor.server.builder.PackageAssemblerBase.buildAsset(PackageAssemblerBase.java:72)
> at
>
org.drools.guvnor.server.builder.AssetItemValidator$BuilderValidator.validate(AssetItemValidator.java:57)
> at
>
org.drools.guvnor.server.builder.AssetItemValidator.validate(AssetItemValidator.java:44)
> at
>
org.drools.guvnor.server.RepositoryAssetOperations.validateAsset(RepositoryAssetOperations.java:142)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44)
> at
> org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)
> at
>
org.drools.guvnor.server.RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.validateAsset(RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.java)
> at
>
org.drools.guvnor.server.RepositoryAssetService.validateAsset(RepositoryAssetService.java:338)
> at
>
org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientProxy.validateAsset(RepositoryAssetService$Proxy$_$$_WeldClientProxy.java)
> at
>
org.drools.guvnor.server.RepositoryServiceServlet.validateAsset(RepositoryServiceServlet.java:388)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
> at
>
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
> at
>
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
> at
>
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:662)
>
>
> --
> "But beware of the Dark Side. Anger, fear, aggression - the Dark Side of
> the Force are they." -Yoda
>
--
"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of
the Force are they." -Yoda
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users