[jBPM] - invalid package name
by stellina_rosa
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&cont...]
14 years, 8 months
[jBPM] - Explenation on mapping variables, input, output to Tasks
by Adam Bach
Adam Bach [http://community.jboss.org/people/heathcliff] created the discussion
"Explenation on mapping variables, input, output to Tasks"
To view the discussion, visit: http://community.jboss.org/message/601998#601998
--------------------------------------------------------------
I'm trying to create a general implementation of WorkItemHandler for WebService representation.
The idea is to allow specifying webservice call from BPMN2.0 diagram. I think Eclipse Editor has fewer options for setting ettributes etc than Guvnor one should use it only there at this moment. Guvnor Oryx editor allows to set wsdlLocation etc.
I use javax.xml.soap package classes to call webservices. I use WSDL4J for wsdl interpretation.
At this moment the last missing thing is mapping process variables to web service taks input and than to map them to web service call params.
Problem is I'm not an BPMN2.0, BPEL, JPDL, WebServices expert. And neither eclipse not Oryx support any api for associating process variables to task.
I couldnt find any explenation on how to assign/map process variables to inputs of serviceTask. I've seen that ioSpecification element is stored as one of the parameters passes to WorkItem and than to WorkItemHandler. So I think may be used for this functionality but can't find what format should this ioSpecification have. Should it use some extension elements?
If u know any good articles/materials/tootorials please give me tell me. Or mabe You can explain it yourself. even in short.
PS: The first idea I had was to mimic BPEL assign functionality that uses XPath with combination of some MVEL expressions to extract data from process variables. But I don't this this is a standarized way.
THX
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/601998#601998]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[JBoss Tools] - how to customize dao export code
by u j
u j [http://community.jboss.org/people/bcn] created the discussion
"how to customize dao export code"
To view the discussion, visit: http://community.jboss.org/message/600914#600914
--------------------------------------------------------------
How can I change the scope of the entityManager field in the generated Home classes of the dao exporter to protected?
That's what I did so far:
- In Eclipse I added a hibernate.hbm.xml file to the console configuration
- The console configuration is used in the code generation run configuration which generates the DAOs
- The hbm.xml looks like:
<hibernate-mapping>
<meta attribute="scope-field" inherit="true">protected</meta>
</hibernate-mapping>
I also tried:
<hibernate-mapping>
<meta attribute="scope-field" inherit="true">protected</meta>
<class name="TCity">
<meta attribute="scope-field">protected</meta>
<id></id>
</class>
</hibernate-mapping>
I observe no effects at all, neither in entity classes nor in dao classes. Either the file is not used or the format is wrong.
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600914#600914]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months