1 import axios from "axios";
5 this.axiosInstance = axios.create({
6 baseURL: 'http://localhost:8085/engine-rest/',
8 this.submitPdfForm = this.submitPdfForm.bind(this);
11 submitPdfForm(terms) {
12 const termsValue = [];
13 terms.forEach(term => {
14 termsValue.push({term});
16 console.log('termsValue: ', termsValue);
17 const submitFormUrl = 'process-definition/key/sentiment-analysis/submit-form';
21 value: JSON.stringify(termsValue),
27 .post(submitFormUrl, data)
29 const data = response.data;
38 export default CamundaService;