[jBPM] - Unable to run example project as Java application
by Derek Pang
Derek Pang [http://community.jboss.org/people/delbacca] created the discussion
"Unable to run example project as Java application"
To view the discussion, visit: http://community.jboss.org/message/632929#632929
--------------------------------------------------------------
Hi,
I am new to JBPM. I have just finished installing it and am able to lauch Eclipse plugin UI. I have imported a couple of example projects to test and play around with. When I try to execute the process with 'run as java application' I get the following error:
org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:277)
at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:262)
at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:175)
at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:153)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:254)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:182)
at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:40)
at com.sample.ProcessTest.main(ProcessTest.java:24)
Caused by: org.drools.RuntimeDroolsException: value '1.7' is not a valid language level
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.getDefaultLanguageLevel(JavaDialectConfiguration.java:161)
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:56)
at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:273)
... 9 more
Can anyone shed any light as to how this can be resolved? Am I missing plugins or Drools Rule Engine?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632929#632929]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[jBPM] - Tasks definition extension points
by Marco Piraccini
Marco Piraccini [http://community.jboss.org/people/mpiraccini] created the discussion
"Tasks definition extension points"
To view the discussion, visit: http://community.jboss.org/message/612158#612158
--------------------------------------------------------------
Hi Guys,
I'm looking for a (smart) way of extending Tasks definitions with custom attributes, in a way similar to the one used with "drools" attributes.
For instance, if we have:
<bpmn2:task id="(...)" drools:taskName="Application" name="Task2">
(...)
</bpmn2:task>
...I'd like also to define:
<bpmn2:task id="(...)" drools:taskName="Application" custom:group="test" name="Task2">
(...)
</bpmn2:task>
...where the "group" attibute is defined by me.
Now, I'd like to get these values in my WorkItems, so that I can use them in my (custom) WorkItemHandler.
Looking at the JBPM code, the correct strategy seems to be (correct me, if I'm wrong) to load them in the org.jbpm.bpmn2.xmlAbstractWorkHandler class and to put them as WorkItem "Metadata".
Now the question is: Is my reasoning is correct ore there's a smarter way to obtain the same thing? Becaus if i'm not wrong, I have to modify the JBPM code to implement that...
Marco.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612158#612158]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[jBPM] - How to setup Event to stop current execution & "jump" to that node?
by Ryan Peterson
Ryan Peterson [http://community.jboss.org/people/rrpeterson] created the discussion
"How to setup Event to stop current execution & "jump" to that node?"
To view the discussion, visit: http://community.jboss.org/message/632377#632377
--------------------------------------------------------------
Hi guys,
I'm trying to figure out how to stop the current path of execution, and start at the point of a triggered event.
For example, I have a chain of emails to be sent (2 emails, each seperated by a 3 day timer) asking someone to perform an action which will trigger an event. If they perform the event, then the 2nd email doesn't need to be sent (no reason since they already did what was asked). If they don't reply to either email, then there would be further rules to deal with that.
Basically I have:
http://community.jboss.org/servlet/JiveServlet/showImage/2-632377-17183/b... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-632377-171...
Two emails will be sent (ignore the first timer), after which a human task must occur. If they read the emails and perform either of the two tasks below, then that path of action should be followed.
Right now if during one the of the timers an event occurs, that path of execution fires in parallel with the first path. Is there a way to halt execution in the first path and just continue in the 2nd based on an event trigger?
Thanks for any help!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632377#632377]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months