diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87d78f0..bd4b9c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,4 +9,4 @@ on: jobs: build: - uses: axonivy-market/github-workflows/.github/workflows/ci.yml@v4 + uses: axonivy-market/github-workflows/.github/workflows/ci.yml@v5 diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index c2fee37..ae5e6c3 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -8,4 +8,4 @@ on: jobs: build: - uses: axonivy-market/github-workflows/.github/workflows/dev.yml@v4 + uses: axonivy-market/github-workflows/.github/workflows/dev.yml@v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab5b0d7..bc801b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,4 +4,4 @@ on: workflow_dispatch jobs: build: - uses: axonivy-market/github-workflows/.github/workflows/release.yml@v4 + uses: axonivy-market/github-workflows/.github/workflows/release.yml@v5 diff --git a/deepl-connector-demo/.classpath b/deepl-connector-demo/.classpath index 45a97e4..8228714 100644 --- a/deepl-connector-demo/.classpath +++ b/deepl-connector-demo/.classpath @@ -5,12 +5,7 @@ - - - - - - + diff --git a/deepl-connector-demo/.project b/deepl-connector-demo/.project index 31df128..5f7fa0b 100644 --- a/deepl-connector-demo/.project +++ b/deepl-connector-demo/.project @@ -25,6 +25,11 @@ + + ch.ivyteam.ivy.dialog.form.build.ivyDialogFormBuilder + + + ch.ivyteam.ivy.designer.ide.ivyModelValidationBuilder @@ -44,6 +49,5 @@ org.eclipse.m2e.core.maven2Nature org.eclipse.jem.beaninfo.BeanInfoNature org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature - + \ No newline at end of file diff --git a/deepl-connector-demo/.settings/.jsdtscope b/deepl-connector-demo/.settings/.jsdtscope deleted file mode 100644 index 869c01d..0000000 --- a/deepl-connector-demo/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/deepl-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs b/deepl-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs index 5aa1d7d..1419564 100644 --- a/deepl-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs +++ b/deepl-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs @@ -1,5 +1,4 @@ -ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.connector.deepl.demo.Data ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.connector.deepl.demo -ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=11 -ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=100000 +ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=13 +ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=120001 eclipse.preferences.version=1 diff --git a/deepl-connector-demo/.settings/org.eclipse.jdt.core.prefs b/deepl-connector-demo/.settings/org.eclipse.jdt.core.prefs index d4540a5..3a79233 100644 --- a/deepl-connector-demo/.settings/org.eclipse.jdt.core.prefs +++ b/deepl-connector-demo/.settings/org.eclipse.jdt.core.prefs @@ -1,10 +1,10 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 -org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 +org.eclipse.jdt.core.compiler.compliance=21 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=17 +org.eclipse.jdt.core.compiler.source=21 diff --git a/deepl-connector-demo/.settings/org.eclipse.wst.common.component b/deepl-connector-demo/.settings/org.eclipse.wst.common.component index 3d186f2..4e27eef 100644 --- a/deepl-connector-demo/.settings/org.eclipse.wst.common.component +++ b/deepl-connector-demo/.settings/org.eclipse.wst.common.component @@ -2,10 +2,9 @@ - - + \ No newline at end of file diff --git a/deepl-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml b/deepl-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml index 156ecdb..621b1f8 100644 --- a/deepl-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/deepl-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,6 @@ - - + - - + \ No newline at end of file diff --git a/deepl-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.container b/deepl-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a..0000000 --- a/deepl-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/deepl-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.name b/deepl-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b..0000000 --- a/deepl-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/deepl-connector-demo/config/variables.yaml b/deepl-connector-demo/config/variables.yaml index 64c8fa0..4448394 100644 --- a/deepl-connector-demo/config/variables.yaml +++ b/deepl-connector-demo/config/variables.yaml @@ -1,3 +1,4 @@ +# yaml-language-server: $schema=https://json-schema.axonivy.com/app/12.0.0/variables.json # == Variables == # # You can define here your project Variables. diff --git a/deepl-connector-demo/dataclasses/com/axonivy/connector/deepl/demo/Data.d.json b/deepl-connector-demo/dataclasses/com/axonivy/connector/deepl/demo/Data.d.json new file mode 100644 index 0000000..0c08648 --- /dev/null +++ b/deepl-connector-demo/dataclasses/com/axonivy/connector/deepl/demo/Data.d.json @@ -0,0 +1,14 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "Data", + "namespace" : "com.axonivy.connector.deepl.demo", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "language", + "type" : "com.deepl.api.v2.client.TargetLanguage" + }, { + "name" : "file", + "type" : "File", + "modifiers" : [ "PERSISTENT" ] + } ] +} \ No newline at end of file diff --git a/deepl-connector-demo/dataclasses/com/axonivy/connector/deepl/demo/Data.ivyClass b/deepl-connector-demo/dataclasses/com/axonivy/connector/deepl/demo/Data.ivyClass deleted file mode 100644 index b346087..0000000 --- a/deepl-connector-demo/dataclasses/com/axonivy/connector/deepl/demo/Data.ivyClass +++ /dev/null @@ -1,6 +0,0 @@ -Data #class -com.axonivy.connector.deepl.demo #namespace -language com.deepl.api.v2.client.TargetLanguage #field -language PERSISTENT #fieldModifier -file File #field -file PERSISTENT #fieldModifier diff --git a/deepl-connector-demo/pom.xml b/deepl-connector-demo/pom.xml index eee073d..9d53031 100644 --- a/deepl-connector-demo/pom.xml +++ b/deepl-connector-demo/pom.xml @@ -3,10 +3,10 @@ 4.0.0 com.axonivy.connector.deepl deepl-connector-demo - 10.0.10-SNAPSHOT + 12.0.0-SNAPSHOT iar - 10.0.16 + 12.0.0 diff --git a/deepl-connector-demo/processes/DeepLDemo.p.json b/deepl-connector-demo/processes/DeepLDemo.p.json index 1fd1d5d..8a7f213 100644 --- a/deepl-connector-demo/processes/DeepLDemo.p.json +++ b/deepl-connector-demo/processes/DeepLDemo.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1865BBA362D2425B", "config" : { "data" : "com.axonivy.connector.deepl.demo.Data" @@ -9,14 +9,17 @@ "type" : "RequestStart", "name" : "translateText.ivp", "config" : { - "callSignature" : "translateText", - "outLink" : "translateText.ivp", - "tags" : "demo" + "signature" : "translateText" }, + "tags" : [ + "demo" + ], "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f2", "to" : "f4" } + "connect" : [ + { "id" : "f2", "to" : "f4" } + ] }, { "id" : "f1", "type" : "TaskEnd", @@ -28,14 +31,15 @@ "type" : "DialogCall", "name" : "translateText", "config" : { - "dialogId" : "com.axonivy.connector.deepl.demo.translateText", - "startMethod" : "start()" + "dialog" : "com.axonivy.connector.deepl.demo.translateText:start()" }, "visual" : { "at" : { "x" : 248, "y" : 64 }, "icon" : "res:/webContent/logo/deepl-logo-blue.png" }, - "connect" : { "id" : "f7", "to" : "f1" } + "connect" : [ + { "id" : "f7", "to" : "f1" } + ] }, { "id" : "f5", "type" : "TaskEnd", @@ -47,21 +51,21 @@ "type" : "RequestStart", "name" : "translateFile.ivp", "config" : { - "callSignature" : "translateFile", - "outLink" : "translateFile.ivp" + "signature" : "translateFile" }, "visual" : { "at" : { "x" : 96, "y" : 144 }, - "labelOffset" : { "x" : 9, "y" : 35 } + "labelOffset" : { "x" : 9 } }, - "connect" : { "id" : "f6", "to" : "f11" } + "connect" : [ + { "id" : "f6", "to" : "f11" } + ] }, { "id" : "f11", "type" : "DialogCall", "name" : "translateFile", "config" : { - "dialogId" : "com.axonivy.connector.deepl.demo.translateFile", - "startMethod" : "start()", + "dialog" : "com.axonivy.connector.deepl.demo.translateFile:start()", "output" : { "map" : { "out" : "in", @@ -73,6 +77,8 @@ "at" : { "x" : 248, "y" : 144 }, "icon" : "res:/webContent/logo/deepl-logo-blue.png" }, - "connect" : { "id" : "f3", "to" : "f5" } + "connect" : [ + { "id" : "f3", "to" : "f5" } + ] } ] } \ No newline at end of file diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.rddescriptor b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.rddescriptor deleted file mode 100644 index ae605f0..0000000 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.rddescriptor +++ /dev/null @@ -1,7 +0,0 @@ - - - - viewTechnology - JSF - - diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.xhtml b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.xhtml index 1789629..dc26b77 100644 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.xhtml +++ b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFile.xhtml @@ -38,14 +38,14 @@ + disabled="#{data.translate eq null}" />


+ disabled="#{data.translate eq null}" /> Example file
diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileData.d.json b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileData.d.json new file mode 100644 index 0000000..4e433bc --- /dev/null +++ b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileData.d.json @@ -0,0 +1,36 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "translateFileData", + "namespace" : "com.axonivy.connector.deepl.demo.translateFile", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "showContent", + "type" : "Boolean", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "filePath", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "languages", + "type" : "List" + }, { + "name" : "translate", + "type" : "com.axonivy.connector.deepl.LanguageInfo.Lang" + }, { + "name" : "ivyFile", + "type" : "File" + }, { + "name" : "file", + "type" : "File", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "translated", + "type" : "File", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "exampleFile", + "type" : "File", + "modifiers" : [ "PERSISTENT" ] + } ] +} \ No newline at end of file diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileData.ivyClass b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileData.ivyClass deleted file mode 100644 index 09e2a3b..0000000 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileData.ivyClass +++ /dev/null @@ -1,18 +0,0 @@ -translateFileData #class -com.axonivy.connector.deepl.demo.translateFile #namespace -showContent Boolean #field -showContent PERSISTENT #fieldModifier -filePath String #field -filePath PERSISTENT #fieldModifier -languages List #field -languages PERSISTENT #fieldModifier -translate com.axonivy.connector.deepl.LanguageInfo.Lang #field -translate PERSISTENT #fieldModifier -ivyFile File #field -ivyFile PERSISTENT #fieldModifier -file File #field -file PERSISTENT #fieldModifier -translated File #field -translated PERSISTENT #fieldModifier -exampleFile File #field -exampleFile PERSISTENT #fieldModifier diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileProcess.p.json b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileProcess.p.json index 98b8079..a2bf4f6 100644 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileProcess.p.json +++ b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateFile/translateFileProcess.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "18692879E2E47E00", "kind" : "HTML_DIALOG", "config" : { @@ -10,8 +10,9 @@ "type" : "HtmlDialogStart", "name" : "uploadInvoice()", "config" : { - "callSignature" : "start", + "signature" : "start", "input" : { + "map" : { }, "code" : [ "out.languages = com.axonivy.connector.deepl.LanguageInfo.all();", "import com.axonivy.connector.deepl.FileLoaderUtil;", @@ -20,7 +21,7 @@ }, "result" : { "params" : [ - { "name" : "file", "type" : "File" } + { "name" : "file", "type" : "File", "desc" : "" } ], "map" : { "result.file" : "in.ivyFile" @@ -32,7 +33,9 @@ "at" : { "x" : 560, "y" : 496 }, "labelOffset" : { "x" : 8, "y" : 35 } }, - "connect" : { "id" : "f4", "to" : "f7" } + "connect" : [ + { "id" : "f4", "to" : "f7" } + ] }, { "id" : "f7", "type" : "HtmlDialogEnd", @@ -63,9 +66,11 @@ }, "visual" : { "at" : { "x" : 704, "y" : 584 }, - "size" : { "width" : 144, "height" : 60 } + "size" : { "width" : 144 } }, - "connect" : { "id" : "f9", "to" : "f0" } + "connect" : [ + { "id" : "f9", "to" : "f0" } + ] }, { "id" : "f13", "type" : "HtmlDialogEventStart", @@ -77,35 +82,35 @@ "at" : { "x" : 560, "y" : 584 }, "labelOffset" : { "x" : 11, "y" : 32 } }, - "connect" : { "id" : "f17", "to" : "f16" } + "connect" : [ + { "id" : "f17", "to" : "f16" } + ] }, { "id" : "f0", "type" : "SubProcessCall", "name" : "translate", "config" : { "processCall" : "deepl/translate:document(File,com.deepl.api.v2.client.TargetLanguage)", - "output" : { - "map" : { - "out" : "in", - "out.file" : "result.translated" - } - }, "call" : { - "params" : [ - { "name" : "file", "type" : "File" }, - { "name" : "targetLanguage", "type" : "com.deepl.api.v2.client.TargetLanguage" } - ], "map" : { "param.file" : "in.file", "param.targetLanguage" : "in.translate.key()" } + }, + "output" : { + "map" : { + "out" : "in", + "out.file" : "result.translated" + } } }, "visual" : { "at" : { "x" : 944, "y" : 584 }, "icon" : "res:/webContent/logo/deepl-logo-blue.png" }, - "connect" : { "id" : "f3", "to" : "f2" } + "connect" : [ + { "id" : "f3", "to" : "f2" } + ] }, { "id" : "f2", "type" : "HtmlDialogEnd", @@ -123,7 +128,9 @@ "at" : { "x" : 560, "y" : 664 }, "labelOffset" : { "x" : 11, "y" : 32 } }, - "connect" : { "id" : "f21", "to" : "f19" } + "connect" : [ + { "id" : "f21", "to" : "f19" } + ] }, { "id" : "f19", "type" : "Script", @@ -140,35 +147,35 @@ "visual" : { "at" : { "x" : 688, "y" : 664 } }, - "connect" : { "id" : "f10", "to" : "f1" } + "connect" : [ + { "id" : "f10", "to" : "f1" } + ] }, { "id" : "f1", "type" : "SubProcessCall", "name" : "translate", "config" : { "processCall" : "deepl/translate:document(File,com.deepl.api.v2.client.TargetLanguage)", - "output" : { - "map" : { - "out" : "in", - "out.file" : "result.translated" - } - }, "call" : { - "params" : [ - { "name" : "file", "type" : "File" }, - { "name" : "targetLanguage", "type" : "com.deepl.api.v2.client.TargetLanguage" } - ], "map" : { "param.file" : "in.file", "param.targetLanguage" : "in.translate.key()" } + }, + "output" : { + "map" : { + "out" : "in", + "out.file" : "result.translated" + } } }, "visual" : { "at" : { "x" : 944, "y" : 664 }, "icon" : "res:/webContent/logo/deepl-logo-blue.png" }, - "connect" : { "id" : "f8", "to" : "f5" } + "connect" : [ + { "id" : "f8", "to" : "f5" } + ] }, { "id" : "f5", "type" : "HtmlDialogEnd", diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.rddescriptor b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.rddescriptor deleted file mode 100644 index ae605f0..0000000 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.rddescriptor +++ /dev/null @@ -1,7 +0,0 @@ - - - - viewTechnology - JSF - - diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.xhtml b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.xhtml index 95962b2..f0d27ee 100644 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.xhtml +++ b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateText.xhtml @@ -41,7 +41,7 @@
+ value="translate" update="form" icon="si si-chat-translate" disabled="#{data.translate eq null}" />
diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextData.d.json b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextData.d.json new file mode 100644 index 0000000..32a2b3a --- /dev/null +++ b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextData.d.json @@ -0,0 +1,25 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "translateTextData", + "namespace" : "com.axonivy.connector.deepl.demo.translateText", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "data", + "type" : "com.axonivy.connector.deepl.demo.Data", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "languages", + "type" : "java.util.List" + }, { + "name" : "translate", + "type" : "com.axonivy.connector.deepl.LanguageInfo.Lang" + }, { + "name" : "inputText", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "outputText", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + } ] +} \ No newline at end of file diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextData.ivyClass b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextData.ivyClass deleted file mode 100644 index d892152..0000000 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextData.ivyClass +++ /dev/null @@ -1,12 +0,0 @@ -translateTextData #class -com.axonivy.connector.deepl.demo.translateText #namespace -data com.axonivy.connector.deepl.demo.Data #field -data PERSISTENT #fieldModifier -languages java.util.List #field -languages PERSISTENT #fieldModifier -translate com.axonivy.connector.deepl.LanguageInfo.Lang #field -translate PERSISTENT #fieldModifier -inputText String #field -inputText PERSISTENT #fieldModifier -outputText String #field -outputText PERSISTENT #fieldModifier diff --git a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextProcess.p.json b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextProcess.p.json index 42bdfdd..44a3aab 100644 --- a/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextProcess.p.json +++ b/deepl-connector-demo/src_hd/com/axonivy/connector/deepl/demo/translateText/translateTextProcess.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1866E2B2931CFAA5", "kind" : "HTML_DIALOG", "config" : { @@ -10,7 +10,7 @@ "type" : "HtmlDialogStart", "name" : "start()", "config" : { - "callSignature" : "start", + "signature" : "start", "input" : { "map" : { "out.data.language" : "com.deepl.api.v2.client.TargetLanguage.DE", @@ -26,7 +26,9 @@ "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f1", "type" : "HtmlDialogEnd", @@ -43,7 +45,9 @@ "visual" : { "at" : { "x" : 96, "y" : 192 } }, - "connect" : { "id" : "f5", "to" : "f4" } + "connect" : [ + { "id" : "f5", "to" : "f4" } + ] }, { "id" : "f4", "type" : "HtmlDialogExit", @@ -56,28 +60,26 @@ "name" : "translate", "config" : { "processCall" : "deepl/translate:text(String,com.deepl.api.v2.client.TargetLanguage)", - "output" : { - "map" : { - "out" : "in", - "out.outputText" : "result.translation" - } - }, "call" : { - "params" : [ - { "name" : "text", "type" : "String" }, - { "name" : "targetLanguage", "type" : "com.deepl.api.v2.client.TargetLanguage" } - ], "map" : { "param.text" : "in.inputText", "param.targetLanguage" : "in.translate.key()" } + }, + "output" : { + "map" : { + "out" : "in", + "out.outputText" : "result.translation" + } } }, "visual" : { "at" : { "x" : 224, "y" : 128 }, "icon" : "res:/webContent/logo/deepl-logo-blue.png" }, - "connect" : { "id" : "f9", "to" : "f8" } + "connect" : [ + { "id" : "f9", "to" : "f8" } + ] }, { "id" : "f7", "type" : "HtmlDialogEventStart", @@ -96,7 +98,9 @@ "visual" : { "at" : { "x" : 96, "y" : 128 } }, - "connect" : { "id" : "f10", "to" : "f6" } + "connect" : [ + { "id" : "f10", "to" : "f6" } + ] }, { "id" : "f8", "type" : "HtmlDialogEnd", diff --git a/deepl-connector-demo/webContent/layouts/frame-10.xhtml b/deepl-connector-demo/webContent/layouts/frame-10.xhtml index 936a73b..b6244a1 100644 --- a/deepl-connector-demo/webContent/layouts/frame-10.xhtml +++ b/deepl-connector-demo/webContent/layouts/frame-10.xhtml @@ -32,7 +32,7 @@ and refence it below in the head part. - +