Because the gwt-console does not allow you to specify which knowledge
package should be loaded (yet), it currently uses the "default" package.
Putting your rule flow in a package called "default" (and then building
that package in Guvnor) should solve your issue I think. You could also
change the name of the package to load in the changeset.xml file in
drools-gwt-console.
Kris
Quoting rbms <rbms(a)hotmail.com>:
I am trying to deploy drools-guvnor, gwt-console in Tomcat.
I am using mysql for persistence.
I uploaded the process definitions in drools-guvnor.(I can see them
Packages
--> defaultPackage --> RuleFlows)
However when I try to view them in Processes --> Process Definitions
-->
Definition List, I cannot see them.
Following is from tomcat server log.(with debugging statements that
I
added.)
I placed debug statements in
org.drools.guvnor.server.files.PackageDeploymentServlet.doGet method.
This
method calls
org.drools.guvnor.server.files.FileManagerUtils.loadBinaryPackage
method.
//Following is the debug statement that I placed in
org.drools.guvnor.server.files.FileManagerUtils.loadBinaryPackage
method.
public String loadBinaryPackage(String packageName,
String packageVersion,
boolean isLatest,
OutputStream out) throws
IOException {
PackageItem item = null;
if ( isLatest ) {
item = repository.loadPackage( packageName );
System.out.println("FileManagerUtils.loadBinaryPackage() ...");
AssetItemIterator ai = item.queryAssets("drools:format='rf'",
false);
for (;ai.hasNext();) {
Object o = ai.next();
System.out.println("FileManagerUtils.loadBinaryPackage item = "
+
o.getClass() +":"+o);
System.out.println("*************************************************************************");
}
As you can see the servlet returns the rule flow.
I also placed some debug statements in
org.drools.rule.Package.readExternal
method. As you can see when it comes to this method rule flow is
empty.
Because of this
org.drools.integration.console.DroolsFlowCommandDelegate.getProcesses()
function returns 0 process definitions.
Can somebody help?
********************************************************
[2009:08:231 22:08:625:debug] KnowledgeAgent rebuilding KnowledgeBase
using
ChangeSet
[2009:08:231 22:08:625:debug] KnowledgeAgent building
resource=[UrlResource
path='http://localhost:8081/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
PackageName: defaultPackage
//org.drools.guvnor.server.files.PackageDeploymentServlet.doGet -
Begin
PackageVersion: LATEST
PackageIsLatest: true
PackageIsSource: false
requestURI:
/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST
test:
/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST
//org.drools.guvnor.server.files.PackageDeploymentServlet.doGet -
End
FileManagerUtils.loadBinaryPackage() ... //
org.drools.guvnor.server.files.FileManagerUtils.loadBinaryPackage -
Begin
FileManagerUtils.loadBinaryPackage item = class
org.drools.repository.AssetItem:Content of rule item named 'testRF':
Content: <?xml version="1.0" encoding="UTF-8"?>
<process
xmlns="http://drools.org/drools-5.0/process"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/process
drools-processes-5.0.xsd"
type="RuleFlow" name="ProjectApprovalProcess"
id="ProjectApprovalProcess" package-name="defaultPackage" >
<header>
<variables>
<variable name="project" >
<type
name="org.drools.process.core.datatype.impl.type.ObjectDataType"
className="com.yesVin.workflow.project.Project" />
</variable>
<variable name="status" >
<type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
</variable>
</variables>
</header>
<nodes>
<start id="1" name="Start" x="15" y="11"
width="80" height="40"
/>
<end id="2" name="End" x="206" y="442"
width="80" height="40" />
<humanTask id="3" name="Review Project" x="126"
y="12"
width="80"
height="40" >
..
...
.....
......
//org.drools.guvnor.server.files.FileManagerUtils.loadBinaryPackage
-
End
Package.readExternal isDroolsStream = true //
org.drools.rule.Package.readExternal - Begin
Package.readExternal pkg = null
dialectRuntimeRegistry =
org.drools.rule.DialectRuntimeRegistry@198046
name = defaultPackage
imports =
{defaultPackage.*=org.drools.rule.ImportDeclaration@d75e0360}
staticImports = []
functions = {}
factTemplates = {}
ruleFlows = {}
globals = {}
valid = true
rules = {}
classFieldAccessorStore =
org.drools.base.ClassFieldAccessorStore@34b350
//org.drools.rule.Package.readExternal - End
--
View this message in context:
http://www.nabble.com/Cannot-view-Process-Definitions-in-gwt-console-tp25...
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm