-
1. Re: Pojos to Guvnor
eaa Aug 24, 2011 5:48 AM (in response to diogosaad)AFAIK, Guvnor doesn't need the classes definition to open the process. It does need it for building the full package though. So maybe you are facing a different problem here. Do you see any error message or stack-trace in the log of your application server? If you want to upload the model jar into Guvnor you have to go to "Knowledge Bases" section in the left menu and do: Create New -> Upload Pojo Model After that, you need to compile your package: click on the package -> (if you are using 5.3 version of Guvnor, you must go to "Edit" tab) -> Build Package
-
2. Re: Pojos to Guvnor
diogosaad Aug 24, 2011 8:51 AM (in response to eaa)This is what I could find in the logs.
2011-08-24 14:42:29,066 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-11) (null: 2, 265): cvc-elt.1: Cannot find the declaration of element 'bpmn2:definitions'
This is my "definitions" node:
<definitions id="Definition"
targetNamespace="http://www.jboss.org/drools"
typeLanguage="http://www.java.com/javaTypes"
expressionLanguage="http://www.mvel.org/2.0"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:g="http://www.jboss.org/drools/flow/gpd"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:tns="http://www.jboss.org/drools">
-
3. Re: Pojos to Guvnor
tsurdilovic Aug 25, 2011 10:18 PM (in response to diogosaad)As far as uploading your model to guvnor, you can just place your classes in a jar and upload it to Guvnor New->Model (jar) I believe. Then build your package. The reason your process does not open in Guvnor is most likely something else, the web Designer is not able for some reason to parse your BPMN2. Are you using the jbpm-installer? If so what version? Need to find out the version of the Designer and please paste your process bpmn2 so we can test it as well.
Hope this helps.
-
4. Re: Pojos to Guvnor
tob1as Aug 25, 2011 11:42 PM (in response to diogosaad)Replace your definition tag with this and try again:
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:drools="http://www.jboss.org/drools"
id="uniqueId"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
name="presentationProcessName"
targetNamespace="http://www.omg.org/bpmn20">