diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 6270cc2..73139bd 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -77,6 +77,17 @@ class CCPExecutionForm extends HTMLElement{ +
+
+
Options
+
+
+
+ + +
+
+
Outputs
@@ -236,6 +247,13 @@ class CCPExecutionForm extends HTMLElement{ outputs.forEach(o=>{ if(o.enabled) request.outputs[o.name] = { transmissionMode : "value" }; }) + + const autoarchiveoption = this.#rootdoc.querySelector("input[name='auto-archive-outputs']") + if (autoarchiveoption.checked){ + request.subscribers = [ + { successUri : "http://registry:8080/executions/archive-to-folder" } + ] + } return request } @@ -350,6 +368,10 @@ class CCPExecutionForm extends HTMLElement{ target: "p.description", apply : (e,d)=>e.textContent = d.description }, + { + target: "input[name='auto-archive-outputs']", + apply : (e,d)=>e.checked = d.subscribers && d.subscribers.filter(s=>s === "http://registry:8080/executions/archive-to-folder").length === 1 + }, { target: "div.ccp-inputs", in : (e,d)=>d,