I modeled a simple process to test the HTTP task.
Process definition
<?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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.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="Test">
<process id="httpDemoProcess" name="HTTP Demo Process" isExecutable="true">
<startEvent id="startEvent1"></startEvent>
<serviceTask id="sid-62709370-6606-4B14-9076-8FDCD077EFBF" name="Send Demo Mail" flowable:type="http">
<extensionElements>
<flowable:field name="requestMethod">
<flowable:string><![CDATA[POST]]></flowable:string>
</flowable:field>
<flowable:field name="requestUrl">
<flowable:string><![CDATA[https://sample.api]]></flowable:string>
</flowable:field>
<flowable:field name="disallowRedirects">
<flowable:string><![CDATA[true]]></flowable:string>
</flowable:field>
<flowable:field name="resultVariablePrefix">
<flowable:string><![CDATA[result]]></flowable:string>
</flowable:field>
<flowable:field name="saveResponseVariableAsJson">
<flowable:string><![CDATA[true]]></flowable:string>
</flowable:field>
</extensionElements>
</serviceTask>
<endEvent id="sid-59FB1E0E-EEF6-439A-ABE2-A8B53ACB7A32"></endEvent>
<sequenceFlow id="sid-C8759E80-3F37-4A3B-9CBE-745F7D582321" sourceRef="startEvent1" targetRef="sid-62709370-6606-4B14-9076-8FDCD077EFBF"></sequenceFlow>
<sequenceFlow id="sid-41781D81-212E-4839-AB5B-B869E10FC10F" sourceRef="sid-62709370-6606-4B14-9076-8FDCD077EFBF" targetRef="sid-59FB1E0E-EEF6-439A-ABE2-A8B53ACB7A32"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_httpDemoProcess">
<bpmndi:BPMNPlane bpmnElement="httpDemoProcess" id="BPMNPlane_httpDemoProcess">
<bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
<omgdc:Bounds height="30.0" width="30.0" x="15.0" y="150.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-62709370-6606-4B14-9076-8FDCD077EFBF" id="BPMNShape_sid-62709370-6606-4B14-9076-8FDCD077EFBF">
<omgdc:Bounds height="80.0" width="100.0" x="120.0" y="135.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-59FB1E0E-EEF6-439A-ABE2-A8B53ACB7A32" id="BPMNShape_sid-59FB1E0E-EEF6-439A-ABE2-A8B53ACB7A32">
<omgdc:Bounds height="28.0" width="28.0" x="360.0" y="161.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sid-C8759E80-3F37-4A3B-9CBE-745F7D582321" id="BPMNEdge_sid-C8759E80-3F37-4A3B-9CBE-745F7D582321">
<omgdi:waypoint x="44.949993965335764" y="165.0"></omgdi:waypoint>
<omgdi:waypoint x="85.0" y="165.0"></omgdi:waypoint>
<omgdi:waypoint x="85.0" y="175.0"></omgdi:waypoint>
<omgdi:waypoint x="120.0" y="175.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-41781D81-212E-4839-AB5B-B869E10FC10F" id="BPMNEdge_sid-41781D81-212E-4839-AB5B-B869E10FC10F">
<omgdi:waypoint x="219.95" y="175.0"></omgdi:waypoint>
<omgdi:waypoint x="360.0" y="175.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
Every time I try to start a new instance of this process with the REST API
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
"processDefinitionKey":"httpDemoProcess" \
}' 'http://localhost:12080/flowable-rest/service/runtime/process-instances'
I receive an HTTP 500 error with the following result:
{
"message": "Internal server error",
"exception": "Invalid URL exception occurred"
}
I can successfully start other processes (only tested with the demo processes).
What am I missing?