From 6a8a53b35a0685828ffaedf64328d97c3e52f97b Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Wed, 7 Nov 2018 00:57:13 +0100 Subject: [PATCH] add forms --- sentiment-analysis/camunda-deploy.sh | 3 +- .../main/resources/sentiment-analysis.bpmn | 85 ++++++++++++------- .../src/main/webapp/forms/download-pdf.html | 1 + .../src/main/webapp/forms/input-terms.html | 13 ++- 4 files changed, 69 insertions(+), 33 deletions(-) create mode 100644 sentiment-analysis/src/main/webapp/forms/download-pdf.html diff --git a/sentiment-analysis/camunda-deploy.sh b/sentiment-analysis/camunda-deploy.sh index ea60a30..de0031f 100755 --- a/sentiment-analysis/camunda-deploy.sh +++ b/sentiment-analysis/camunda-deploy.sh @@ -18,4 +18,5 @@ 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" + -F "input-forms.html=@./src/main/webapp/forms/input-terms.html" \ + -F "download-pdf.html=@./src/main/webapp/forms/download-pdf.html" diff --git a/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn b/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn index 6d89483..13ff102 100644 --- a/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn +++ b/sentiment-analysis/src/main/resources/sentiment-analysis.bpmn @@ -33,17 +33,8 @@ SequenceFlow_1xc6g12 SequenceFlow_0azv06r - - - - DataObjectReference_10ouwro - Property_00nk8ci - - - - DataObjectReference_0y1eo6i - + SequenceFlow_1ijha11 SequenceFlow_032ipyi @@ -63,8 +54,6 @@ - - SequenceFlow_0okj60f SequenceFlow_03ohp0o @@ -81,11 +70,35 @@ + + + SequenceFlow_1ijha11 + + DataObjectReference_0y1eo6i + + + PT2M + + + + SequenceFlow_0jebdb9 + + + + SequenceFlow_0jebdb9 + + + DataObjectReference_10ouwro + Property_0hvydxw + + + + - + @@ -100,28 +113,24 @@ - + - + - + - - - - - + - + @@ -184,19 +193,37 @@ - + - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sentiment-analysis/src/main/webapp/forms/download-pdf.html b/sentiment-analysis/src/main/webapp/forms/download-pdf.html new file mode 100644 index 0000000..3fc7e07 --- /dev/null +++ b/sentiment-analysis/src/main/webapp/forms/download-pdf.html @@ -0,0 +1 @@ +

There is no pdf right now.

diff --git a/sentiment-analysis/src/main/webapp/forms/input-terms.html b/sentiment-analysis/src/main/webapp/forms/input-terms.html index ffbd7b5..3c9e6c8 100644 --- a/sentiment-analysis/src/main/webapp/forms/input-terms.html +++ b/sentiment-analysis/src/main/webapp/forms/input-terms.html @@ -5,7 +5,7 @@ // scope function which adds a new term $scope.addTerm = function() { - terms.push({}); + terms.push({}); }; camForm.on('form-loaded', function() { @@ -15,9 +15,15 @@ type: 'json', value: terms }); - }); + camForm.on('submit', function() { + // remove '$$hashKey' properties + angular.forEach($scope.terms, function(term) { + delete term.$$hashKey; + }); + }); +

Terms

@@ -28,7 +34,8 @@ + required + ng-model="term.term"> -- 2.43.0