2 Replies Latest reply: Apr 27, 2012 2:00 AM by Vijay Kumar RSS

jBPM Deployment procedure

Vijay Kumar Newbie

Hi Team,

 

Am newbie to jBPM but i have good experience in IBM WID i have some basic question in jBPM can some one please help me on this.

 

i have requirement to pass one java object to jbpm process and do some data manipulation in that process and persist.

 

am able to create that and able to do so but when am deploying same on the server i will be deploying only bpmn file so it will not have any reference to this POJO.

 

i tried 2 options which is provided in net by adding it as a jar on either server default or jbpm console server (both option didnt help me).

 

if some one can help me on this that will be great help..

 

Thanks,

Vijay

  • 1. Re: jBPM Deployment procedure
    Maciej Swiderski Master

    do you get any errors when you deploy and run this process?

     

    In general, placing your custom code in console should work properly. If you like, please upload your process here so we could take a look at it.

     

    Cheers

  • 2. Re: jBPM Deployment procedure
    Vijay Kumar Newbie

    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