From ac7064def0eb9dd4e72116f755375393947dd6bf Mon Sep 17 00:00:00 2001 From: zonagit Date: Wed, 12 Oct 2022 10:08:59 -0700 Subject: [PATCH] Add ability to invoke adaptation js code to the workers page (#121) Co-authored-by: zef --- cws-ui/src/main/webapp/js/adaptation-workers.js | 5 +++++ install/cws-ui/workers.ftl | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 cws-ui/src/main/webapp/js/adaptation-workers.js diff --git a/cws-ui/src/main/webapp/js/adaptation-workers.js b/cws-ui/src/main/webapp/js/adaptation-workers.js new file mode 100644 index 00000000..10949ea1 --- /dev/null +++ b/cws-ui/src/main/webapp/js/adaptation-workers.js @@ -0,0 +1,5 @@ +// override with js code file in your adaptation project for example like this +// cp your-cws-adaptation/src/main/resources/cws-ui/adaptation-workers.js common-workflow-service/cws-ui/src/web/main/webapp/js/adaptation-workers.js +function adaptationWorkersReady() { + return; // CWS core behavior is to do nothing here +} diff --git a/install/cws-ui/workers.ftl b/install/cws-ui/workers.ftl index ac45ff87..218e9a84 100644 --- a/install/cws-ui/workers.ftl +++ b/install/cws-ui/workers.ftl @@ -4,6 +4,7 @@ CWS - Workers +