Hello,
I'm always trying to use my Project Class in my process. So, I've create my class (package defaultPackage), compiled it and add the jar into Guvnor. In the top of the package page in "Configuration imported types" there is "defautlPackage.Project". In my bpmn I have a variable, Type : "Object", ClasseName: "defaultPackage.Project". The building in Guvnor works but when I start my process in the console an error occure :
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: defaultPackage/Project
My BPMN :
<?xml version="1.0" encoding="UTF-8"?>
<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">
<itemDefinition id="_mapItem" structureRef="java.util.HashMap" />
<itemDefinition id="_quantityItem" structureRef="java.lang.String" />
<itemDefinition id="_projectItem" structureRef="defaultPackage.Project" />
<process processType="Private" isExecutable="true" id="project" name="Project" tns:packageName="defaultPackage" >
<sequenceFlow id="_4-_3" sourceRef="_4" targetRef="_3" />
<sequenceFlow id="_5-_4" sourceRef="_5" targetRef="_4" />
<sequenceFlow id="_1-_5" sourceRef="_1" targetRef="_5" />
</process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="project" >
<bpmndi:BPMNShape bpmnElement="_1" >
<dc:Bounds x="16" y="16" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
<dc:Bounds x="225" y="24" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_4" >
<dc:Bounds x="123" y="83" width="100" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_5" >
<dc:Bounds x="30" y="147" width="80" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_4-_3" >
<di:waypoint x="173" y="107" />
<di:waypoint x="249" y="48" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_5-_4" >
<di:waypoint x="70" y="171" />
<di:waypoint x="173" y="107" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_1-_5" >
<di:waypoint x="40" y="40" />
<di:waypoint x="70" y="171" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
Thanks in advance, it's very important,
IT-Student