AnsweredAssumed Answered

org.activiti.spring.test.components example not working.

Question asked by pavan.bukka.ait on Jun 18, 2012
Latest reply on Jun 19, 2012 by pavan.bukka.ait
   i am trying org.activiti.spring.test.components example given in spring distrubution in my application and i have written the following code to start the process
                           Deployment d=repositoryService.createDeployment()
                      String processInstanceId =  processInitiatingPojo.startProcessA(22);

process definition is getting deployed properly deploymentId i can see the Deployment object d . when starting the process startProcessA function returning null means , i think process is not getting started .
and the content of autodeploy.b.bpmn20.xml is

<?xml version="1.0" encoding="UTF-8"?>

<definitions xmlns="" xmlns:xsi="" xmlns:activiti="" xmlns:bpmndi="" xmlns:omgdc="" xmlns:omgdi="" typeLanguage="" expressionLanguage="" targetNamespace="">
  <process id="b">
    <startEvent id="start" />
    <sequenceFlow id="flow1" sourceRef="start" targetRef="end" />
    <endEvent id="end" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_MyProcess">
    <bpmndi:BPMNPlane bpmnElement="b" id="BPMNPlane_MyProcess">
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35" width="35" x="130" y="180"></omgdc:Bounds>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35" width="35" x="250" y="180"></omgdc:Bounds>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="165" y="197"></omgdi:waypoint>
        <omgdi:waypoint x="250" y="197"></omgdi:waypoint>

and the definition of startProcessA function is .
   @StartProcess(processKey = "b")
   public void startProcess(@ProcessVariable("customerId") long customerId) {"starting 'b' with customerId # " + customerId);
      this.methodState += 1;"up'd the method state");

but the same example working well in the spring distribution.
Please help me to fix this problem.
Thanks in advance…

Kind regards,
Bukka pavan kumar.