JBoss Community

invalid package name

created by stellina_rosa in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community