use rest api for forms
authorDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Tue, 6 Nov 2018 22:18:52 +0000 (23:18 +0100)
committerDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Wed, 7 Nov 2018 00:58:35 +0000 (01:58 +0100)
sentiment-analysis/camunda-deploy.sh
sentiment-analysis/src/main/resources/META-INF/processes.xml [new file with mode: 0644]
sentiment-analysis/src/main/resources/sentiment-analysis.bpmn
sentiment-analysis/src/main/webapp/forms/input-terms.html

index 7265911a86e09f2e07e7e8a24851df1219f19185..ea60a3045424c6abf0ec12d81de2e3a8bc198216 100755 (executable)
@@ -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 (file)
index 0000000..4a89d8f
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<process-application
+  xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+  <process-archive>
+    <process-engine>default</process-engine>
+    <resource>sentiment-analysis.bpmn</resource>
+    <properties>
+      <property name="isDeleteUponUndeploy">false</property>
+      <property name="isScanForProcessDefinitions">true</property>
+    </properties>
+  </process-archive>
+
+</process-application>
index 8c1292eb003c06ab122096a50408d33aa499de6a..6d89483cec98547a3f2dd08f92b9e7c32088b266 100644 (file)
@@ -40,7 +40,7 @@
         <bpmn:targetRef>Property_00nk8ci</bpmn:targetRef>
       </bpmn:dataInputAssociation>
     </bpmn:endEvent>
-    <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:app:forms/input-terms.html">
+    <bpmn:startEvent id="StartEvent_1t6nxib" camunda:formKey="embedded:deployment:input-terms.html">
       <bpmn:dataOutputAssociation id="DataOutputAssociation_1czr06p">
         <bpmn:targetRef>DataObjectReference_0y1eo6i</bpmn:targetRef>
       </bpmn:dataOutputAssociation>
index 20f54dfa2da1e4bd8f582c71e3df15c18390ce5c..fb547c417655cde787e4984e1e49de3eab1784a1 100644 (file)
   <h3>Terms</h3>
 
   <div>
-      <a href
-         ng-click="addTerm()"
-         class="btn btn-default">Add</a>
-         <hr/>
-
     <div ng-repeat="term in terms">
       <div class="control-group">
-        <label class="control-label" for="name">Name</label>
         <div class="controls">
           <input id="name"
                  class="form-control"
@@ -45,6 +39,9 @@
                  ng-model="term">
         </div>
       </div>
+      <a href
+         ng-click="addTerm()"
+         class="btn btn-default">Add</a>
     </div>
   </div>
 </form>