1 import axios from "axios";
5 this.axiosInstance = axios.create({
6 baseURL: 'http://localhost:8085/engine-rest/',
8 'Access-Control-Allow-Origin': '*',
11 this.submitPdfForm = this.submitPdfForm.bind(this);
14 submitPdfForm(terms) {
15 const termsValue = [];
16 terms.forEach(term => {
17 termsValue.push({term});
19 console.log('termsValue: ', termsValue);
20 const submitFormUrl = 'process-definition/key/sentiment-analysis/submit-form';
24 value: JSON.stringify(termsValue),
30 .post(submitFormUrl, data)
32 const data = response.data;
41 export default CamundaService;