JBoss Community

Re: jBPM Deployment procedure

created by Vijay Kumar in jBPM Development - View the full discussion

Hello Mate,

 

My code is very simple BPMN has one java class import and that BPMN i copied in to my configured BPMN folder and now when i run this BPMN its not able to identify that java class, howver if i run that bpmn in eclipse its working fine.

 

my BPMN is this.

 

<?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">

 

  <process processType="Private" isExecutable="true" id="test.123.vijay" name="Hello World" tns:packageName="com" >

 

    <extensionElements>

     <tns:import name="com.sample.Employee" />

    </extensionElements>

    <!-- nodes -->

    <startEvent id="_1" name="Start" />

    <endEvent id="_3" name="End" >

        <terminateEventDefinition/>

    </endEvent>

    <scriptTask id="_6" name="Logger" scriptFormat="http://www.java.com/java" >

      <script>

System.out.println("In the Sub Process of the ANOTHER PROJECT---------&gt;");</script>

    </scriptTask>

 

    <!-- connections -->

    <sequenceFlow id="_6-_3" sourceRef="_6" targetRef="_3" />

    <sequenceFlow id="_1-_6" sourceRef="_1" targetRef="_6" />

 

  </process>

 

  <bpmndi:BPMNDiagram>

    <bpmndi:BPMNPlane bpmnElement="test.123.vijay" >

      <bpmndi:BPMNShape bpmnElement="_1" >

        <dc:Bounds x="16" y="16" width="48" height="48" />

      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape bpmnElement="_3" >

        <dc:Bounds x="561" y="36" width="48" height="48" />

      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape bpmnElement="_6" >

        <dc:Bounds x="221" y="56" width="80" height="48" />

      </bpmndi:BPMNShape>

      <bpmndi:BPMNEdge bpmnElement="_6-_3" >

        <di:waypoint x="261" y="80" />

        <di:waypoint x="585" y="60" />

      </bpmndi:BPMNEdge>

      <bpmndi:BPMNEdge bpmnElement="_1-_6" >

        <di:waypoint x="40" y="40" />

        <di:waypoint x="261" y="80" />

      </bpmndi:BPMNEdge>

    </bpmndi:BPMNPlane>

  </bpmndi:BPMNDiagram>

 

</definitions>

 

it is failing in import statement which is bolded. also if i have to create a jar of that java classed where should i drop so that BPMN wil recognise this class.

 

Thanks,

Vijay

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community