Problem importing processes from one system to another
by David Shields OpenCDS
I have created a repository on my own computer (localhost:8080) which
contains a large number of rules and several processes, and exported it to a
file.
I then imported the file into a new remote server (edmopencdsdev:8081) that
is running on a different port: 8081 instead of 8080.
Guvnor seems to work correctly on the new server, except for one thing: It
bombs when I try to open a process that was created on my local machine. It
seems that there are references to the host on the original server stored
within the imported repository somewhere.
Am I doing something wrong, or is this a known issue? If so, is there a
work-around short of separately saving the BPMN2 files and importing each
one of them individually? I have attached a sample of one of the processes
that causes this issue, although all of the processes I have tried fail with
the same error message (shown below) in the logs.
05:57:04,945 INFO [org.apache.jackrabbit.core.TransientRepository]
(http--0.0.0.0-8081-3) Session opened
05:57:22,290 INFO [org.jbpm.designer.server.EditorHandler]
(http--0.0.0.0-8081-2) The diagram editor is running in production mode.
Javascript will be served compressed
05:57:33,587 INFO [org.jbpm.designer.server.EditorHandler]
(http--0.0.0.0-8081-2) Performing diagram information pre-processing steps.
05:57:33,618 ERROR
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--0.0.0.0-8081-2) http://localhost:8080/drools-guvnor/rest/packages/
05:57:33,618 INFO [stdout] (http--0.0.0.0-8081-2) Setting up default
workitem configuration
05:57:33,618 INFO [stdout] (http--0.0.0.0-8081-2) End setting up default
workitem configuration
05:57:34,493 ERROR [org.jbpm.designer.web.server.ServletUtil]
(http--0.0.0.0-8081-2) http://localhost:8080/drools-guvnor/rest/packages/
05:57:34,493 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--0.0.0.0-8081-2) Successfully deleted file
:C:\JBoss\jboss-as-7.1.1.Final\standalone\tmp\vfs\temp8d0d9283eb376a77\desig
ner.war-a884420b84204c5f\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
05:57:34,602 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--0.0.0.0-8081-2) Created
file:C:\JBoss\jboss-as-7.1.1.Final\standalone\tmp\vfs\temp8d0d9283eb376a77\d
esigner.war-a884420b84204c5f\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
05:57:38,040 ERROR
[org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository]
(http--0.0.0.0-8081-1) Unable to connect to Gunvor. Is it running?
[http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/oryxeditor?uui
d=77827ae5-ce58-43d7-84f7-fe5785e5400f&usr=admin&pwd=admin]
05:57:38,587 ERROR [org.jbpm.designer.web.server.ServletUtil]
(http--0.0.0.0-8081-2) http://localhost:8080/drools-guvnor/rest/packages/
05:57:38,743 INFO [org.jbpm.designer.web.server.DictionaryServlet]
(http--0.0.0.0-8081-2) check connection response code: 404
Thanks for any help you can give.
-- des
13 years, 7 months
Marshalling/Unmarshalling KnowledgeBase/StatefulSession
by Paulo Reis
Hi guys,
Im having some issues with the time drools takes to build a knowledge base.
I have couple of pkgs that are compiled (something about 3mb) and drools takes almost 5s to give me the knowledge.
So I would like to know whether I could serialize the knowledge base on the database or even the stateful session that was built using the related knowledge. Is there any example that I could follow?
If you guys know other ways to improve the performance, please let me know.
Thanks in advance.
Paulo Reis
casmeiron(a)gmail.com
13 years, 7 months
Accessing FactField Metadata
by pcourtney
I have been able to access the FactType annotations by using
factType.getFactClass().getAnnotations(). However I cannot find any way to
access FactField annotations. Using a debugger I can see that the declared
type's field AnnotationDefinition is stored in the FieldDefinition but it is
not accessable via the FactField interface. Is there any way to access the
field annotations for DRL declared types? Will the 5.1.1 release fix the
problem (re JBRULES-2792)?
Thanks, Phil
--
View this message in context: http://drools.46999.n3.nabble.com/Accessing-FactField-Metadata-tp4019366....
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
How to define keywords that represent objects(in facts) to be able to use in rules
by san_drools
Hello,
I need to know how to proceed to define keywords that represent
objects of facts in Drools.
In detail, i am using Guvnor editor to write Business and
technical rules required on a package basis for an application. So, here
writing rules by using Objects and it's attributes synactically is a tedious
job for client.
So, the idea is "to provide some keywords to the client where each
keyword represents an object/attribute. By using keywords simply, the client
will write a rule. These keywords shall be processed (may be at compile
time) and the respective object/attribute shall be used/considered in rule
when the rules are fired"
To achieve this,
1. worked with DSL configurations but it fulfilled our idea
partially as every #condition and #action needs to be defined in DSL
configurations to be able to use them in a rule.
2. Tried working on guvnor sources for it, but couldn't be able
to do (as i am new to drools; i am a learner)
Can any one please suggest the way we can proceed to achieve this
requirement. Is 'working on guvnor sources' only the possible way for this?
Or is there any option/feature we can proceed with? Please let me know.
Thanks in advance.
Regards
San_Drools
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-define-keywords-that-represent-o...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Weird drools exception happens from times to times
by Paulo Reis
Hi guys,
This exception is bothering me. I have a server running drools in after few days, drools starts throwing it and I have to recompile all the knowledge packages to make it work again.
Does anyone knows what is triggering it?
Thanks in advance.
SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=25;_ThreadName=Thread-2;|java.lang.ClassCastException: org.drools.reteoo.FromNode cannot be cast to org.drools.reteoo.BetaNode
at org.drools.reteoo.ReteooBuilder.resetMasks(ReteooBuilder.java:303)
at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:267)
at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:459)
at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:1107)
at org.drools.common.AbstractRuleBase.mergePackage(AbstractRuleBase.java:851)
at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:610)
at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:472)
at org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:150)
Paulo Reis
casmeiron(a)gmail.com
13 years, 8 months
Drools with rules from database
by debchamps
Hi
I have the following requirement
The rule is like if(employeeType == $1) set salary = $1
emloyeeType salary
--------------- ---------------
MANAGER 100
SR Manager 200
Director 300
Now new employeeType gets added every day. So the requirement is to update
the knowledgebase without again activating the service.
So how to achieve that with Drools. I am using Drools with a Decision table
for a different requirement in the same project. So if it can be achieved
with decision table it would be great(So new rows will get added to the
decision table dynamically but no column in this case).
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-with-rules-from-database-tp40193...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months