[jboss-user] [jBPM] - invalid package name

stellina_rosa do-not-reply at jboss.com
Tue Apr 26 06:41:23 EDT 2011


stellina_rosa [http://community.jboss.org/people/stellina_rosa] created the discussion

"invalid package name"

To view the discussion, visit: http://community.jboss.org/message/601955#601955

--------------------------------------------------------------
Hi, 
I tried to run the BabyStepExample of Salaboy blog and it's all ok. After this, I tried to create a similar example where the process start when I pass it a username and a password, and a drools file where I print a message ("Hi admin" if the user is the administrator, "Hi user" otherwise);

It gives me this error:



org.drools.RuntimeDroolsException: invalid package name
          at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:175)
          at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:254)
          at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:430)
          at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:470)
          at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
          at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:71)
          at com.sample.ProcessTest.main(ProcessTest.java:41)
[5,58]: [ERR 102] Line 5:58 mismatched input 'process' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-6-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[5,119]: [ERR 102] Line 5:119 mismatched input ')' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-6-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[5,120]: [ERR 102] Line 5:120 mismatched input 'kcontext' expecting ')' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-6-DROOLS_DEFAULT"
[6,7]: [ERR 101] Line 6:7 no viable alternative at input 'return' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-6-DROOLS_DEFAULT"
[6,58]: [ERR 101] Line 6:58 no viable alternative at input '"tipoUtente"' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-6-DROOLS_DEFAULT" in pattern equals
[13,58]: [ERR 102] Line 13:58 mismatched input 'process' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-7-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[13,119]: [ERR 102] Line 13:119 mismatched input ')' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-7-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[13,120]: [ERR 102] Line 13:120 mismatched input 'kcontext' expecting ')' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-7-DROOLS_DEFAULT"
[14,7]: [ERR 101] Line 14:7 no viable alternative at input 'return' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-7-DROOLS_DEFAULT"
[14,50]: [ERR 101] Line 14:50 no viable alternative at input '"tipoUtente"' in rule "RuleFlow-Split-com.sample.bpmn.hello-5-7-DROOLS_DEFAULT" in pattern equals
org.drools.compiler.ProcessLoadError: unable to parse xml : Exception class org.drools.RuntimeDroolsException : invalid package name
java.lang.IllegalArgumentException: Could not parse knowledge.
          at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:58)
          at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:73)
          at com.sample.ProcessTest.main(ProcessTest.java:41)


I attached the project... could anyone help me please?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/601955#601955]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110426/bf51daa1/attachment-0001.html 


More information about the jboss-user mailing list