From 88de16fbcfccb9a591dd95d87b1b2322578060ab Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Tue, 6 Nov 2018 23:18:52 +0100 Subject: [PATCH] use rest api for forms --- sentiment-analysis/camunda-deploy.sh | 6 +++++- .../src/main/resources/META-INF/processes.xml | 16 ++++++++++++++++ .../src/main/resources/sentiment-analysis.bpmn | 2 +- .../src/main/webapp/forms/input-terms.html | 9 +++------ 4 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 sentiment-analysis/src/main/resources/META-INF/processes.xml diff --git a/sentiment-analysis/camunda-deploy.sh b/sentiment-analysis/camunda-deploy.sh index 7265911..ea60a30 100755 --- a/sentiment-analysis/camunda-deploy.sh +++ b/sentiment-analysis/camunda-deploy.sh @@ -14,4 +14,8 @@ for old_id in ${old_ids}; do done # deploy new verson -curl -i "${camunda_deployment}/create" -H "Expect:" -F "deployment-name=${deployment_name}" -F "${file_name}=@${file_path}${file_name}" +curl -i "${camunda_deployment}/create" \ + -H "Expect:" \ + -F "deployment-name=${deployment_name}" \ + -F "${file_name}=@${file_path}${file_name}" \ + -F "input-forms.html=@./src/main/webapp/forms/input-terms.html" diff --git a/sentiment-analysis/src/main/resources/META-INF/processes.xml b/sentiment-analysis/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000..4a89d8f --- /dev/null +++ b/sentiment-analysis/src/main/resources/META-INF/processes.xml @@ -0,0 +1,16 @@ + + + + + + default + sentiment-analysis.bpmn + + false + true + + + + diff --git a/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn b/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn index 8c1292e..6d89483 100644 --- a/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn +++ b/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn @@ -40,7 +40,7 @@ Property_00nk8ci - + DataObjectReference_0y1eo6i diff --git a/sentiment-analysis/src/main/webapp/forms/input-terms.html b/sentiment-analysis/src/main/webapp/forms/input-terms.html index 20f54df..fb547c4 100644 --- a/sentiment-analysis/src/main/webapp/forms/input-terms.html +++ b/sentiment-analysis/src/main/webapp/forms/input-terms.html @@ -29,14 +29,8 @@

Terms

- Add -
-
-
+ Add
-- 2.43.0