Kie-Workbench install error
by gboro54
Hi! I am trying to install the Kie-workbench war to a jboss 7 environment and
get the exception below. I would imagine this is because of firewall and my
company will not open a connection to this repo. My question: is there a way
to have the deployment go through without loading the example projects?
Thanks!
Caused by: java.lang.RuntimeException:
https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
git-upload-pack
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:80)
at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)
at
org.uberfire.backend.server.repositories.RepositoryFactoryImpl.newRepository(RepositoryFactoryImpl.java:36)
at
org.uberfire.backend.server.repositories.RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.newRepository(RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.java)
at
org.uberfire.backend.server.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:182)
at
org.uberfire.backend.server.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:173)
at
org.uberfire.backend.server.repositories.RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.createRepository(RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.java)
at
org.kie.workbench.drools.backend.server.AppSetup.createRepository(AppSetup.java:274)
at
org.kie.workbench.drools.backend.server.AppSetup.assertPlayground(AppSetup.java:101)
... 43 more
--
View this message in context: http://drools.46999.n3.nabble.com/Kie-Workbench-install-error-tp4027840.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
Re: [rules-users] "in" syntax breaking the Rete Tree
by Mark Proctor
Each person that helps, by responding on this list, is volunteering their time of their own personal volition. Personal time is precious, and should be respected. There is no automatic right to mine or anyone else’s time on this list.
Our time is prioritised for paying customers. Red Hat is not a foundation, we aren’t employed to service a free community. We personally chose to try and engage the community as much as time allows; often well into our personal time. We do this, not because we have to, or that our employment requires it, but because we are passionate about what we do.
Our time is prioritised for paying customers. Our subscription model ensures customers can ask questions under, time monitored, Service Level Agreements. All tracked and managed by a dedicated team.
Our time is prioritised for paying customers. Our subscription model ensures we work first on bugs reported by customers. Our time is limited, and while all bugs are important, some bugs are more important than others. In general runtime issues have our highest priority; for instance I’m sure many people here would rather we prioritise a memory leak over a UI limitation in the Rete viewer, or that we ensure the OSGi Karaf container works.
If you require this level of service, then I can have someone from sales contact you with regards to purchasing a subscription. You will then receive our full and undivided attention.
The community forum is provided as a focal point for the community to talk among itself, to explore and share ideas and to help each other. When we can and we have time, Red Hat core developers, try and engage with the community. This is not a requirement of our employment. Like many others on this list, we do it anyway because we are passionate about what we do.
Even if it was possible to stretch our limited time further, If we provided that level of service in the community, then what would be the value of a subscription for our paying customers? How would Red Hat, without customers, employ my team and I?
Open Source is not about “free stuff”, it’s about enabling and empowering people, and communities. You are not beholden to a propriaraty company, who may or may not chose to fix things. You are empowered, and actively supported, to become part of the developer community and fix these things yourself. Enabling, sharing and doing things together, is what Open Source is about.
At some point I hope you look back on this post, and feel some degree of embarrassment.
Mark
PS You can atone for your sins by submitted a pull request for a Rete viewer fix.
http://docs.jboss.org/drools/release/5.6.0.Final/droolsjbpm-introduction-...
Project vs Product explanation:
http://blog.athico.com/2011/04/drools-jbpm-community-versus-product.html
On 21 Feb 2014, at 10:43, droolster <quant.coder(a)gmail.com> wrote:
> @Mark,
> "We saw this message..." - then why wasn't the advice given to raise a bug
> earlier? Why did it take 8 posts to eventually get to that point? It's a
> waste of time and effort, and a lack of appreciation for people who are
> trying to promote your product in their industry and workplace.
>
> Your other point about the Rete Viewer being low priority. For developers
> who are new to Drools (like me), one of the assurances we get that our rules
> are properly defined is the Rete viewer. If the Rete Viewer shows errors,
> then it gives doubts about whether the rules are properly defined. In my
> case, the rules still function correctly but if I am going take my rule
> engine into a Production environment I want all the assurances I can get.
>
> Thank you for eventually replying to my post.
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/in-operator-breaking-the-Rete-Tree-tp40...
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
10 years, 9 months
Multuple AgendaFilter is not possible
by ismaximum
Hi
I'm trying to add multiple FireAllRulesCommand, each with different
AgendaFilter:
for(Object obj: objs) {
cmds.add(CommandFactory.newInsert(obj));
}
cmds.add(CommandFactory.newStartProcess(processName));
FireAllRulesCommand pre = new FireAllRulesCommand(new
PreAgendaFilter());
FireAllRulesCommand post = new FireAllRulesCommand(new
PostAgendaFilter());
cmds.add(pre);
cmds.add(post);
but it seems ksession.execute() only executes the first FireAllRulesCommand
and ignores the subsequent ones in the list. In this case only 'pre' ... and
if I change the order and add the 'post' before 'pre' it only executes the
'post' command...
Is this a bug or something else behind it?
--
View this message in context: http://drools.46999.n3.nabble.com/Multuple-AgendaFilter-is-not-possible-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
Drools-Guvnor
by sravan k
Date: Mon, 24 Feb 2014 13:58:14 +0530
Hello everyone ,
Hope you are doing good , I am having following queries please give me a solution for the same
>Which version of Drools is stabled ?>For every rule configuration we are restarting tomcat ,because rules are not getting effected that is the reason we are restarting it .If we use 5.5 will this problem can be resolved ?>how to implement Dynamic update of knowledge base ?
---Regards,Sravan.
10 years, 9 months
Best way to have multiple kieBase dynamically
by lukes
Hi,
What's the best way to have multiple kieBases dynamically on
same/different KieFileSystem. let's say if i have 3 different drl(this can
grow dynamically, so don't want to put in kconfig.xml)l files and i want all
three of them to reside in different kiebases so that each session(stateful
and stateless) created from the kiebase can have it's independent set of
rules. Currently i a doing something like below:
this.kFileSystem.write("com.sample" + filename + ".drl", content);
this.kBuilder = this.kService.newKieBuilder(this.kFileSystem);
this.kBuilder.buildAll(); // kieModule is automatically deployed to
KieRepository if successfully built.
if (this.kBuilder.getResults().hasMessages(Level.ERROR)) {
throw new RuntimeException("Build Errors:\n" +
this.kBuilder.getResults().toString());
}
this.kContainer =
this.kService.newKieContainer(this.kRepository.getDefaultReleaseId());
But here, everything goes in to the same knowledgeBase. The actual problems
i am trying to solve are below :
1) If i'll rebuild 1 kieBuilder and kieContainer, others won't get affected
and users can work on them at the same time during runtime.
2) For the stateless sessions, there's no getAgendaGroup(name).setFocus(),
so it won't have to execute all the rules in the universal kieBase in my
case.
Thanks in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/Best-way-to-have-multiple-kieBase-dynam...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
Object size affect on session insertion performance
by mikerod
Does the size of objects inserted into the session as facts directly affect
performance?
I have ran some very simple tests, with a kb with 1 rule that
accumulated/collected over all facts in working memory of a type.
If I have a really simple/small class, say SimpleClass
It looks like:
```
rule "collecting"
when
$res : List() from
accumulate( $s : SimpleClass(),
init( List l = new ArrayList(); ),
action( l.add($s); ),
result( l ))
then
System.out.println("Done");
end
```
If I have a more complex class that will result in deeply nested objects,
say ComplexClass
It looks like:
```
rule "collecting"
when
$res : List() from
accumulate( $s : ComplexClass(), // this is the only difference from
above
init( List l = new ArrayList(); ),
action( l.add($s); ),
result( l ))
then
System.out.println("Done");
end
Now my Java test is just a simple one that puts a timer before and after
insert like:
```
// initialize kb and session as usual
// make N number of objects to insert of type SimpleClass or ComplexClass;
depending on test run
// store them in local variable cs
final long start = System.nanoTime();
for (final SimpleClass c : cs) { // This would be ComplexClass when
comparing
ksession.insert(c);
}
final double end = ((System.nanoTime() - start) / 1000000.0);
final int firedRules = ksession.fireAllRules(); // not really needed
here
```
What I notice from these tests, is that for something like N=5000 of
SimpleClass inserted into the session runs quick, say something like 35 sec.
However, for the same N=5000 of ComplexClass inserted into the session, the
time jumps to something like 148 sec.
I haven't done exhaustive performance testing around this, but I am seeing
this in more complex scenarios as well.
I know that heap space (maybe perm space) play a role in this, but I have
monitored my JVM processes during execution and there is no lack of
available heap space and my machine has a lot of resources available still
in both SimpleClass and ComplexClass scenarios.
I am trying to understand if the actual size of an object inserted into the
session has an affect on its overall performance.
This may be a trivial question and I'm just overlooking something, but I'd
appreciate any advice and feedback on this subject. I have not successfully
been able to find any resources on the internet where this has been
explicitly asked to base any thought off of. I also have read up some on
Rete (and variations e.g. Drools), but I don't see how the size of the
objects inserted as facts applies to the insert performance.
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/Object-size-affect-on-session-insertion...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
6.0.1.F Artifact Repository vs <container>/lib dir
by SrjTx
I am not 100% clear on the relationship between these two.
I want to have an enumeration that is populated from a DB.
It makes sense to me that I have to put the jar with the DB access class in
the repository. I know that I have to also put it in the /lib dir, but I
don't understand the relationship and why I have to do it.
Also, once I add the db access class, there are my.com.tenancy classes and
org.hibernate classes that get flagged as class not found.
I can add them to the repo, but since I don't access them directly, I
guessed that I wouldn't have to put them there and only in the ./lib
Can anyone elaborate on this or share a good link?
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-Artifact-Repository-vs-containe...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months
Find the lowest and highest dates
by LarryW
I'm really new to Drools so this is probably a basic question. However, it
has consequences as to coding style.
I have to go through a class and find the lowest and highest dates. I have
a simple rule that works, below. I know there's also a way to do it using
accumulate, but it's ugly and probably not easily maintainable. Someone
told me I should not use java in the THEN segment, but I don't see anyway
around it. Is there a better way to write this rule than what I have here?
The problem is that the Then segment need only fire once, while the file may
contain any number of service lines. You have to process all service lines
before you know if the dates are the lowest and highest.
rule "FindLowestHighestDates"
when
$claim : Claim();
then
LocalDate lowestBeginDate =
$claim.getServiceLineInfoList().get(0).getServiceRelatedDates().getServiceDates().getBeginDate();
LocalDate highestEndDate =
$claim.getServiceLineInfoList().get(0).getServiceRelatedDates().getServiceDates().getEndDate();
for (ServiceLineDetail srvc: $claim.getServiceLineInfoList())
{
DateRange relDates =
srvc.getServiceRelatedDates().getServiceDates();
if (relDates.getBeginDate() != null &&
relDates.getBeginDate().isBefore(lowestBeginDate))
{
lowestBeginDate = relDates.getBeginDate();
}
if (relDates.getEndDate() != null &&
relDates.getEndDate().isAfter(highestEndDate))
{
highestEndDate = relDates.getEndDate();
}
}
ClaimDates cd = $claim.getClaimDates();
if (cd == null) cd = $claim.createClaimDates();
DateRange sd = cd.getServiceDates();
if (sd == null) sd = cd.createServiceDates();
sd.setBeginDate(lowestBeginDate);
sd.setEndDate(highestEndDate);
end
--
View this message in context: http://drools.46999.n3.nabble.com/Find-the-lowest-and-highest-dates-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 9 months