I have to start rest service from camunda with URL which contains process variables.
I tried this
Set url =
type text
value "http://localhost/request/" + {$requestid} + "/clientform"
But this string copied by engine as is without evaluation.
Please suggest how to generate custom url string for http connector.
I have process variable requestid.
In service task I would like to start rest service with URL evaluated in camunda.
I'm using http-connector
<bpmn2:extensionElements>
<camunda:connector>
<camunda:connectorId>http-connector</camunda:connectorId>
<camunda:inputOutput>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Groovy"><![CDATA[$url = "http://localhost/request/$requestid/clientform"]]></camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:outputParameter name="res">
<camunda:script scriptFormat="Javascript" resource="parseEO.js"/>
</camunda:outputParameter>
</camunda:inputOutput>
</camunda:connector>
</bpmn2:extensionElements>
But I couldn't evaluate string. Getting errors.
<bpmn2:extensionElements> <camunda:connector> <camunda:connectorId>http-connector</camunda:connectorId> <camunda:inputOutput> <camunda:inputParameter name="url"> <camunda:script scriptFormat="Groovy">"http://localhost/request/${requestid}/clientform".toString()></camunda:script> </camunda:inputParameter> <camunda:inputParameter name="method">GET</camunda:inputParameter> <camunda:outputParameter name="res"> <camunda:script scriptFormat="Javascript" resource="parseEO.js"/> </camunda:outputParameter> </camunda:inputOutput> </camunda:connector></bpmn2:extensionElements>