[designer] problem with color theme selection
by Cristiano Gavião
I'm using Guvnor 4.3.Final with Designer 2.2.Final.
I have to say that Designer is getting amazing each version.
Congratulations and thanks the team for that !!!
But I didn't like the default color because I can't read well the black
text in a dark gray background color.
So when I try to test the color theme and select the jBPM theme button I
got this message: " invalid color theme data".
what this mean ?
How can I create my own color theme ?
regards,
Cristiano
13 years, 10 months
use of enum with "in" on LHS
by dsykes
Hi there,
I have a rule where I would like human-readable rule to have a comma
separated list of enum constants in it, however I can't find a way to get
this working.
DSLR file:
import com.test.Report;
import com.test.RulesResult;
import com.test.State;
rule "Test rule"
when
the received object
- state is NEW, MODIFY
then
#unimportant
end
DSL file:
[*][when]the received object=result : RulesResult();$stm : Report()
[*][when]- state is {stateList}=state in (State.{stateList})
Class Report has a property called state which is an enum of type State
which has a number of constants including NEW and MODIFY.
When I run this I get:
org.drools.RuntimeDroolsException: Exception executing predicate ( state ==
State.NEW || state == MODIFY)
As you can see only the first constant is being qualified with the enum
class. Can anyone help me with how to do this properly?
Thanks,
Derek
--
View this message in context: http://drools.46999.n3.nabble.com/use-of-enum-with-in-on-LHS-tp3997081.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
Necessary dependencies when using ruleflow
by Sean Su
I did some search here and found using jbpm-bpmn2 dependency will get rid
of the following error.
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-bpmn2</artifactId>
<version>5.3.0.CR1</version>
</dependency>
Is this the correct soluation? If there is such an dependency, should not
the drools-core be taking care of this in the pom file? Now I tried to add
the dependency myself but ended up with some method not found exception,
which I believe is caused by the version mismatching (since I do not know
which version would match drools 5.3.0.final).
I would assume using ruleflow is common practice in this forum. does anyone
else have this issue when working with 5.3.0.Final?
Thanks
Sean
"java.lang.RuntimeException: Unable to instantiate a process builder"
....
Caused by: java.lang.ClassNotFoundException:
org.jbpm.process.builder.ProcessBuilderFactoryServiceImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:207)
--
"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of
the Force are they." -Yoda
13 years, 10 months
Evaluation of the of rules with 'window:length' event windows
by senyatur
Hi guys
We are using Drools for event processing. So we have rules that, for
instance, put accumulation function over window of number of elements (not
time).
... from accumulate(Class1($a:a) over window:length(X) from entry-point
"Point"...
The problem we are experiencing that when evaluating the rule when there are
*less* elements than X (window length) the accumulation function is still
calculated which leads to wrong results.
Is there a way in Drools to restrict firing of this type of rules when there
are less than 'length' elements in the session?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Evaluation-of-the-of-rules-with-window-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
How to control the order of rule execution
by San
Hi All
I am just a month old to drools.
We are doing a small poc.
*Our requirement:*-we want 5 rules should be fired but only in a particular
order.say rule 1 first, den rule 2 n so on...
I have proceeded by creating a ruleflow file in eclipse and mentioned the
ruleflow-group names in our correspondong rules in the (.drl) rule file.
In guvner 5.4 i am trying to create a process n importing our .rf ruleflow
file. Its is able to upload it sucessfully bt i am nt able to open it in
guvner editor.
*Questions:*
1st -What cud be d problems in the above case?
2nd- can I create a test case for our rule flow in guvnor and execute it?
3rd- given our requiments is there any better way of executing it other than
rule flow in Drools?
Tnks to all in advance..
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-control-the-order-of-rule-execut...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
Killing a session
by mike
Hi there,
Is there any way to kill a running session?
I've been trying with StatefulKnowledgeSession.abortProcessInstance but i
can't get it working.
For instance .. I got this drl
rule "infinite loop"
when x : Integer()
then
System.out.println(x);
Thread.sleep(100);
insert(x + 1);
end
n' this Thread
public class SessionThread implements Runnable {
private StatefulKnowledgeSession session;
public SessionThread(StatefulKnowledgeSession session) { this.session =
session; }
public void run() { session.fireAllRules(); }
}
then i create a session with the drl n' do something like ...
session.insert(42);
Thread thread = new Thread(new SessionThread(session));
thread.start();
Thread.sleep(1000);
session.abortProcessInstance(thread.getId());
I've tried diff processInstanceIds and session.getProcessInstances() but
nothing seems to stop the running session
Thank you
Mike
13 years, 10 months
Guvnor problem - lock file appears in guvnor repository root
by benfro
Hi.
We are trying out Guvnor 5.3.0 in a JBoss 4.2.2 environment.
Guvnor is set up to use an Oracle 11 instance as repository.
We experience a couple of problems:
1) We all login as "guest", and when creating a package, the package appears
on other workstations but no assets. Is this an expected behaviour? We
should be able to see each others rules, right? The DB setup, defined in the
repository.xml file, seems ok, tables are created fine etc.
2) As soon as we start JBoss a .lock file appears in the repository root. It
is tied to the entire JBoss process and cannoit be deleted. Anyone recognize
this?
Sincerely
benfro
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-problem-lock-file-appears-in-guv...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
how to loop back in bpmn process
by sumatheja
Hi All,
I'm trying to write a flow which will loop back (go back to
particular node on a condition and start executing nodes from there) on
passing a certain validation. I'm confused on how exactly to achieve this.
I'm using an OR gateway to split and using XOR to join them back. But the
problem is XOR expects always atleast one branch to be true which is not
necessarily true here and, if I use AND both should be true which again is
not valid here. Can someone suggest a way to achieve this behaviour. Thanks
in advance.
--
cheers
Sumatheja Dasararaju
13 years, 10 months