AnsweredAssumed Answered

REST Process Definition Parameters

Question asked by gritsmcgee on Apr 13, 2012
Latest reply on Apr 15, 2012 by gritsmcgee
I have a simple process that I'm trying to test invoking from the REST API. It's just a start, service task, and end with the service task pointing to a JavaDelegate. Everything works fine when I start manually but calling the REST API returns: "Failed to retrieve the process definition parameters". Additionally I can successfully start any of the example processes via REST. I've been through the book and the forum and right now I'm stumped. Any help would be greatly appreciated.


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:activiti="http://activiti.org/bpmn"
   xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
   xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
   xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
   typeLanguage="http://www.w3.org/2001/XMLSchema"
   expressionLanguage="http://www.w3.org/1999/XPath"
   targetNamespace="workflow">
  <process id="orderWorkflow" name="Order Workflow">
    <startEvent id="theStart" name="Start" activiti:initiator="initiator"></startEvent>
    <endEvent id="theEnd" name="End"></endEvent>
    <serviceTask id="populateOrder" name="Populate Order" activiti:class="com.greencloud.workflow.populateinventory.PopulateOrder"></serviceTask>
    <sequenceFlow id="flow1" name="Flow 1" sourceRef="theStart" targetRef="populateOrder"></sequenceFlow>
    <sequenceFlow id="flow2" name="Flow 2" sourceRef="populateOrder" targetRef="theEnd"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_orderWorkflow">
    <bpmndi:BPMNPlane bpmnElement="orderWorkflow" id="BPMNPlane_orderWorkflow">
      <bpmndi:BPMNShape bpmnElement="theStart" id="BPMNShape_theStart">
        <omgdc:Bounds height="35" width="35" x="70" y="210"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="theEnd" id="BPMNShape_theEnd">
        <omgdc:Bounds height="35" width="35" x="330" y="210"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="populateOrder" id="BPMNShape_populateOrder">
        <omgdc:Bounds height="55" width="105" x="150" y="200"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="105" y="227"></omgdi:waypoint>
        <omgdi:waypoint x="150" y="227"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="255" y="227"></omgdi:waypoint>
        <omgdi:waypoint x="330" y="227"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

Outcomes