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/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector-demo/.classpath b/docuware-connector-demo/.classpath index cdf5ab4..8228714 100644 --- a/docuware-connector-demo/.classpath +++ b/docuware-connector-demo/.classpath @@ -5,12 +5,7 @@ - - - - - - + diff --git a/docuware-connector-demo/.project b/docuware-connector-demo/.project index e1939cb..3f228ee 100644 --- a/docuware-connector-demo/.project +++ b/docuware-connector-demo/.project @@ -30,6 +30,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/docuware-connector-demo/.settings/.jsdtscope b/docuware-connector-demo/.settings/.jsdtscope deleted file mode 100644 index 869c01d..0000000 --- a/docuware-connector-demo/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/docuware-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs b/docuware-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs index 5c9ae76..274aa52 100644 --- a/docuware-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs +++ b/docuware-connector-demo/.settings/ch.ivyteam.ivy.designer.prefs @@ -1,4 +1,4 @@ -ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.market.docuware.connector.demo.Data ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.market.docuware.connector.demo -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 \ No newline at end of file diff --git a/docuware-connector-demo/.settings/org.eclipse.core.resources.prefs b/docuware-connector-demo/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/docuware-connector-demo/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector-demo/.settings/org.eclipse.jdt.core.prefs b/docuware-connector-demo/.settings/org.eclipse.jdt.core.prefs index d4540a5..3a79233 100644 --- a/docuware-connector-demo/.settings/org.eclipse.jdt.core.prefs +++ b/docuware-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/docuware-connector-demo/.settings/org.eclipse.wst.common.component b/docuware-connector-demo/.settings/org.eclipse.wst.common.component index 791cc86..0cb106a 100644 --- a/docuware-connector-demo/.settings/org.eclipse.wst.common.component +++ b/docuware-connector-demo/.settings/org.eclipse.wst.common.component @@ -2,10 +2,9 @@ - - + \ No newline at end of file diff --git a/docuware-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml b/docuware-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml index 156ecdb..621b1f8 100644 --- a/docuware-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/docuware-connector-demo/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,6 @@ - - + - - + \ No newline at end of file diff --git a/docuware-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.container b/docuware-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a..0000000 --- a/docuware-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/docuware-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.name b/docuware-connector-demo/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b..0000000 --- a/docuware-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/docuware-connector-demo/config/variables.yaml b/docuware-connector-demo/config/variables.yaml index 4b9e891..de42899 100644 --- a/docuware-connector-demo/config/variables.yaml +++ b/docuware-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/docuware-connector-demo/dataclasses/com/axonivy/market/docuware/connector/demo/Data.d.json b/docuware-connector-demo/dataclasses/com/axonivy/market/docuware/connector/demo/Data.d.json new file mode 100644 index 0000000..cd07b96 --- /dev/null +++ b/docuware-connector-demo/dataclasses/com/axonivy/market/docuware/connector/demo/Data.d.json @@ -0,0 +1,49 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "Data", + "namespace" : "com.axonivy.market.docuware.connector.demo", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "organizations", + "type" : "com.docuware.dev.schema._public.services.platform.Organizations" + }, { + "name" : "fileCabinets", + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinets" + }, { + "name" : "cabinet", + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet" + }, { + "name" : "document", + "type" : "com.docuware.dev.schema._public.services.platform.Document" + }, { + "name" : "file", + "type" : "File" + }, { + "name" : "section", + "type" : "com.docuware.dev.schema._public.services.platform.Section" + }, { + "name" : "dialog", + "type" : "com.docuware.dev.schema._public.services.platform.Dialog" + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + }, { + "name" : "configuration", + "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" + }, { + "name" : "properties", + "type" : "List" + }, { + "name" : "cabinetId", + "type" : "String" + }, { + "name" : "organizationId", + "type" : "String" + }, { + "name" : "documentId", + "type" : "String" + }, { + "name" : "documents", + "type" : "java.util.List" + } ] +} \ No newline at end of file diff --git a/docuware-connector-demo/dataclasses/com/axonivy/market/docuware/connector/demo/Data.ivyClass b/docuware-connector-demo/dataclasses/com/axonivy/market/docuware/connector/demo/Data.ivyClass deleted file mode 100644 index 991df58..0000000 --- a/docuware-connector-demo/dataclasses/com/axonivy/market/docuware/connector/demo/Data.ivyClass +++ /dev/null @@ -1,16 +0,0 @@ -Data #class -com.axonivy.market.docuware.connector.demo #namespace -organizations com.docuware.dev.schema._public.services.platform.Organizations #field -fileCabinets com.docuware.dev.schema._public.services.platform.FileCabinets #field -cabinet com.docuware.dev.schema._public.services.platform.FileCabinet #field -document com.docuware.dev.schema._public.services.platform.Document #field -file File #field -section com.docuware.dev.schema._public.services.platform.Section #field -dialog com.docuware.dev.schema._public.services.platform.Dialog #field -error ch.ivyteam.ivy.bpm.error.BpmError #field -configuration com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration #field -properties List #field -cabinetId String #field -organizationId String #field -documentId String #field -documents java.util.List #field diff --git a/docuware-connector-demo/pom.xml b/docuware-connector-demo/pom.xml index 2f43030..23192be 100644 --- a/docuware-connector-demo/pom.xml +++ b/docuware-connector-demo/pom.xml @@ -3,10 +3,11 @@ 4.0.0 com.axonivy.connector.docuware docuware-connector-demo - 10.0.30-SNAPSHOT + 12.0.0-SNAPSHOT iar - 10.0.16 + 12.0.0 + UTF-8 diff --git a/docuware-connector-demo/processes/DocuWareDemo.p.json b/docuware-connector-demo/processes/DocuWareDemo.p.json index a23995c..7aebe06 100644 --- a/docuware-connector-demo/processes/DocuWareDemo.p.json +++ b/docuware-connector-demo/processes/DocuWareDemo.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1811FD33E36CAB39", "config" : { "data" : "com.axonivy.market.docuware.connector.demo.Data" @@ -9,19 +9,23 @@ "type" : "RequestStart", "name" : "start.ivp", "config" : { - "callSignature" : "start", - "startDescription" : "Start a UI to demonstrate some basic UI calls.", - "outLink" : "start.ivp", - "startName" : "Start some DocuWare calls", - "tags" : "demo", - "case" : { } + "signature" : "start", + "request" : { + "name" : "Start some DocuWare calls", + "description" : "Start a UI to demonstrate some basic UI calls." + } }, + "tags" : [ + "demo" + ], "visual" : { "at" : { "x" : 80, "y" : 64 }, "labelOffset" : { "x" : 12, "y" : 37 }, "description" : "Start a simple UI to demonstrate some DocuWare calls." }, - "connect" : { "id" : "f4", "to" : "f3" } + "connect" : [ + { "id" : "f4", "to" : "f3" } + ] }, { "id" : "f1", "type" : "TaskEnd", @@ -33,23 +37,23 @@ "type" : "DialogCall", "name" : "DocuWare Demo", "config" : { - "dialogId" : "com.axonivy.connector.docuware.connector.demo.DocuWareDemo", - "startMethod" : "start()" + "dialog" : "com.axonivy.connector.docuware.connector.demo.DocuWareDemo:start()" }, "visual" : { "at" : { "x" : 200, "y" : 64 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f5", "type" : "RequestStart", "name" : "organizations.ivp", "config" : { - "callSignature" : "organizations", - "outLink" : "organizations.ivp", - "startDescription" : "Fetch organizations of this DocuWare instance and log them to the log file.", + "signature" : "organizations", "input" : { + "map" : { }, "code" : [ "import org.apache.commons.lang3.StringUtils;", "ivy.log.info(\"Username: {0}\", ivy.var.get(\"docuwareConnector.username\"));", @@ -57,14 +61,18 @@ "ivy.log.info(\"BaseUrl: {0}\", ivy.var.get(\"docuwareConnector_baseurl\"));" ] }, - "startName" : "Log Organization names", - "case" : { } + "request" : { + "name" : "Log Organization names", + "description" : "Fetch organizations of this DocuWare instance and log them to the log file." + } }, "visual" : { "at" : { "x" : 80, "y" : 160 }, "labelOffset" : { "x" : 8, "y" : 53 } }, - "connect" : { "id" : "f94", "to" : "f86" } + "connect" : [ + { "id" : "f94", "to" : "f86" } + ] }, { "id" : "f8", "type" : "TaskEnd", @@ -76,40 +84,48 @@ "type" : "RequestStart", "name" : "fileCabinets.ivp", "config" : { - "callSignature" : "fileCabinets", - "outLink" : "fileCabinets.ivp", - "startDescription" : [ - "Load FileCabinets", - "from your Organization" - ], - "startName" : "Load File Cabinets", - "case" : { } + "signature" : "fileCabinets", + "request" : { + "name" : "Load File Cabinets", + "description" : [ + "Load FileCabinets", + "from your Organization" + ] + } }, "visual" : { "at" : { "x" : 80, "y" : 256 }, "labelOffset" : { "x" : 26, "y" : 37 } }, - "connect" : { "id" : "f18", "to" : "f17" } + "connect" : [ + { "id" : "f18", "to" : "f17" } + ] }, { "id" : "f17", "type" : "RestClientCall", "name" : "Get Organizations", "config" : { - "path" : "/Organizations", - "headers" : { - "Accept" : "application/xml" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/Organizations", + "headers" : { + "Accept" : "application/xml" + } }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "resultType" : "com.docuware.dev.schema._public.services.platform.Organizations", - "responseCode" : "out.organizations.getOrganization().addAll(result.getOrganization());" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Organizations", + "code" : "out.organizations.getOrganization().addAll(result.getOrganization());" + } + } }, "visual" : { "at" : { "x" : 200, "y" : 256 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f95", "to" : "f88" } + "connect" : [ + { "id" : "f95", "to" : "f88" } + ] }, { "id" : "f28", "type" : "RestClientCall", @@ -118,51 +134,55 @@ "Documents" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "q" : "", - "fields" : "", - "sortOrder" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.document" : "result.items.getItem().get(0)" - }, - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "q" : "", + "fields" : "", + "sortOrder" : "" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", - "bodyInputType" : "ENTITY", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.Document;", - "ivy.log.info(\"***DocuWareDemo-DOC - Found Documents: {0}\", result.items.getItem().size());", - "for (Document doc : result.items.getItem()) {", - " ivy.log.info(\"-Found doc {0}({1}) - size {2} - type {3}\", doc.title, doc.id, doc.fileSize, doc.contentType);", - "}" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", + "map" : { + "out.document" : "result.items.getItem().get(0)" + }, + "code" : [ + "import com.docuware.dev.schema._public.services.platform.Document;", + "ivy.log.info(\"***DocuWareDemo-DOC - Found Documents: {0}\", result.items.getItem().size());", + "for (Document doc : result.items.getItem()) {", + " ivy.log.info(\"-Found doc {0}({1}) - size {2} - type {3}\", doc.title, doc.id, doc.fileSize, doc.contentType);", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 360, "y" : 352 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f10", "to" : "f20" } + "connect" : [ + { "id" : "f10", "to" : "f20" } + ] }, { "id" : "f27", "type" : "RequestStart", "name" : "downloadFile.ivp", "config" : { - "callSignature" : "downloadFile", - "outLink" : "downloadFile.ivp", - "case" : { } + "signature" : "downloadFile" }, "visual" : { "at" : { "x" : 80, "y" : 352 }, "labelOffset" : { "x" : 11, "y" : 48 } }, - "connect" : { "id" : "f16", "to" : "f11" } + "connect" : [ + { "id" : "f16", "to" : "f11" } + ] }, { "id" : "f15", "type" : "TaskEnd", @@ -177,34 +197,39 @@ "Sections" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Sections", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "docid" : "in.document.id.toString()" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.section" : "result.getSection().get(0)" - }, - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Sections", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "docid" : "in.document.id.toString()" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Sections", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.Section;", - "ivy.log.info(\"***DocuWareDemo-Section - Found Sections: {0}\", result.getSection().size());", - "for (Section section : result.getSection()) {", - " ivy.log.info(\"-Found section {0} - count({1})\", section.id, section.pageCount);", - "}" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Sections", + "map" : { + "out.section" : "result.getSection().get(0)" + }, + "code" : [ + "import com.docuware.dev.schema._public.services.platform.Section;", + "ivy.log.info(\"***DocuWareDemo-Section - Found Sections: {0}\", result.getSection().size());", + "for (Section section : result.getSection()) {", + " ivy.log.info(\"-Found section {0} - count({1})\", section.id, section.pageCount);", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 536, "y" : 448 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f34", "to" : "f33" } + "connect" : [ + { "id" : "f34", "to" : "f33" } + ] }, { "id" : "f33", "type" : "RestClientCall", @@ -213,25 +238,30 @@ "Section" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Sections/{Section}", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "docid" : "in.document.id.toString()" - }, - "statusErrorCode" : "ivy:error:rest:client", - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId", - "Section" : "in.section.id" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Sections/{Section}", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId", + "Section" : "in.section.id" + }, + "queryParams" : { + "docid" : "in.document.id.toString()" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Section" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Section" + } + } }, "visual" : { "at" : { "x" : 712, "y" : 448 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f36", "to" : "f35" } + "connect" : [ + { "id" : "f36", "to" : "f35" } + ] }, { "id" : "f35", "type" : "RestClientCall", @@ -240,45 +270,50 @@ "Section" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Sections/{Section}/Data", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "docid" : "in.document.id.toString()" - }, - "statusErrorCode" : "ivy:error:rest:client", - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId", - "Section" : "in.section.id" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Sections/{Section}/Data", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId", + "Section" : "in.section.id" + }, + "queryParams" : { + "docid" : "in.document.id.toString()" + } }, - "resultType" : "[B", - "responseCode" : [ - "ivy.log.info(\"-Section original filename {0}\", in.section.originalFileName);", - "in.file = new File(\"section-\"+in.section.originalFileName, true);", - "in.file.createNewFile();", - "in.file.writeBinary(result);" - ] + "response" : { + "entity" : { + "type" : "[B", + "code" : [ + "ivy.log.info(\"-Section original filename {0}\", in.section.originalFileName);", + "in.file = new File(\"section-\"+in.section.originalFileName, true);", + "in.file.createNewFile();", + "in.file.writeBinary(result);" + ] + } + } }, "visual" : { "at" : { "x" : 888, "y" : 448 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f42", "to" : "f41" } + "connect" : [ + { "id" : "f42", "to" : "f41" } + ] }, { "id" : "f38", "type" : "RequestStart", "name" : "sections.ivp", "config" : { - "callSignature" : "sections", - "outLink" : "sections.ivp", - "case" : { } + "signature" : "sections" }, "visual" : { "at" : { "x" : 80, "y" : 448 }, "labelOffset" : { "x" : 16, "y" : 37 } }, - "connect" : { "id" : "f26", "to" : "f24" } + "connect" : [ + { "id" : "f26", "to" : "f24" } + ] }, { "id" : "f41", "type" : "RestClientCall", @@ -287,45 +322,55 @@ "Section" ], "config" : { - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", "method" : "POST", - "queryParams" : { - "DocId" : "in.document.id.toString()" - }, - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdSectionsBody", - "bodyInputType" : "FORM", - "bodyForm" : { - "file" : "in.file.getJavaFile()" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Sections", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId", + "Section" : "in.section.id" + }, + "queryParams" : { + "DocId" : "in.document.id.toString()" + } }, - "path" : "/FileCabinets/{FileCabinetId}/Sections", - "clientErrorCode" : "ivy:error:rest:client", - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId", - "Section" : "in.section.id" + "body" : { + "type" : "FORM", + "mediaType" : "multipart/form-data", + "form" : { + "file" : [ "in.file.getJavaFile()" ] + }, + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdSectionsBody" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Section", - "bodyMediaType" : "multipart/form-data" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Section" + } + } }, "visual" : { "at" : { "x" : 1064, "y" : 448 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f37", "to" : "f12" } + "connect" : [ + { "id" : "f37", "to" : "f12" } + ] }, { "id" : "f45", "type" : "RequestStart", "name" : "dialogs.ivp", "config" : { - "callSignature" : "dialogs", - "outLink" : "dialogs.ivp", - "case" : { } + "signature" : "dialogs" }, "visual" : { "at" : { "x" : 80, "y" : 544 }, "labelOffset" : { "x" : 12, "y" : 37 } }, - "connect" : { "id" : "f40", "to" : "f32" } + "connect" : [ + { "id" : "f40", "to" : "f32" } + ] }, { "id" : "f49", "type" : "RestClientCall", @@ -334,34 +379,39 @@ "By Type" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Dialogs", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "dialogType" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.dialog" : "result.get(0)" - }, - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Dialogs", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "dialogType" : "" + } }, - "resultType" : "java.util.List", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.Dialog;", - "ivy.log.info(\"***DocuWareDemo-Dialog - Found Dialogs: {0}\", result.size());", - "for (Dialog dialog : result) {", - " ivy.log.info(\"-Dialog {0}({1})\", dialog.displayName, dialog.id);", - "}" - ] + "response" : { + "entity" : { + "type" : "java.util.List", + "map" : { + "out.dialog" : "result.get(0)" + }, + "code" : [ + "import com.docuware.dev.schema._public.services.platform.Dialog;", + "ivy.log.info(\"***DocuWareDemo-Dialog - Found Dialogs: {0}\", result.size());", + "for (Dialog dialog : result) {", + " ivy.log.info(\"-Dialog {0}({1})\", dialog.displayName, dialog.id);", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 360, "y" : 544 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f52", "to" : "f30" } + "connect" : [ + { "id" : "f52", "to" : "f30" } + ] }, { "id" : "f30", "type" : "RestClientCall", @@ -370,25 +420,30 @@ "By ID" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Dialogs/{SearchDialogId}", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "dialogType" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId", - "SearchDialogId" : "in.dialog.id" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Dialogs/{SearchDialogId}", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId", + "SearchDialogId" : "in.dialog.id" + }, + "queryParams" : { + "dialogType" : "" + } }, - "resultType" : "java.util.List" + "response" : { + "entity" : { + "type" : "java.util.List" + } + } }, "visual" : { "at" : { "x" : 536, "y" : 544 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f54", "to" : "f53" } + "connect" : [ + { "id" : "f54", "to" : "f53" } + ] }, { "id" : "f53", "type" : "RestClientCall", @@ -397,35 +452,44 @@ "By Expression" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Query/DialogExpression", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", "method" : "POST", - "queryParams" : { - "dialogId" : "in.dialog.id", - "format" : "" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Query/DialogExpression", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "dialogId" : "in.dialog.id", + "format" : "" + } }, - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.DialogExpression", - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId" + "body" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DialogExpression" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", - "bodyInputType" : "ENTITY", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.Document;", - "ivy.log.info(\"***DocuWareDemo-Dialog - Found Dialogs documents: {0}\", result.items.getItem().size());", - "for (Document doc : result.items.getItem()) {", - " ivy.log.info(\"-Found dialog-doc {0}({1}) - size {2} - type {3}\", doc.title, doc.id, doc.fileSize, doc.contentType);", - "}" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", + "code" : [ + "import com.docuware.dev.schema._public.services.platform.Document;", + "ivy.log.info(\"***DocuWareDemo-Dialog - Found Dialogs documents: {0}\", result.items.getItem().size());", + "for (Document doc : result.items.getItem()) {", + " ivy.log.info(\"-Found dialog-doc {0}({1}) - size {2} - type {3}\", doc.title, doc.id, doc.fileSize, doc.contentType);", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 712, "y" : 544 }, - "size" : { "width" : 128, "height" : 60 }, + "size" : { "width" : 128 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f56", "to" : "f55" } + "connect" : [ + { "id" : "f56", "to" : "f55" } + ] }, { "id" : "f55", "type" : "RestClientCall", @@ -434,57 +498,69 @@ "Linked Expr" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Query/DialogExpressionLink", - "bodyObjectMapping" : { - "param.operation" : "com.docuware.dev.schema._public.services.platform.DialogExpressionOperation.OR" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", "method" : "POST", - "queryParams" : { - "dialogId" : "in.dialog.id", - "sortOrder" : "", - "fields" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.MultiColumnSelectListValuesQuery", - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Query/DialogExpressionLink", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "dialogId" : "in.dialog.id", + "sortOrder" : "", + "fields" : "" + } }, - "bodyObjectCode" : [ - "import com.docuware.dev.schema._public.services.platform.MultiColumnSelectListExpressionCondition;", - "", - "MultiColumnSelectListExpressionCondition condition;", - "condition.columnName = \"mycol\";", - "condition.dBName = \"myDb\";", - "param.getCondition().add(condition);" - ], - "bodyInputType" : "ENTITY" + "body" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.MultiColumnSelectListValuesQuery", + "map" : { + "param.operation" : "com.docuware.dev.schema._public.services.platform.DialogExpressionOperation.OR" + }, + "code" : [ + "import com.docuware.dev.schema._public.services.platform.MultiColumnSelectListExpressionCondition;", + "", + "MultiColumnSelectListExpressionCondition condition;", + "condition.columnName = \"mycol\";", + "condition.dBName = \"myDb\";", + "param.getCondition().add(condition);" + ] + } + } }, "visual" : { "at" : { "x" : 888, "y" : 544 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f48", "to" : "f15" } + "connect" : [ + { "id" : "f48", "to" : "f15" } + ] }, { "id" : "f57", "type" : "RequestStart", "name" : "fileIndexFields.ivp", "config" : { - "callSignature" : "fileIndexFields", - "outLink" : "fileIndexFields.ivp", - "case" : { } + "signature" : "fileIndexFields" }, "visual" : { "at" : { "x" : 80, "y" : 656 } }, - "connect" : { "id" : "f44", "to" : "f43" } + "connect" : [ + { "id" : "f44", "to" : "f43" } + ] }, { "id" : "f60", "type" : "SubProcessCall", "name" : "Upload File from CMS", "config" : { "processCall" : "UploadService:uploadFileWithIndexFields(java.io.File,List,com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration)", + "call" : { + "map" : { + "param.file" : "com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService.exportFromCMS(\"/Files/uploadSample\", \"pdf\")", + "param.indexFields" : "in.properties", + "param.configuration.fileCabinetId" : "in.configuration.fileCabinetId" + } + }, "output" : { "map" : { "out" : "in", @@ -499,36 +575,22 @@ " ivy.log.info(\"-Uploaded file failed: {0}\", result.error);", "}" ] - }, - "call" : { - "params" : [ - { "name" : "file", "type" : "java.io.File" }, - { "name" : "indexFields", "type" : "List" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } - ], - "map" : { - "param.file" : "com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService.exportFromCMS(\"/Files/uploadSample\", \"pdf\")", - "param.indexFields" : "in.properties", - "param.configuration.fileCabinetId" : "in.configuration.fileCabinetId" - } } }, "visual" : { "at" : { "x" : 520, "y" : 656 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f71", "to" : "f70" } + "connect" : [ + { "id" : "f71", "to" : "f70" } + ] }, { "id" : "f61", "type" : "SubProcessCall", "name" : "Update Index Fields", "config" : { + "processCall" : "UpdateService:updateDocument(String,List,com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration)", "call" : { - "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "indexFields", "type" : "List" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } - ], "map" : { "param.documentId" : "String.valueOf(in.document.id)", "param.configuration.fileCabinetId" : "in.configuration.fileCabinetId" @@ -546,7 +608,6 @@ "param.indexFields = properties;" ] }, - "processCall" : "UpdateService:updateDocument(String,List,com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration)", "output" : { "map" : { "out" : "in", @@ -558,36 +619,36 @@ "at" : { "x" : 800, "y" : 656 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f76", "to" : "f75" } + "connect" : [ + { "id" : "f76", "to" : "f75" } + ] }, { "id" : "f63", "type" : "SubProcessCall", "name" : "Download File", "config" : { "processCall" : "DownloadService:downloadFile(String,com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration)", + "call" : { + "map" : { + "param.documentId" : "String.valueOf(in.document.id)", + "param.configration.fileCabinetId" : "in.configuration.fileCabinetId" + } + }, "output" : { "map" : { "out" : "in", "out.error" : "result.#error", "out.file" : "result.#file" } - }, - "call" : { - "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "configration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } - ], - "map" : { - "param.documentId" : "String.valueOf(in.document.id)", - "param.configration.fileCabinetId" : "in.configuration.fileCabinetId" - } } }, "visual" : { "at" : { "x" : 1056, "y" : 656 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f79", "to" : "f78" } + "connect" : [ + { "id" : "f79", "to" : "f78" } + ] }, { "id" : "f65", "type" : "TaskEnd", @@ -598,14 +659,19 @@ "id" : "f70", "type" : "Alternative", "name" : "successful?", + "config" : { + "conditions" : { + "f62" : "!in.#error is initialized" + } + }, "visual" : { "at" : { "x" : 672, "y" : 656 }, - "labelOffset" : { "x" : 16, "y" : -16 } + "labelOffset" : { "y" : -16 } }, "connect" : [ { "id" : "f62", "to" : "f61", "label" : { "name" : "yes" - }, "condition" : "!in.#error is initialized" }, + } }, { "id" : "f73", "to" : "f72", "via" : [ { "x" : 672, "y" : 768 } ], "label" : { "name" : "no", "segment" : 1.38 @@ -623,19 +689,26 @@ "visual" : { "at" : { "x" : 1184, "y" : 768 } }, - "connect" : { "id" : "f68", "to" : "f67" } + "connect" : [ + { "id" : "f68", "to" : "f67" } + ] }, { "id" : "f75", "type" : "Alternative", "name" : "successful?", + "config" : { + "conditions" : { + "f64" : "!in.#error is initialized" + } + }, "visual" : { "at" : { "x" : 928, "y" : 656 }, - "labelOffset" : { "x" : 16, "y" : -16 } + "labelOffset" : { "y" : -16 } }, "connect" : [ { "id" : "f64", "to" : "f63", "label" : { "name" : "yes" - }, "condition" : "!in.#error is initialized" }, + } }, { "id" : "f77", "to" : "f72", "via" : [ { "x" : 928, "y" : 768 } ], "label" : { "name" : "no", "segment" : 1.23 @@ -645,14 +718,19 @@ "id" : "f78", "type" : "Alternative", "name" : "successful?", + "config" : { + "conditions" : { + "f59" : "!in.#error is initialized" + } + }, "visual" : { "at" : { "x" : 1184, "y" : 656 }, - "labelOffset" : { "x" : 16, "y" : -16 } + "labelOffset" : { "y" : -16 } }, "connect" : [ { "id" : "f59", "to" : "f58", "label" : { "name" : "yes" - }, "condition" : "!in.#error is initialized" }, + } }, { "id" : "f80", "to" : "f72", "label" : { "name" : "no" } } @@ -677,87 +755,105 @@ "Cabinet" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}", - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.cabinet" : "result" - }, - "templateParams" : { - "FileCabinetId" : "in.fileCabinets.getFileCabinet().get(0).id" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}", + "templateParams" : { + "FileCabinetId" : "in.fileCabinets.getFileCabinet().get(0).id" + }, + "headers" : { + "Accept" : "application/xml" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.FileCabinet", - "responseCode" : "ivy.log.info(\"-First cabinet: {0}({1})\", out.cabinet.name, out.cabinet.id);" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet", + "map" : { + "out.cabinet" : "result" + }, + "code" : "ivy.log.info(\"-First cabinet: {0}({1})\", out.cabinet.name, out.cabinet.id);" + } + } }, "visual" : { "at" : { "x" : 536, "y" : 256 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f85", "to" : "f9" } + "connect" : [ + { "id" : "f85", "to" : "f9" } + ] }, { "id" : "f86", "type" : "RestClientCall", "name" : "Get Organizations", "config" : { - "path" : "/Organizations", - "headers" : { - "Accept" : "application/xml" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/Organizations", + "headers" : { + "Accept" : "application/xml" + } }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "resultType" : "com.docuware.dev.schema._public.services.platform.Organizations", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.Organization;", - "", - "out.organizations.getOrganization().addAll(result.getOrganization());", - "ivy.log.info(\"***DocuWareDemo-ORG - Found organizations: {0}\", out.organizations.getOrganization().size());", - "for(Organization org : out.organizations.getOrganization()) {", - " ivy.log.info(\"-Organization name: {0} ({1})\", org.name, org.id);", - "}" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Organizations", + "code" : [ + "import com.docuware.dev.schema._public.services.platform.Organization;", + "", + "out.organizations.getOrganization().addAll(result.getOrganization());", + "ivy.log.info(\"***DocuWareDemo-ORG - Found organizations: {0}\", out.organizations.getOrganization().size());", + "for(Organization org : out.organizations.getOrganization()) {", + " ivy.log.info(\"-Organization name: {0} ({1})\", org.name, org.id);", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 200, "y" : 160 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f82", "to" : "f8" } + "connect" : [ + { "id" : "f82", "to" : "f8" } + ] }, { "id" : "f88", "type" : "RestClientCall", "name" : "Get FileCabinets", "config" : { - "path" : "/FileCabinets", - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "queryParams" : { - "orgid" : "in.organizations.getOrganization().get(0).id" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.fileCabinets" : "result" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets", + "queryParams" : { + "orgid" : "in.organizations.getOrganization().get(0).id" + }, + "headers" : { + "Accept" : "application/xml" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.FileCabinets", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.FileCabinet;", - "ivy.log.info(\"***DocuWareDemo-Cabinet - Found FileCabinest: {0}\", out.fileCabinets.getFileCabinet().size());", - "for(FileCabinet fc : out.fileCabinets.getFileCabinet()) {", - " ivy.log.info(\"-FileCabinet name: {0}({1})\", fc.getName(), fc.id);", - "}" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinets", + "map" : { + "out.fileCabinets" : "result" + }, + "code" : [ + "import com.docuware.dev.schema._public.services.platform.FileCabinet;", + "ivy.log.info(\"***DocuWareDemo-Cabinet - Found FileCabinest: {0}\", out.fileCabinets.getFileCabinet().size());", + "for(FileCabinet fc : out.fileCabinets.getFileCabinet()) {", + " ivy.log.info(\"-FileCabinet name: {0}({1})\", fc.getName(), fc.id);", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 360, "y" : 256 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f6", "to" : "f21" } + "connect" : [ + { "id" : "f6", "to" : "f21" } + ] }, { "id" : "f22", "type" : "RestClientCall", @@ -766,30 +862,34 @@ "Documents" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "q" : "", - "fields" : "", - "sortOrder" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.document" : "result.items.getItem().get(0)" - }, - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "q" : "", + "fields" : "", + "sortOrder" : "" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", - "bodyInputType" : "ENTITY" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", + "map" : { + "out.document" : "result.items.getItem().get(0)" + } + } + } }, "visual" : { "at" : { "x" : 360, "y" : 448 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f99", "to" : "f31" } + "connect" : [ + { "id" : "f99", "to" : "f31" } + ] }, { "id" : "f12", "type" : "TaskEnd", @@ -812,7 +912,9 @@ "at" : { "x" : 200, "y" : 352 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f19", "to" : "f28" } + "connect" : [ + { "id" : "f19", "to" : "f28" } + ] }, { "id" : "f20", "type" : "SubProcessCall", @@ -820,9 +922,6 @@ "config" : { "processCall" : "DownloadService:downloadFile(String)", "call" : { - "params" : [ - { "name" : "documentId", "type" : "String" } - ], "map" : { "param.documentId" : "in.document.id.toString()" } @@ -838,7 +937,9 @@ "at" : { "x" : 536, "y" : 352 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f23", "to" : "f14" } + "connect" : [ + { "id" : "f23", "to" : "f14" } + ] }, { "id" : "f24", "type" : "Script", @@ -855,13 +956,14 @@ "at" : { "x" : 200, "y" : 448 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f29", "to" : "f22" } + "connect" : [ + { "id" : "f29", "to" : "f22" } + ] }, { "id" : "f14", "type" : "Script", "name" : "Write to case", "config" : { - "security" : "system", "output" : { "code" : [ "ivy.case.name = \"Download doc from Docuware\";", @@ -869,12 +971,15 @@ "ivy.case.documents().add(in.file.getName()).write().withContentFrom(in.file);", "ivy.log.info(\"-Doc was attached to case {0}({1})\", ivy.case.name, ivy.case.getId());" ] - } + }, + "sudo" : true }, "visual" : { "at" : { "x" : 712, "y" : 352 } }, - "connect" : { "id" : "f25", "to" : "f13" } + "connect" : [ + { "id" : "f25", "to" : "f13" } + ] }, { "id" : "f32", "type" : "Script", @@ -891,7 +996,9 @@ "at" : { "x" : 200, "y" : 544 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f39", "to" : "f49" } + "connect" : [ + { "id" : "f39", "to" : "f49" } + ] }, { "id" : "f43", "type" : "Script", @@ -908,13 +1015,14 @@ "at" : { "x" : 200, "y" : 656 }, "icon" : "res:/webContent/icons/docuware.png" }, - "connect" : { "id" : "f50", "to" : "f47" } + "connect" : [ + { "id" : "f50", "to" : "f47" } + ] }, { "id" : "f47", "type" : "Script", "name" : "build required properties", "config" : { - "security" : "system", "output" : { "code" : [ "import com.axonivy.connector.docuware.connector.DocuWareKeywordsField;", @@ -943,18 +1051,20 @@ "DocuWareProperty keywordProperty = new DocuWareProperty(\"VALIDATION_CHECK\", keywordField, \"Keywords\");", "in.properties.add(keywordProperty);" ] - } + }, + "sudo" : true }, "visual" : { "at" : { "x" : 360, "y" : 656 } }, - "connect" : { "id" : "f46", "to" : "f60" } + "connect" : [ + { "id" : "f46", "to" : "f60" } + ] }, { "id" : "f58", "type" : "Script", "name" : "Write to case", "config" : { - "security" : "system", "output" : { "code" : [ "ivy.case.name = \"Download doc from Docuware\";", @@ -962,12 +1072,15 @@ "ivy.case.documents().add(in.file.getName()).write().withContentFrom(in.file);", "ivy.log.info(\"-Doc was attached to case {0}({1})\", ivy.case.name, ivy.case.getId());" ] - } + }, + "sudo" : true }, "visual" : { "at" : { "x" : 1312, "y" : 656 } }, - "connect" : { "id" : "f66", "to" : "f65" } + "connect" : [ + { "id" : "f66", "to" : "f65" } + ] }, { "id" : "f67", "type" : "TaskEnd", @@ -979,22 +1092,24 @@ "type" : "RequestStart", "name" : "viewAndEditDocument.ivp", "config" : { - "callSignature" : "viewAndEditDocument", + "signature" : "viewAndEditDocument", "input" : { "map" : { "out.cabinetId" : "ivy.var.docuwareConnector_filecabinetid", "out.organizationId" : "ivy.var.docuwareConnector_organization" } }, - "outLink" : "viewAndEditDocument.ivp", - "startDescription" : "UI for viewing or editing document", - "startName" : "DocuWare View/Edit Document", - "case" : { } + "request" : { + "name" : "DocuWare View/Edit Document", + "description" : "UI for viewing or editing document" + } }, "visual" : { "at" : { "x" : 80, "y" : 880 } }, - "connect" : { "id" : "f91", "to" : "f84" } + "connect" : [ + { "id" : "f91", "to" : "f84" } + ] }, { "id" : "f69", "type" : "TaskEnd", @@ -1009,40 +1124,52 @@ "Organizations" ], "config" : { - "path" : "/Organizations", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.organizationId" : "result.getOrganization().get(0).getId()" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/Organizations" }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Organizations" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Organizations", + "map" : { + "out.organizationId" : "result.getOrganization().get(0).getId()" + } + } + } }, "visual" : { "at" : { "x" : 280, "y" : 880 } }, - "connect" : { "id" : "f98", "to" : "f81" } + "connect" : [ + { "id" : "f98", "to" : "f81" } + ] }, { "id" : "f81", "type" : "RestClientCall", "name" : "Get FileCabinets By Org", "config" : { - "path" : "/FileCabinets", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "queryParams" : { - "orgid" : "in.organizationId" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.cabinetId" : "result.getFileCabinet().get(0).getId()" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets", + "queryParams" : { + "orgid" : "in.organizationId" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.FileCabinets" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinets", + "map" : { + "out.cabinetId" : "result.getFileCabinet().get(0).getId()" + } + } + } }, "visual" : { "at" : { "x" : 456, "y" : 880 } }, - "connect" : { "id" : "f92", "to" : "f83" } + "connect" : [ + { "id" : "f92", "to" : "f83" } + ] }, { "id" : "f83", "type" : "RestClientCall", @@ -1051,46 +1178,56 @@ "Documents" ], "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "queryParams" : { - "q" : "", - "fields" : "", - "sortOrder" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.documents" : "result.items.getItem()" - }, - "templateParams" : { - "FileCabinetId" : "in.cabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "FileCabinetId" : "in.cabinetId" + }, + "queryParams" : { + "q" : "", + "fields" : "", + "sortOrder" : "" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", + "map" : { + "out.documents" : "result.items.getItem()" + } + } + } }, "visual" : { "at" : { "x" : 632, "y" : 880 } }, - "connect" : { "id" : "f93", "to" : "f89" } + "connect" : [ + { "id" : "f93", "to" : "f89" } + ] }, { "id" : "f84", "type" : "Alternative", "name" : "Check variables exist", + "config" : { + "conditions" : { + "f97" : "org.apache.commons.lang3.StringUtils.isNotBlank(in.cabinetId)", + "f90" : "org.apache.commons.lang3.StringUtils.isNotBlank(in.organizationId)" + } + }, "visual" : { "at" : { "x" : 160, "y" : 880 }, - "labelOffset" : { "x" : 16, "y" : -16 } + "labelOffset" : { "y" : -16 } }, "connect" : [ { "id" : "f97", "to" : "f83", "via" : [ { "x" : 160, "y" : 816 }, { "x" : 640, "y" : 816 } ], "label" : { "name" : "Already has cabinetId", - "segment" : 0.5, "offset" : { "x" : 241, "y" : -26 } - }, "condition" : "org.apache.commons.lang3.StringUtils.isNotBlank(in.cabinetId)" }, + } }, { "id" : "f90", "to" : "f81", "via" : [ { "x" : 160, "y" : 944 }, { "x" : 456, "y" : 944 } ], "label" : { "name" : "Already has organizationId", - "segment" : 0.5, "offset" : { "x" : 145, "y" : 30 } - }, "condition" : "org.apache.commons.lang3.StringUtils.isNotBlank(in.organizationId)" }, + } }, { "id" : "f96", "to" : "f74" } ] }, { @@ -1098,13 +1235,8 @@ "type" : "DialogCall", "name" : "DocuWareDemoUI", "config" : { - "dialogId" : "com.axonivy.connector.docuware.connector.demo.DocuWareDemoUI", - "startMethod" : "start(com.docuware.dev.schema._public.services.platform.FileCabinet,List)", + "dialog" : "com.axonivy.connector.docuware.connector.demo.DocuWareDemoUI:start(com.docuware.dev.schema._public.services.platform.FileCabinet,List)", "call" : { - "params" : [ - { "name" : "fileCabinet", "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet" }, - { "name" : "documents", "type" : "List" } - ], "map" : { "param.fileCabinet" : "in.cabinet", "param.documents" : "in.documents" @@ -1114,27 +1246,35 @@ "visual" : { "at" : { "x" : 984, "y" : 880 } }, - "connect" : { "id" : "f100", "to" : "f69" } + "connect" : [ + { "id" : "f100", "to" : "f69" } + ] }, { "id" : "f89", "type" : "RestClientCall", "name" : "Read Cabinet", "config" : { - "path" : "/FileCabinets/{FileCabinetId}", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.cabinet" : "result" - }, - "templateParams" : { - "FileCabinetId" : "in.cabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}", + "templateParams" : { + "FileCabinetId" : "in.cabinetId" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.FileCabinet" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet", + "map" : { + "out.cabinet" : "result" + } + } + } }, "visual" : { "at" : { "x" : 808, "y" : 880 } }, - "connect" : { "id" : "f101", "to" : "f87" } + "connect" : [ + { "id" : "f101", "to" : "f87" } + ] } ] } \ No newline at end of file diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemo.rddescriptor b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemo.rddescriptor deleted file mode 100644 index ae605f0..0000000 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemo.rddescriptor +++ /dev/null @@ -1,7 +0,0 @@ - - - - viewTechnology - JSF - - diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoData.d.json b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoData.d.json new file mode 100644 index 0000000..3713f83 --- /dev/null +++ b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoData.d.json @@ -0,0 +1,29 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "DocuWareDemoData", + "namespace" : "com.axonivy.connector.docuware.connector.demo.DocuWareDemo", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "result", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "file", + "type" : "File", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "fileCabinetId", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "documentId", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "organizations", + "type" : "com.docuware.dev.schema._public.services.platform.Organizations" + }, { + "name" : "fileCabinets", + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinets" + } ] +} \ No newline at end of file diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoData.ivyClass b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoData.ivyClass deleted file mode 100644 index d634d17..0000000 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoData.ivyClass +++ /dev/null @@ -1,14 +0,0 @@ -DocuWareDemoData #class -com.axonivy.connector.docuware.connector.demo.DocuWareDemo #namespace -result String #field -result PERSISTENT #fieldModifier -file File #field -file PERSISTENT #fieldModifier -fileCabinetId String #field -fileCabinetId PERSISTENT #fieldModifier -documentId String #field -documentId PERSISTENT #fieldModifier -organizations com.docuware.dev.schema._public.services.platform.Organizations #field -organizations PERSISTENT #fieldModifier -fileCabinets com.docuware.dev.schema._public.services.platform.FileCabinets #field -fileCabinets PERSISTENT #fieldModifier diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoProcess.p.json b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoProcess.p.json index a740d15..89b80be 100644 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoProcess.p.json +++ b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/DocuWareDemoProcess.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1811FCF74A58FA0C", "kind" : "HTML_DIALOG", "config" : { @@ -10,7 +10,7 @@ "type" : "HtmlDialogStart", "name" : "start()", "config" : { - "callSignature" : "start", + "signature" : "start", "input" : { "map" : { "out.fileCabinetId" : "\"\"" @@ -22,7 +22,9 @@ "at" : { "x" : 96, "y" : 64 }, "labelOffset" : { "x" : 12, "y" : 35 } }, - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f1", "type" : "HtmlDialogEnd", @@ -40,7 +42,9 @@ "at" : { "x" : 96, "y" : 160 }, "labelOffset" : { "x" : 9, "y" : 35 } }, - "connect" : { "id" : "f5", "to" : "f4" } + "connect" : [ + { "id" : "f5", "to" : "f4" } + ] }, { "id" : "f4", "type" : "HtmlDialogExit", @@ -56,9 +60,11 @@ }, "visual" : { "at" : { "x" : 96, "y" : 256 }, - "labelOffset" : { "x" : 13, "y" : 35 } + "labelOffset" : { "y" : 35 } }, - "connect" : { "id" : "f16", "to" : "f15" } + "connect" : [ + { "id" : "f16", "to" : "f15" } + ] }, { "id" : "f7", "type" : "HtmlDialogEnd", @@ -76,7 +82,9 @@ "at" : { "x" : 96, "y" : 352 }, "labelOffset" : { "x" : 11, "y" : 35 } }, - "connect" : { "id" : "f18", "to" : "f17" } + "connect" : [ + { "id" : "f18", "to" : "f17" } + ] }, { "id" : "f10", "type" : "HtmlDialogEnd", @@ -94,7 +102,9 @@ "at" : { "x" : 96, "y" : 448 }, "labelOffset" : { "x" : 11, "y" : 35 } }, - "connect" : { "id" : "f20", "to" : "f19" } + "connect" : [ + { "id" : "f20", "to" : "f19" } + ] }, { "id" : "f13", "type" : "HtmlDialogEnd", @@ -106,110 +116,132 @@ "type" : "RestClientCall", "name" : "Organizations", "config" : { - "path" : "/Organizations", - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.organizations" : "result" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/Organizations", + "headers" : { + "Accept" : "application/xml" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Organizations", - "responseCode" : [ - "import com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService;", - "", - "out.result = DocuWareDemoService.get().getLog(response, result);" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Organizations", + "map" : { + "out.organizations" : "result" + }, + "code" : [ + "import com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService;", + "", + "out.result = DocuWareDemoService.get().getLog(response, result);" + ] + } + } }, "visual" : { "at" : { "x" : 224, "y" : 256 } }, - "connect" : { "id" : "f8", "to" : "f7" } + "connect" : [ + { "id" : "f8", "to" : "f7" } + ] }, { "id" : "f17", "type" : "RestClientCall", "name" : "File Cabinets", "config" : { - "path" : "/FileCabinets", - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "queryParams" : { - "orgid" : "in.organizations.getOrganization().get(0).id" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.fileCabinetId" : "result.getFileCabinet().get(0).id", - "out.fileCabinets" : "result" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets", + "queryParams" : { + "orgid" : "in.organizations.getOrganization().get(0).id" + }, + "headers" : { + "Accept" : "application/xml" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.FileCabinets", - "responseCode" : [ - "import com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService;", - "", - "out.result = DocuWareDemoService.get().getLog(response, result);" - ] + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinets", + "map" : { + "out.fileCabinetId" : "result.getFileCabinet().get(0).id", + "out.fileCabinets" : "result" + }, + "code" : [ + "import com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService;", + "", + "out.result = DocuWareDemoService.get().getLog(response, result);" + ] + } + } }, "visual" : { "at" : { "x" : 224, "y" : 352 } }, - "connect" : { "id" : "f11", "to" : "f10" } + "connect" : [ + { "id" : "f11", "to" : "f10" } + ] }, { "id" : "f19", "type" : "RestClientCall", "name" : "Document Upload", "config" : { - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", "method" : "POST", - "queryParams" : { - "StoreDialogId" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdDocumentsBody", - "bodyInputType" : "FORM", - "responseCode" : [ - "import org.apache.http.HttpStatus;", - "import javax.faces.application.FacesMessage;", - "import javax.faces.context.FacesContext;", - "import com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService;", - "", - "out.result = DocuWareDemoService.get().getLog(response, result);", - "FacesMessage message;", - "if (HttpStatus.SC_OK != response.getStatus()) {", - " message.severity = FacesMessage.SEVERITY_ERROR;", - " message.summary = ivy.cms.co(\"/Dialogs/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/UploadMessageFailed\");", - "} else {", - " message.severity = FacesMessage.SEVERITY_INFO;", - " message.summary = ivy.cms.co(\"/Dialogs/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/UploadMessageOK\");", - "}", - "", - "FacesContext.getCurrentInstance().addMessage(\"\", message);" - ], - "bodyForm" : { - "document" : "", - "file[]" : "in.file.getJavaFile()" - }, - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "clientErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.documentId" : "result.id.toString()" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "fileCabinetId" : "", + "FileCabinetId" : "in.fileCabinetId" + }, + "queryParams" : { + "StoreDialogId" : "" + }, + "headers" : { + "Accept" : "application/xml" + } }, - "templateParams" : { - "fileCabinetId" : "", - "FileCabinetId" : "in.fileCabinetId" + "body" : { + "type" : "FORM", + "mediaType" : "multipart/form-data", + "form" : { + "document" : [ "" ], + "file[]" : [ "in.file.getJavaFile()" ] + }, + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdDocumentsBody" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Document", - "bodyMediaType" : "multipart/form-data" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Document", + "map" : { + "out.documentId" : "result.id.toString()" + }, + "code" : [ + "import org.apache.http.HttpStatus;", + "import javax.faces.application.FacesMessage;", + "import javax.faces.context.FacesContext;", + "import com.axonivy.connector.docuware.connector.demo.service.DocuWareDemoService;", + "", + "out.result = DocuWareDemoService.get().getLog(response, result);", + "FacesMessage message;", + "if (HttpStatus.SC_OK != response.getStatus()) {", + " message.severity = FacesMessage.SEVERITY_ERROR;", + " message.summary = ivy.cms.co(\"/Dialogs/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/UploadMessageFailed\");", + "} else {", + " message.severity = FacesMessage.SEVERITY_INFO;", + " message.summary = ivy.cms.co(\"/Dialogs/com/axonivy/connector/docuware/connector/demo/DocuWareDemo/UploadMessageOK\");", + "}", + "", + "FacesContext.getCurrentInstance().addMessage(\"\", message);" + ] + } + } }, "visual" : { "at" : { "x" : 224, "y" : 448 } }, - "connect" : { "id" : "f23", "to" : "f13" } + "connect" : [ + { "id" : "f23", "to" : "f13" } + ] } ] } \ No newline at end of file diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUI.rddescriptor b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUI.rddescriptor deleted file mode 100644 index ae605f0..0000000 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUI.rddescriptor +++ /dev/null @@ -1,7 +0,0 @@ - - - - viewTechnology - JSF - - diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIData.d.json b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIData.d.json new file mode 100644 index 0000000..2f409c8 --- /dev/null +++ b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIData.d.json @@ -0,0 +1,24 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "DocuWareDemoUIData", + "namespace" : "com.axonivy.connector.docuware.connector.demo.DocuWareDemoUI", + "annotations" : [ "", "" ], + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "fileCabinet", + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet" + }, { + "name" : "documents", + "type" : "List" + }, { + "name" : "documentId", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "properties", + "type" : "com.axonivy.connector.docuware.connector.DocuWareProperties" + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + } ] +} \ No newline at end of file diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIData.ivyClass b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIData.ivyClass deleted file mode 100644 index bc4799b..0000000 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIData.ivyClass +++ /dev/null @@ -1,12 +0,0 @@ -DocuWareDemoUIData #class -com.axonivy.connector.docuware.connector.demo.DocuWareDemoUI #namespace -fileCabinet com.docuware.dev.schema._public.services.platform.FileCabinet #field -fileCabinet PERSISTENT #fieldModifier -documents List #field -documents PERSISTENT #fieldModifier -documentId String #field -documentId PERSISTENT #fieldModifier -properties com.axonivy.connector.docuware.connector.DocuWareProperties #field -properties PERSISTENT #fieldModifier -error ch.ivyteam.ivy.bpm.error.BpmError #field -error PERSISTENT #fieldModifier diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIProcess.p.json b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIProcess.p.json index c3f1e3e..8d156f1 100644 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIProcess.p.json +++ b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/DocuWareDemoUI/DocuWareDemoUIProcess.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "193491716B13EC6A", "kind" : "HTML_DIALOG", "config" : { @@ -10,11 +10,11 @@ "type" : "HtmlDialogStart", "name" : "start(FileCabinet,List)", "config" : { - "callSignature" : "start", + "signature" : "start", "input" : { "params" : [ - { "name" : "fileCabinet", "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet" }, - { "name" : "documents", "type" : "List" } + { "name" : "fileCabinet", "type" : "com.docuware.dev.schema._public.services.platform.FileCabinet", "desc" : "" }, + { "name" : "documents", "type" : "List", "desc" : "" } ], "map" : { "out.documents" : "param.documents", @@ -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" : 160 } }, - "connect" : { "id" : "f5", "to" : "f4" } + "connect" : [ + { "id" : "f5", "to" : "f4" } + ] }, { "id" : "f4", "type" : "HtmlDialogExit", @@ -55,10 +59,10 @@ "type" : "HtmlDialogMethodStart", "name" : "deleteDocument(String)", "config" : { - "callSignature" : "deleteDocument", + "signature" : "deleteDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" } + { "name" : "documentId", "type" : "String", "desc" : "" } ], "map" : { "out.documentId" : "param.documentId" @@ -69,56 +73,68 @@ "visual" : { "at" : { "x" : 96, "y" : 256 } }, - "connect" : { "id" : "f8", "to" : "f7" } + "connect" : [ + { "id" : "f8", "to" : "f7" } + ] }, { "id" : "f7", "type" : "RestClientCall", "name" : "Delete Document", "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", "method" : "DELETE", - "templateParams" : { - "DocumentId" : "in.documentId", - "FileCabinetId" : "in.fileCabinet.getId()" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", + "templateParams" : { + "DocumentId" : "in.documentId", + "FileCabinetId" : "in.fileCabinet.getId()" + }, + "headers" : { + "Accept" : "application/xml" + } } }, "visual" : { "at" : { "x" : 248, "y" : 256 } }, - "connect" : { "id" : "f10", "to" : "f9" } + "connect" : [ + { "id" : "f10", "to" : "f9" } + ] }, { "id" : "f9", "type" : "RestClientCall", "name" : "Query Documents", "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "headers" : { - "Accept" : "application/xml" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "queryParams" : { - "q" : "", - "fields" : "", - "sortOrder" : "" - }, - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.documents" : "result.items.getItem()" - }, - "templateParams" : { - "FileCabinetId" : "in.fileCabinet.getId()" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "FileCabinetId" : "in.fileCabinet.getId()" + }, + "queryParams" : { + "q" : "", + "fields" : "", + "sortOrder" : "" + }, + "headers" : { + "Accept" : "application/xml" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentsQueryResult", + "map" : { + "out.documents" : "result.items.getItem()" + } + } + } }, "visual" : { "at" : { "x" : 440, "y" : 256 } }, - "connect" : { "id" : "f12", "to" : "f11" } + "connect" : [ + { "id" : "f12", "to" : "f11" } + ] }, { "id" : "f11", "type" : "HtmlDialogEnd", @@ -130,10 +146,10 @@ "type" : "HtmlDialogMethodStart", "name" : "onClickEditDocument(String)", "config" : { - "callSignature" : "onClickEditDocument", + "signature" : "onClickEditDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" } + { "name" : "documentId", "type" : "String", "desc" : "" } ], "map" : { "out.documentId" : "param.documentId" @@ -144,37 +160,42 @@ "visual" : { "at" : { "x" : 104, "y" : 368 } }, - "connect" : { "id" : "f15", "to" : "f21" } + "connect" : [ + { "id" : "f15", "to" : "f21" } + ] }, { "id" : "f21", "type" : "RestClientCall", "name" : "Fetch Document Properties", "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", - "headers" : { - "Accept" : "application/json" - }, - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "statusErrorCode" : "ivy:error:rest:client", - "templateParams" : { - "DocumentId" : "in.documentId", - "FileCabinetId" : "in.fileCabinet.id" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", + "templateParams" : { + "DocumentId" : "in.documentId", + "FileCabinetId" : "in.fileCabinet.id" + }, + "headers" : { + "Accept" : "application/json" + } }, - "resultType" : "com.axonivy.connector.docuware.connector.DocuWareProperties", - "responseCode" : [ - "import com.axonivy.connector.docuware.connector.demo.enums.ItemType;", - "import com.axonivy.connector.docuware.connector.DocuWareProperty;", - "import com.axonivy.connector.docuware.connector.DocuWareProperties;", - "", - "out.properties = new DocuWareProperties();", - "for (DocuWareProperty property : result.properties) {", - " if (ItemType.INT.getValue() == property.itemElementName || ItemType.DECIMAL.getValue() == property.itemElementName || ItemType.STRING.getValue() == property.itemElementName) {", - " out.properties.properties.add(property);", - " }", - "}" - ] + "response" : { + "entity" : { + "type" : "com.axonivy.connector.docuware.connector.DocuWareProperties", + "code" : [ + "import com.axonivy.connector.docuware.connector.demo.enums.ItemType;", + "import com.axonivy.connector.docuware.connector.DocuWareProperty;", + "import com.axonivy.connector.docuware.connector.DocuWareProperties;", + "", + "out.properties = new DocuWareProperties();", + "for (DocuWareProperty property : result.properties) {", + " if (ItemType.INT.getValue() == property.itemElementName || ItemType.DECIMAL.getValue() == property.itemElementName || ItemType.STRING.getValue() == property.itemElementName) {", + " out.properties.properties.add(property);", + " }", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 248, "y" : 368 } @@ -185,9 +206,13 @@ "visual" : { "at" : { "x" : 280, "y" : 410 } }, - "connect" : { "id" : "f18", "to" : "f14", "via" : [ { "x" : 440, "y" : 410 } ] } + "connect" : [ + { "id" : "f18", "to" : "f14", "via" : [ { "x" : 440, "y" : 410 } ] } + ] } ], - "connect" : { "id" : "f16", "to" : "f14" } + "connect" : [ + { "id" : "f16", "to" : "f14" } + ] }, { "id" : "f14", "type" : "HtmlDialogEnd", diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFields.rddescriptor b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFields.rddescriptor deleted file mode 100644 index ae605f0..0000000 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFields.rddescriptor +++ /dev/null @@ -1,7 +0,0 @@ - - - - viewTechnology - JSF - - diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsData.d.json b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsData.d.json new file mode 100644 index 0000000..041d0df --- /dev/null +++ b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsData.d.json @@ -0,0 +1,32 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "UpdateDocumentFieldsData", + "namespace" : "com.axonivy.connector.docuware.connector.demo.component.UpdateDocumentFields", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "propertiesUpdate", + "type" : "com.axonivy.connector.docuware.connector.DocuWarePropertiesUpdate" + }, { + "name" : "documentId", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "fileCabinetId", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + }, { + "name" : "property", + "type" : "com.axonivy.connector.docuware.connector.DocuWareProperty" + }, { + "name" : "propertiesJson", + "type" : "String", + "modifiers" : [ "PERSISTENT" ] + }, { + "name" : "isUpdateSuccess", + "type" : "Boolean", + "modifiers" : [ "PERSISTENT" ] + } ] +} \ No newline at end of file diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsData.ivyClass b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsData.ivyClass deleted file mode 100644 index 61baa76..0000000 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsData.ivyClass +++ /dev/null @@ -1,16 +0,0 @@ -UpdateDocumentFieldsData #class -com.axonivy.connector.docuware.connector.demo.component.UpdateDocumentFields #namespace -propertiesUpdate com.axonivy.connector.docuware.connector.DocuWarePropertiesUpdate #field -propertiesUpdate PERSISTENT #fieldModifier -documentId String #field -documentId PERSISTENT #fieldModifier -fileCabinetId String #field -fileCabinetId PERSISTENT #fieldModifier -error ch.ivyteam.ivy.bpm.error.BpmError #field -error PERSISTENT #fieldModifier -property com.axonivy.connector.docuware.connector.DocuWareProperty #field -property PERSISTENT #fieldModifier -propertiesJson String #field -propertiesJson PERSISTENT #fieldModifier -isUpdateSuccess Boolean #field -isUpdateSuccess PERSISTENT #fieldModifier diff --git a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsProcess.p.json b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsProcess.p.json index 63ed22b..44d01e2 100644 --- a/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsProcess.p.json +++ b/docuware-connector-demo/src_hd/com/axonivy/connector/docuware/connector/demo/component/UpdateDocumentFields/UpdateDocumentFieldsProcess.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1934E36FC1255A2B", "kind" : "HTML_DIALOG", "config" : { @@ -10,13 +10,15 @@ "type" : "HtmlDialogStart", "name" : "start()", "config" : { - "callSignature" : "start", + "signature" : "start", "guid" : "1934E36FC13A6D02" }, "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f1", "type" : "HtmlDialogEnd", @@ -33,7 +35,9 @@ "visual" : { "at" : { "x" : 96, "y" : 160 } }, - "connect" : { "id" : "f5", "to" : "f4" } + "connect" : [ + { "id" : "f5", "to" : "f4" } + ] }, { "id" : "f4", "type" : "HtmlDialogExit", @@ -45,11 +49,11 @@ "type" : "HtmlDialogMethodStart", "name" : "updateDocumentProperties", "config" : { - "callSignature" : "updateDocumentProperties", + "signature" : "updateDocumentProperties", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "fileCabinetId", "type" : "String" } + { "name" : "documentId", "type" : "String", "desc" : "" }, + { "name" : "fileCabinetId", "type" : "String", "desc" : "" } ], "map" : { "out.documentId" : "param.documentId", @@ -62,44 +66,56 @@ "at" : { "x" : 96, "y" : 256 }, "labelOffset" : { "x" : 11, "y" : 35 } }, - "connect" : { "id" : "f9", "to" : "f8" } + "connect" : [ + { "id" : "f9", "to" : "f8" } + ] }, { "id" : "f14", "type" : "RestClientCall", "name" : "Update Document Properties", "config" : { - "bodyRaw" : "<%=in.propertiesJson%>", - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}/Fields", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", "method" : "PUT", - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields", - "templateParams" : { - "DocumentId" : "in.documentId", - "FileCabinetId" : "in.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}/Fields", + "templateParams" : { + "DocumentId" : "in.documentId", + "FileCabinetId" : "in.fileCabinetId" + } + }, + "body" : { + "type" : "RAW", + "raw" : "<%=in.propertiesJson%>", + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields" + } }, - "bodyInputType" : "RAW", - "responseCode" : [ - "import javax.faces.application.FacesMessage;", - "import javax.faces.context.FacesContext;", - "import com.axonivy.connector.docuware.connector.DocuWarePropertiesUpdate;", - "import javax.ws.rs.core.Response.Status.Family;", - "", - "out.propertiesUpdate = new DocuWarePropertiesUpdate();", - "out.isUpdateSuccess = false;", - "if (response != null) {", - " if(response.getStatusInfo().getFamily() == Family.SUCCESSFUL) {", - " ivy.log.info(\"in\");", - " out.isUpdateSuccess = true;", - " }", - "}" - ] + "response" : { + "entity" : { + "code" : [ + "import javax.faces.application.FacesMessage;", + "import javax.faces.context.FacesContext;", + "import com.axonivy.connector.docuware.connector.DocuWarePropertiesUpdate;", + "import javax.ws.rs.core.Response.Status.Family;", + "", + "out.propertiesUpdate = new DocuWarePropertiesUpdate();", + "out.isUpdateSuccess = false;", + "if (response != null) {", + " if(response.getStatusInfo().getFamily() == Family.SUCCESSFUL) {", + " ivy.log.info(\"in\");", + " out.isUpdateSuccess = true;", + " }", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 384, "y" : 256 } }, - "connect" : { "id" : "f7", "to" : "f6" } + "connect" : [ + { "id" : "f7", "to" : "f6" } + ] }, { "id" : "f11", "type" : "HtmlDialogMethodStart", @@ -108,10 +124,10 @@ "(DocuWareProperty)" ], "config" : { - "callSignature" : "addToPropertiesUpdate", + "signature" : "addToPropertiesUpdate", "input" : { "params" : [ - { "name" : "property", "type" : "com.axonivy.connector.docuware.connector.DocuWareProperty" } + { "name" : "property", "type" : "com.axonivy.connector.docuware.connector.DocuWareProperty", "desc" : "" } ], "map" : { "out.property" : "param.property" @@ -123,7 +139,9 @@ "at" : { "x" : 96, "y" : 360 }, "labelOffset" : { "x" : 11, "y" : 35 } }, - "connect" : { "id" : "f15", "to" : "f12" } + "connect" : [ + { "id" : "f15", "to" : "f12" } + ] }, { "id" : "f12", "type" : "Script", @@ -156,7 +174,9 @@ "visual" : { "at" : { "x" : 288, "y" : 360 } }, - "connect" : { "id" : "f19", "to" : "f17" } + "connect" : [ + { "id" : "f19", "to" : "f17" } + ] }, { "id" : "f17", "type" : "HtmlDialogEnd", @@ -180,7 +200,9 @@ "visual" : { "at" : { "x" : 224, "y" : 256 } }, - "connect" : { "id" : "f10", "to" : "f14" } + "connect" : [ + { "id" : "f10", "to" : "f14" } + ] }, { "id" : "f6", "type" : "HtmlDialogEnd", diff --git a/docuware-connector-demo/webContent/layouts/frame-10.xhtml b/docuware-connector-demo/webContent/layouts/frame-10.xhtml index 6366405..60babb0 100644 --- a/docuware-connector-demo/webContent/layouts/frame-10.xhtml +++ b/docuware-connector-demo/webContent/layouts/frame-10.xhtml @@ -32,7 +32,7 @@ and refence it below in the head part. - + diff --git a/docuware-connector-openapi/.settings/org.eclipse.core.resources.prefs b/docuware-connector-openapi/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/docuware-connector-openapi/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector-openapi/pom.xml b/docuware-connector-openapi/pom.xml index df17b4d..404a356 100644 --- a/docuware-connector-openapi/pom.xml +++ b/docuware-connector-openapi/pom.xml @@ -2,9 +2,10 @@ 4.0.0 com.docuware.connector.docuware docuware-openapi - 10.0.30-SNAPSHOT + 12.0.0-SNAPSHOT 11 + UTF-8 diff --git a/docuware-connector-product/.settings/org.eclipse.core.resources.prefs b/docuware-connector-product/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/docuware-connector-product/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector-product/pom.xml b/docuware-connector-product/pom.xml index db9e72e..564ae55 100644 --- a/docuware-connector-product/pom.xml +++ b/docuware-connector-product/pom.xml @@ -2,11 +2,12 @@ 4.0.0 com.axonivy.connector.docuware docuware-connector-product - 10.0.30-SNAPSHOT + 12.0.0-SNAPSHOT pom ../docuware-connector/config/variables.yaml + UTF-8 diff --git a/docuware-connector-server-mockup/.classpath b/docuware-connector-server-mockup/.classpath index cdf5ab4..8228714 100644 --- a/docuware-connector-server-mockup/.classpath +++ b/docuware-connector-server-mockup/.classpath @@ -5,12 +5,7 @@ - - - - - - + diff --git a/docuware-connector-server-mockup/.project b/docuware-connector-server-mockup/.project index be9c399..5f429fb 100644 --- a/docuware-connector-server-mockup/.project +++ b/docuware-connector-server-mockup/.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/docuware-connector-server-mockup/.settings/.jsdtscope b/docuware-connector-server-mockup/.settings/.jsdtscope deleted file mode 100644 index 869c01d..0000000 --- a/docuware-connector-server-mockup/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/docuware-connector-server-mockup/.settings/ch.ivyteam.ivy.designer.prefs b/docuware-connector-server-mockup/.settings/ch.ivyteam.ivy.designer.prefs index e85ddc2..a3b0064 100644 --- a/docuware-connector-server-mockup/.settings/ch.ivyteam.ivy.designer.prefs +++ b/docuware-connector-server-mockup/.settings/ch.ivyteam.ivy.designer.prefs @@ -1,4 +1,3 @@ -ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.docuware.dev.model.Data ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.docuware.dev.model -ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=100000 +ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=120001 eclipse.preferences.version=1 \ No newline at end of file diff --git a/docuware-connector-server-mockup/.settings/org.eclipse.core.resources.prefs b/docuware-connector-server-mockup/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/docuware-connector-server-mockup/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector-server-mockup/.settings/org.eclipse.jdt.core.prefs b/docuware-connector-server-mockup/.settings/org.eclipse.jdt.core.prefs index d4540a5..3a79233 100644 --- a/docuware-connector-server-mockup/.settings/org.eclipse.jdt.core.prefs +++ b/docuware-connector-server-mockup/.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/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.component b/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.component index 6d03abd..8026ff6 100644 --- a/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.component +++ b/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.component @@ -1,20 +1,10 @@ - - - - - - - - - - - + \ No newline at end of file diff --git a/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.project.facet.core.xml b/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.project.facet.core.xml index 156ecdb..621b1f8 100644 --- a/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/docuware-connector-server-mockup/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,6 @@ - - + - - + \ No newline at end of file diff --git a/docuware-connector-server-mockup/.settings/org.eclipse.wst.jsdt.ui.superType.container b/docuware-connector-server-mockup/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a..0000000 --- a/docuware-connector-server-mockup/.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/docuware-connector-server-mockup/.settings/org.eclipse.wst.jsdt.ui.superType.name b/docuware-connector-server-mockup/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b..0000000 --- a/docuware-connector-server-mockup/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/docuware-connector-server-mockup/config/variables.yaml b/docuware-connector-server-mockup/config/variables.yaml index 64c8fa0..4448394 100644 --- a/docuware-connector-server-mockup/config/variables.yaml +++ b/docuware-connector-server-mockup/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/docuware-connector-server-mockup/dataclasses/com/docuware/dev/model/Data.d.json b/docuware-connector-server-mockup/dataclasses/com/docuware/dev/model/Data.d.json new file mode 100644 index 0000000..9a61fbd --- /dev/null +++ b/docuware-connector-server-mockup/dataclasses/com/docuware/dev/model/Data.d.json @@ -0,0 +1,6 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "Data", + "namespace" : "com.docuware.dev.model", + "isBusinessCaseData" : false +} \ No newline at end of file diff --git a/docuware-connector-server-mockup/dataclasses/com/docuware/dev/model/Data.ivyClass b/docuware-connector-server-mockup/dataclasses/com/docuware/dev/model/Data.ivyClass deleted file mode 100644 index 475ad85..0000000 --- a/docuware-connector-server-mockup/dataclasses/com/docuware/dev/model/Data.ivyClass +++ /dev/null @@ -1,2 +0,0 @@ -Data #class -com.docuware.dev.model #namespace diff --git a/docuware-connector-server-mockup/pom.xml b/docuware-connector-server-mockup/pom.xml index 20fa7e4..77678f4 100644 --- a/docuware-connector-server-mockup/pom.xml +++ b/docuware-connector-server-mockup/pom.xml @@ -4,10 +4,11 @@ 4.0.0 com.axonivy.connector.docuware docuware-connector-server-mockup - 10.0.3-SNAPSHOT + 12.0.0-SNAPSHOT iar 10.0.16 + UTF-8 diff --git a/docuware-connector-test/.classpath b/docuware-connector-test/.classpath index 918cd98..a20a11f 100644 --- a/docuware-connector-test/.classpath +++ b/docuware-connector-test/.classpath @@ -5,12 +5,7 @@ - - - - - - + diff --git a/docuware-connector-test/.project b/docuware-connector-test/.project index f668ae9..f167a52 100644 --- a/docuware-connector-test/.project +++ b/docuware-connector-test/.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/docuware-connector-test/.settings/.jsdtscope b/docuware-connector-test/.settings/.jsdtscope deleted file mode 100644 index 869c01d..0000000 --- a/docuware-connector-test/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/docuware-connector-test/.settings/ch.ivyteam.ivy.designer.prefs b/docuware-connector-test/.settings/ch.ivyteam.ivy.designer.prefs index 352bdfb..0a0f8b6 100644 --- a/docuware-connector-test/.settings/ch.ivyteam.ivy.designer.prefs +++ b/docuware-connector-test/.settings/ch.ivyteam.ivy.designer.prefs @@ -1,4 +1,3 @@ -ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.market.docuware.connector.test.Data ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.market.docuware.connector.test -ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=100000 +ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=120001 eclipse.preferences.version=1 \ No newline at end of file diff --git a/docuware-connector-test/.settings/org.eclipse.core.resources.prefs b/docuware-connector-test/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/docuware-connector-test/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector-test/.settings/org.eclipse.jdt.core.prefs b/docuware-connector-test/.settings/org.eclipse.jdt.core.prefs index d4540a5..3a79233 100644 --- a/docuware-connector-test/.settings/org.eclipse.jdt.core.prefs +++ b/docuware-connector-test/.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/docuware-connector-test/.settings/org.eclipse.wst.common.component b/docuware-connector-test/.settings/org.eclipse.wst.common.component index 02199c0..c5d12d4 100644 --- a/docuware-connector-test/.settings/org.eclipse.wst.common.component +++ b/docuware-connector-test/.settings/org.eclipse.wst.common.component @@ -2,10 +2,9 @@ - - + \ No newline at end of file diff --git a/docuware-connector-test/.settings/org.eclipse.wst.common.project.facet.core.xml b/docuware-connector-test/.settings/org.eclipse.wst.common.project.facet.core.xml index 156ecdb..621b1f8 100644 --- a/docuware-connector-test/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/docuware-connector-test/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,6 @@ - - + - - + \ No newline at end of file diff --git a/docuware-connector-test/.settings/org.eclipse.wst.jsdt.ui.superType.container b/docuware-connector-test/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a..0000000 --- a/docuware-connector-test/.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/docuware-connector-test/.settings/org.eclipse.wst.jsdt.ui.superType.name b/docuware-connector-test/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b..0000000 --- a/docuware-connector-test/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/docuware-connector-test/config/variables.yaml b/docuware-connector-test/config/variables.yaml index d9ce3d6..b921dc1 100644 --- a/docuware-connector-test/config/variables.yaml +++ b/docuware-connector-test/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/docuware-connector-test/dataclasses/com/axonivy/market/docuware/connector/test/Data.d.json b/docuware-connector-test/dataclasses/com/axonivy/market/docuware/connector/test/Data.d.json new file mode 100644 index 0000000..3fa0bbb --- /dev/null +++ b/docuware-connector-test/dataclasses/com/axonivy/market/docuware/connector/test/Data.d.json @@ -0,0 +1,6 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "Data", + "namespace" : "com.axonivy.market.docuware.connector.test", + "isBusinessCaseData" : false +} \ No newline at end of file diff --git a/docuware-connector-test/dataclasses/com/axonivy/market/docuware/connector/test/Data.ivyClass b/docuware-connector-test/dataclasses/com/axonivy/market/docuware/connector/test/Data.ivyClass deleted file mode 100644 index 70bcd67..0000000 --- a/docuware-connector-test/dataclasses/com/axonivy/market/docuware/connector/test/Data.ivyClass +++ /dev/null @@ -1,2 +0,0 @@ -Data #class -com.axonivy.market.docuware.connector.test #namespace diff --git a/docuware-connector-test/pom.xml b/docuware-connector-test/pom.xml index 0398c02..ff8eeab 100644 --- a/docuware-connector-test/pom.xml +++ b/docuware-connector-test/pom.xml @@ -3,11 +3,12 @@ 4.0.0 com.axonivy.connector.docuware docuware-connector-test - 10.0.30-SNAPSHOT + 12.0.0-SNAPSHOT iar - 10.0.16 - 10.0.16 + 12.0.0 + UTF-8 + 12.0.1 diff --git a/docuware-connector-test/src_test/com/axonivy/market/docuware/connector/test/TestDocuWareConnector.java b/docuware-connector-test/src_test/com/axonivy/market/docuware/connector/test/TestDocuWareConnector.java index 0ba04a0..a9e5107 100644 --- a/docuware-connector-test/src_test/com/axonivy/market/docuware/connector/test/TestDocuWareConnector.java +++ b/docuware-connector-test/src_test/com/axonivy/market/docuware/connector/test/TestDocuWareConnector.java @@ -11,6 +11,7 @@ import ch.ivyteam.ivy.environment.AppFixture; import ch.ivyteam.ivy.rest.client.RestClient; import ch.ivyteam.ivy.rest.client.RestClient.Builder; +import ch.ivyteam.ivy.rest.client.RestClientFeature; import ch.ivyteam.ivy.rest.client.RestClients; import ch.ivyteam.ivy.scripting.objects.List; @@ -30,11 +31,11 @@ protected void prepareRestClient(IApplication app, AppFixture fixture) { .uri("http://{ivy.engine.host}:{ivy.engine.http.port}/{ivy.request.application}/api/docuWareMock") .description(restClient.description()).properties(restClient.properties()); // use test feature instead of real one - for (String feature : restClient.features()) { - if (feature.contains(OAuth2Feature.class.getCanonicalName())) { - feature = DocuWareOAuth2TestFeature.class.getCanonicalName(); + for (RestClientFeature feature : restClient.features()) { + if (feature.clazz().contains(OAuth2Feature.class.getCanonicalName())) { + feature = new RestClientFeature(DocuWareOAuth2TestFeature.class.getCanonicalName()); } - builder.feature(feature); + builder.feature(feature.clazz()); } builder.feature("ch.ivyteam.ivy.rest.client.security.CsrfHeaderFeature"); restClient = builder.toRestClient(); diff --git a/docuware-connector/.classpath b/docuware-connector/.classpath index f69a523..6060309 100644 --- a/docuware-connector/.classpath +++ b/docuware-connector/.classpath @@ -5,12 +5,7 @@ - - - - - - + diff --git a/docuware-connector/.project b/docuware-connector/.project index d111c6d..151263a 100644 --- a/docuware-connector/.project +++ b/docuware-connector/.project @@ -30,6 +30,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/docuware-connector/.settings/.jsdtscope b/docuware-connector/.settings/.jsdtscope deleted file mode 100644 index 869c01d..0000000 --- a/docuware-connector/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/docuware-connector/.settings/ch.ivyteam.ivy.designer.prefs b/docuware-connector/.settings/ch.ivyteam.ivy.designer.prefs index d503eaa..2e61c58 100644 --- a/docuware-connector/.settings/ch.ivyteam.ivy.designer.prefs +++ b/docuware-connector/.settings/ch.ivyteam.ivy.designer.prefs @@ -1,4 +1,4 @@ -ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.market.docuware.connector.Data ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.market.docuware.connector -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 \ No newline at end of file diff --git a/docuware-connector/.settings/org.eclipse.core.resources.prefs b/docuware-connector/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/docuware-connector/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/docuware-connector/.settings/org.eclipse.jdt.core.prefs b/docuware-connector/.settings/org.eclipse.jdt.core.prefs index d4540a5..3a79233 100644 --- a/docuware-connector/.settings/org.eclipse.jdt.core.prefs +++ b/docuware-connector/.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/docuware-connector/.settings/org.eclipse.wst.common.component b/docuware-connector/.settings/org.eclipse.wst.common.component index 7a7de7f..6c5b0bf 100644 --- a/docuware-connector/.settings/org.eclipse.wst.common.component +++ b/docuware-connector/.settings/org.eclipse.wst.common.component @@ -2,10 +2,9 @@ - - + \ No newline at end of file diff --git a/docuware-connector/.settings/org.eclipse.wst.common.project.facet.core.xml b/docuware-connector/.settings/org.eclipse.wst.common.project.facet.core.xml index 156ecdb..621b1f8 100644 --- a/docuware-connector/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/docuware-connector/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,8 +1,6 @@ - - + - - + \ No newline at end of file diff --git a/docuware-connector/.settings/org.eclipse.wst.jsdt.ui.superType.container b/docuware-connector/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a..0000000 --- a/docuware-connector/.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/docuware-connector/.settings/org.eclipse.wst.jsdt.ui.superType.name b/docuware-connector/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b..0000000 --- a/docuware-connector/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/docuware-connector/config/variables.yaml b/docuware-connector/config/variables.yaml index 8e8781b..d743d2a 100644 --- a/docuware-connector/config/variables.yaml +++ b/docuware-connector/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. @@ -9,33 +10,33 @@ Variables: docuwareConnector: # your docuware instance: e.g. 'acme.docuware.cloud' host: '' - + # The type of authorization grant to provide. # [enum: password, trusted, dwtoken ] grantType: 'password' - + # The username used for authenticating to DocuWare. username: '' - + # The password used for authenticating to DocuWare. # [password] password: '' - + # The Trusted username used for authenticating to DocuWare when GrantType is trusted. trustedUserName: '' - + # The password used for authenticating to DocuWare when GrantType is trusted. trustedUserPassword: '' - + # Use for getting a new DocuWare token by GrantType is dwtoken # Please start process startRequestALoginToken.ivp to generate a new LoginToken loginToken: '' - + # Your organization name organization: '' - + filecabinetid: '' - + # This property sets the maximum time (in milliseconds) that the client will wait when attempting to establish a connection with the server. # The value MUST be an instance convertible to Integer. A value of zero (0) is equivalent to an interval of infinity. - connectTimeout: 0 \ No newline at end of file + connectTimeout: 0 diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/Data.d.json b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/Data.d.json new file mode 100644 index 0000000..567680b --- /dev/null +++ b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/Data.d.json @@ -0,0 +1,6 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "Data", + "namespace" : "com.axonivy.market.docuware.connector", + "isBusinessCaseData" : false +} \ No newline at end of file diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/Data.ivyClass b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/Data.ivyClass deleted file mode 100644 index a4e1fee..0000000 --- a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/Data.ivyClass +++ /dev/null @@ -1,2 +0,0 @@ -Data #class -com.axonivy.market.docuware.connector #namespace diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DeleteServiceData.d.json b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DeleteServiceData.d.json new file mode 100644 index 0000000..ca61d5b --- /dev/null +++ b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DeleteServiceData.d.json @@ -0,0 +1,16 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "DeleteServiceData", + "namespace" : "com.axonivy.market.docuware.connector", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "documentId", + "type" : "String" + }, { + "name" : "configuration", + "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + } ] +} \ No newline at end of file diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DeleteServiceData.ivyClass b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DeleteServiceData.ivyClass deleted file mode 100644 index 6183230..0000000 --- a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DeleteServiceData.ivyClass +++ /dev/null @@ -1,5 +0,0 @@ -DeleteServiceData #class -com.axonivy.market.docuware.connector #namespace -documentId String #field -configuration com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration #field -error ch.ivyteam.ivy.bpm.error.BpmError #field diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DownloadServiceData.d.json b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DownloadServiceData.d.json new file mode 100644 index 0000000..ac38cf3 --- /dev/null +++ b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DownloadServiceData.d.json @@ -0,0 +1,25 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "DownloadServiceData", + "namespace" : "com.axonivy.market.docuware.connector", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "documentId", + "type" : "String" + }, { + "name" : "document", + "type" : "com.docuware.dev.schema._public.services.platform.Document" + }, { + "name" : "file", + "type" : "File" + }, { + "name" : "configuration", + "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + }, { + "name" : "downloadFolder", + "type" : "String" + } ] +} \ No newline at end of file diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DownloadServiceData.ivyClass b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DownloadServiceData.ivyClass deleted file mode 100644 index 25d492b..0000000 --- a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/DownloadServiceData.ivyClass +++ /dev/null @@ -1,8 +0,0 @@ -DownloadServiceData #class -com.axonivy.market.docuware.connector #namespace -documentId String #field -document com.docuware.dev.schema._public.services.platform.Document #field -file File #field -configuration com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration #field -error ch.ivyteam.ivy.bpm.error.BpmError #field -downloadFolder String #field \ No newline at end of file diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UpdateServiceData.d.json b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UpdateServiceData.d.json new file mode 100644 index 0000000..a5c30df --- /dev/null +++ b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UpdateServiceData.d.json @@ -0,0 +1,28 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "UpdateServiceData", + "namespace" : "com.axonivy.market.docuware.connector", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "documentId", + "type" : "String" + }, { + "name" : "indexFields", + "type" : "List" + }, { + "name" : "document", + "type" : "com.docuware.dev.schema._public.services.platform.Document" + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + }, { + "name" : "propertiesJson", + "type" : "String" + }, { + "name" : "configuration", + "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" + }, { + "name" : "documentIndexFields", + "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields" + } ] +} \ No newline at end of file diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UpdateServiceData.ivyClass b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UpdateServiceData.ivyClass deleted file mode 100644 index 91c8c5a..0000000 --- a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UpdateServiceData.ivyClass +++ /dev/null @@ -1,9 +0,0 @@ -UpdateServiceData #class -com.axonivy.market.docuware.connector #namespace -documentId String #field -indexFields List #field -document com.docuware.dev.schema._public.services.platform.Document #field -error ch.ivyteam.ivy.bpm.error.BpmError #field -propertiesJson String #field -configuration com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration #field -documentIndexFields com.docuware.dev.schema._public.services.platform.DocumentIndexFields #field diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UploadServiceData.d.json b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UploadServiceData.d.json new file mode 100644 index 0000000..bac7772 --- /dev/null +++ b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UploadServiceData.d.json @@ -0,0 +1,31 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "UploadServiceData", + "namespace" : "com.axonivy.market.docuware.connector", + "isBusinessCaseData" : false, + "fields" : [ { + "name" : "uploadFile", + "type" : "java.io.File" + }, { + "name" : "propertiesList", + "type" : "List" + }, { + "name" : "error", + "type" : "ch.ivyteam.ivy.bpm.error.BpmError" + }, { + "name" : "document", + "type" : "com.docuware.dev.schema._public.services.platform.Document" + }, { + "name" : "fileCabinetId", + "type" : "String" + }, { + "name" : "configuration", + "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" + }, { + "name" : "file", + "type" : "List" + }, { + "name" : "filename", + "type" : "String" + } ] +} \ No newline at end of file diff --git a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UploadServiceData.ivyClass b/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UploadServiceData.ivyClass deleted file mode 100644 index 2aa94a5..0000000 --- a/docuware-connector/dataclasses/com/axonivy/market/docuware/connector/UploadServiceData.ivyClass +++ /dev/null @@ -1,10 +0,0 @@ -UploadServiceData #class -com.axonivy.market.docuware.connector #namespace -uploadFile java.io.File #field -propertiesList List #field -error ch.ivyteam.ivy.bpm.error.BpmError #field -document com.docuware.dev.schema._public.services.platform.Document #field -fileCabinetId String #field -configuration com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration #field -file List #field -filename String #field \ No newline at end of file diff --git a/docuware-connector/pom.xml b/docuware-connector/pom.xml index 1c41253..3077f1c 100644 --- a/docuware-connector/pom.xml +++ b/docuware-connector/pom.xml @@ -3,10 +3,11 @@ 4.0.0 com.axonivy.connector.docuware docuware-connector - 10.0.30-SNAPSHOT + 12.0.0-SNAPSHOT iar - 10.0.16 + 12.0.0 + UTF-8 diff --git a/docuware-connector/processes/DeleteService.p.json b/docuware-connector/processes/DeleteService.p.json index 89c3db9..3b2031c 100644 --- a/docuware-connector/processes/DeleteService.p.json +++ b/docuware-connector/processes/DeleteService.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "18516121B5CC015E", "kind" : "CALLABLE_SUB", "config" : { @@ -10,10 +10,10 @@ "type" : "CallSubStart", "name" : "deleteDocument(String)", "config" : { - "callSignature" : "deleteDocument", + "signature" : "deleteDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" } + { "name" : "documentId", "type" : "String", "desc" : "" } ], "map" : { "out.documentId" : "param.#documentId" @@ -21,7 +21,7 @@ }, "result" : { "params" : [ - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.error" : "in.#error" @@ -31,7 +31,9 @@ "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f4", "to" : "f3" } + "connect" : [ + { "id" : "f4", "to" : "f3" } + ] }, { "id" : "f1", "type" : "CallSubEnd", @@ -53,36 +55,42 @@ "visual" : { "at" : { "x" : 328, "y" : 64 } }, - "connect" : { "id" : "f6", "to" : "f5" } + "connect" : [ + { "id" : "f6", "to" : "f5" } + ] }, { "id" : "f5", "type" : "RestClientCall", "name" : "delete", "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", "method" : "DELETE", - "statusErrorCode" : "ivy:error:rest:client", - "templateParams" : { - "DocumentId" : "in.documentId", - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", + "templateParams" : { + "DocumentId" : "in.documentId", + "FileCabinetId" : "in.configuration.fileCabinetId" + } }, - "responseCode" : [ - "import com.axonivy.connector.docuware.connector.DocuWareConstants;", - "import ch.ivyteam.ivy.bpm.error.BpmError;", - "import com.axonivy.connector.docuware.connector.DocuWareException;", - "import com.axonivy.connector.docuware.connector.DocuWareService;", - "import javax.ws.rs.core.Response.Status.Family;", - "", - "if(response != null){", - " if(response.getStatusInfo().getFamily() != Family.SUCCESSFUL){", - " DocuWareException dex = DocuWareService.handleError(response);", - " out.error = BpmError.create(DocuWareConstants.ERROR_BASE).withMessage(dex.getErrorMessage()).build();", - " out.error.setAttribute(DocuWareConstants.RESPONSE_STATUS_CODE_ATTRIBUTE, dex.getHttpCode());", - " }", - "}" - ] + "response" : { + "entity" : { + "code" : [ + "import com.axonivy.connector.docuware.connector.DocuWareConstants;", + "import ch.ivyteam.ivy.bpm.error.BpmError;", + "import com.axonivy.connector.docuware.connector.DocuWareException;", + "import com.axonivy.connector.docuware.connector.DocuWareService;", + "import javax.ws.rs.core.Response.Status.Family;", + "", + "if(response != null){", + " if(response.getStatusInfo().getFamily() != Family.SUCCESSFUL){", + " DocuWareException dex = DocuWareService.handleError(response);", + " out.error = BpmError.create(DocuWareConstants.ERROR_BASE).withMessage(dex.getErrorMessage()).build();", + " out.error.setAttribute(DocuWareConstants.RESPONSE_STATUS_CODE_ATTRIBUTE, dex.getHttpCode());", + " }", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 544, "y" : 64 }, @@ -102,19 +110,23 @@ "visual" : { "at" : { "x" : 576, "y" : 104 } }, - "connect" : { "id" : "f12", "to" : "f1" } + "connect" : [ + { "id" : "f12", "to" : "f1" } + ] } ], - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f7", "type" : "CallSubStart", "name" : "deleteDocument(String, DocuWareEndpointConfiguration)", "config" : { - "callSignature" : "call", + "signature" : "call", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } + { "name" : "documentId", "type" : "String", "desc" : "" }, + { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration", "desc" : "" } ], "map" : { "out.configuration" : "param.configuration", @@ -123,7 +135,7 @@ }, "result" : { "params" : [ - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.error" : "in.#error" @@ -134,7 +146,9 @@ "at" : { "x" : 96, "y" : 144 }, "labelOffset" : { "x" : 17, "y" : 33 } }, - "connect" : { "id" : "f9", "to" : "f8" } + "connect" : [ + { "id" : "f9", "to" : "f8" } + ] }, { "id" : "f8", "type" : "Script", @@ -151,6 +165,8 @@ "visual" : { "at" : { "x" : 328, "y" : 144 } }, - "connect" : { "id" : "f10", "to" : "f5", "via" : [ { "x" : 432, "y" : 144 }, { "x" : 432, "y" : 64 } ] } + "connect" : [ + { "id" : "f10", "to" : "f5", "via" : [ { "x" : 432, "y" : 144 }, { "x" : 432, "y" : 64 } ] } + ] } ] } \ No newline at end of file diff --git a/docuware-connector/processes/DownloadService.p.json b/docuware-connector/processes/DownloadService.p.json index 1397205..cac0b82 100644 --- a/docuware-connector/processes/DownloadService.p.json +++ b/docuware-connector/processes/DownloadService.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1851611E5B63DEE0", "kind" : "CALLABLE_SUB", "config" : { @@ -10,10 +10,10 @@ "type" : "CallSubStart", "name" : "getDocument", "config" : { - "callSignature" : "getDocument", + "signature" : "getDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" } + { "name" : "documentId", "type" : "String", "desc" : "" } ], "map" : { "out.documentId" : "param.#documentId" @@ -21,8 +21,8 @@ }, "result" : { "params" : [ - { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.document" : "in.#document", @@ -33,7 +33,9 @@ "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f4", "to" : "f3" } + "connect" : [ + { "id" : "f4", "to" : "f3" } + ] }, { "id" : "f1", "type" : "CallSubEnd", @@ -55,24 +57,30 @@ "visual" : { "at" : { "x" : 224, "y" : 64 } }, - "connect" : { "id" : "f6", "to" : "f5" } + "connect" : [ + { "id" : "f6", "to" : "f5" } + ] }, { "id" : "f5", "type" : "RestClientCall", "name" : "get document", "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "statusErrorCode" : "ivy:error:rest:client", - "responseMapping" : { - "out.document" : "result" - }, - "templateParams" : { - "DocumentId" : "in.documentId", - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}", + "templateParams" : { + "DocumentId" : "in.documentId", + "FileCabinetId" : "in.configuration.fileCabinetId" + } }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Document" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Document", + "map" : { + "out.document" : "result" + } + } + } }, "visual" : { "at" : { "x" : 456, "y" : 64 }, @@ -92,9 +100,13 @@ "visual" : { "at" : { "x" : 496, "y" : 98 } }, - "connect" : { "id" : "f15", "to" : "f1" } + "connect" : [ + { "id" : "f15", "to" : "f1" } + ] } ], - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f8", "type" : "Script", @@ -110,7 +122,9 @@ "visual" : { "at" : { "x" : 224, "y" : 264 } }, - "connect" : { "id" : "f18", "to" : "f17" } + "connect" : [ + { "id" : "f18", "to" : "f17" } + ] }, { "id" : "f12", "type" : "CallSubEnd", @@ -122,10 +136,10 @@ "type" : "CallSubStart", "name" : "downloadFile(String)", "config" : { - "callSignature" : "downloadFile", + "signature" : "downloadFile", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" } + { "name" : "documentId", "type" : "String", "desc" : "" } ], "map" : { "out.documentId" : "param.#documentId" @@ -133,8 +147,8 @@ }, "result" : { "params" : [ - { "name" : "file", "type" : "File" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "file", "type" : "File", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.file" : "in.#file", @@ -145,22 +159,42 @@ "visual" : { "at" : { "x" : 88, "y" : 264 } }, - "connect" : { "id" : "f9", "to" : "f8" } + "connect" : [ + { "id" : "f9", "to" : "f8" } + ] }, { "id" : "f17", "type" : "RestClientCall", "name" : "download file", "config" : { - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}/FileDownload", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", - "method" : "GET", - "queryParams" : { - "targetFileType" : "", - "keepAnnotations" : "" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}/FileDownload", + "templateParams" : { + "DocumentId" : "in.#documentId", + "FileCabinetId" : "in.configuration.fileCabinetId" + }, + "queryParams" : { + "targetFileType" : "", + "keepAnnotations" : "" + } }, - "statusErrorCode" : "ivy:error:rest:client", - "clientCode" : [ + "response" : { + "entity" : { + "type" : "[B", + "code" : [ + "import org.apache.commons.lang3.StringUtils;", + "import com.axonivy.connector.docuware.connector.DocuWareService;", + "", + "String filename = DocuWareService.getFilenameFromResponseHeader(response);", + "", + "in.file = new File(filename, true);", + "in.file.createNewFile();", + "in.file.writeBinary(result);" + ] + } + }, + "code" : [ "import com.axonivy.connector.docuware.connector.DocuWareService;", "import com.axonivy.connector.docuware.connector.DocuWareDownloadResult;", "", @@ -169,21 +203,6 @@ "", "in.file = result.#file;", "in.error = result.#error;" - ], - "templateParams" : { - "DocumentId" : "in.#documentId", - "FileCabinetId" : "in.configuration.fileCabinetId" - }, - "resultType" : "[B", - "responseCode" : [ - "import org.apache.commons.lang3.StringUtils;", - "import com.axonivy.connector.docuware.connector.DocuWareService;", - "", - "String filename = DocuWareService.getFilenameFromResponseHeader(response);", - "", - "in.file = new File(filename, true);", - "in.file.createNewFile();", - "in.file.writeBinary(result);" ] }, "visual" : { @@ -204,19 +223,23 @@ "visual" : { "at" : { "x" : 488, "y" : 304 } }, - "connect" : { "id" : "f20", "to" : "f12" } + "connect" : [ + { "id" : "f20", "to" : "f12" } + ] } ], - "connect" : { "id" : "f11", "to" : "f12" } + "connect" : [ + { "id" : "f11", "to" : "f12" } + ] }, { "id" : "f10", "type" : "CallSubStart", "name" : "getDocument(String,DocuWareEndpointConfiguration)", "config" : { - "callSignature" : "getDocument", + "signature" : "getDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } + { "name" : "documentId", "type" : "String", "desc" : "" }, + { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration", "desc" : "" } ], "map" : { "out.configuration" : "param.configuration", @@ -225,8 +248,8 @@ }, "result" : { "params" : [ - { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.document" : "in.#document", @@ -237,7 +260,9 @@ "visual" : { "at" : { "x" : 96, "y" : 160 } }, - "connect" : { "id" : "f16", "to" : "f13" } + "connect" : [ + { "id" : "f16", "to" : "f13" } + ] }, { "id" : "f13", "type" : "Script", @@ -254,17 +279,19 @@ "visual" : { "at" : { "x" : 224, "y" : 160 } }, - "connect" : { "id" : "f21", "to" : "f5", "via" : [ { "x" : 336, "y" : 152 }, { "x" : 336, "y" : 64 } ] } + "connect" : [ + { "id" : "f21", "to" : "f5", "via" : [ { "x" : 336, "y" : 152 }, { "x" : 336, "y" : 64 } ] } + ] }, { "id" : "f22", "type" : "CallSubStart", "name" : "downloadFile(String,DocuWareEndpointConfiguration)", "config" : { - "callSignature" : "downloadFile", + "signature" : "downloadFile", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "configration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } + { "name" : "documentId", "type" : "String", "desc" : "" }, + { "name" : "configration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration", "desc" : "" } ], "map" : { "out.configuration" : "param.configration", @@ -273,8 +300,8 @@ }, "result" : { "params" : [ - { "name" : "file", "type" : "File" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "file", "type" : "File", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.file" : "in.#file", @@ -285,7 +312,9 @@ "visual" : { "at" : { "x" : 80, "y" : 368 } }, - "connect" : { "id" : "f24", "to" : "f23" } + "connect" : [ + { "id" : "f24", "to" : "f23" } + ] }, { "id" : "f23", "type" : "Script", @@ -302,6 +331,8 @@ "visual" : { "at" : { "x" : 224, "y" : 368 } }, - "connect" : { "id" : "f25", "to" : "f17", "via" : [ { "x" : 336, "y" : 368 }, { "x" : 336, "y" : 264 } ] } + "connect" : [ + { "id" : "f25", "to" : "f17", "via" : [ { "x" : 336, "y" : 368 }, { "x" : 336, "y" : 264 } ] } + ] } ] } \ No newline at end of file diff --git a/docuware-connector/processes/LoginToken.p.json b/docuware-connector/processes/LoginToken.p.json index 704f57f..69a2919 100644 --- a/docuware-connector/processes/LoginToken.p.json +++ b/docuware-connector/processes/LoginToken.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1931A02E32E55FFF", "config" : { "data" : "com.axonivy.market.docuware.connector.Data" @@ -9,15 +9,17 @@ "type" : "RequestStart", "name" : "startRequestALoginToken.ivp", "config" : { - "callSignature" : "startRequestALoginToken", - "outLink" : "startRequestALoginToken.ivp", - "startName" : "<%=ivy.cms.co(\"/Processes/LoginToken/name\")%>", - "case" : { } + "signature" : "startRequestALoginToken", + "request" : { + "name" : "<%=ivy.cms.co(\"/Processes/LoginToken/name\")%>" + } }, "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f4", "to" : "f3" } + "connect" : [ + { "id" : "f4", "to" : "f3" } + ] }, { "id" : "f1", "type" : "TaskEnd", @@ -29,12 +31,13 @@ "type" : "DialogCall", "name" : "Request a LoginToken", "config" : { - "dialogId" : "com.axonivy.market.docuware.connector.RequestLoginToken", - "startMethod" : "start()" + "dialog" : "com.axonivy.market.docuware.connector.RequestLoginToken:start()" }, "visual" : { "at" : { "x" : 224, "y" : 64 } }, - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] } ] } \ No newline at end of file diff --git a/docuware-connector/processes/UpdateService.p.json b/docuware-connector/processes/UpdateService.p.json index ab96856..4ed00af 100644 --- a/docuware-connector/processes/UpdateService.p.json +++ b/docuware-connector/processes/UpdateService.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "185160FC199C1871", "kind" : "CALLABLE_SUB", "config" : { @@ -10,11 +10,11 @@ "type" : "CallSubStart", "name" : "updateDocument", "config" : { - "callSignature" : "updateDocument", + "signature" : "updateDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "indexFields", "type" : "List" } + { "name" : "documentId", "type" : "String", "desc" : "" }, + { "name" : "indexFields", "type" : "List", "desc" : "" } ], "map" : { "out.documentId" : "param.#documentId", @@ -23,8 +23,8 @@ }, "result" : { "params" : [ - { "name" : "documentIndexFields", "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "documentIndexFields", "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.documentIndexFields" : "in.#documentIndexFields", @@ -36,7 +36,9 @@ "at" : { "x" : 96, "y" : 64 }, "labelOffset" : { "x" : 17, "y" : 33 } }, - "connect" : { "id" : "f8", "to" : "f7" } + "connect" : [ + { "id" : "f8", "to" : "f7" } + ] }, { "id" : "f1", "type" : "CallSubEnd", @@ -62,43 +64,53 @@ "visual" : { "at" : { "x" : 384, "y" : 64 } }, - "connect" : { "id" : "f6", "to" : "f5" } + "connect" : [ + { "id" : "f6", "to" : "f5" } + ] }, { "id" : "f5", "type" : "RestClientCall", "name" : "update document", "config" : { - "bodyRaw" : "<%=in.propertiesJson%>", - "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}/Fields", - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", - "clientErrorCode" : "ivy:error:rest:client", "method" : "PUT", - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields", - "templateParams" : { - "DocumentId" : "in.#documentId", - "FileCabinetId" : "in.configuration.fileCabinetId" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents/{DocumentId}/Fields", + "templateParams" : { + "DocumentId" : "in.#documentId", + "FileCabinetId" : "in.configuration.fileCabinetId" + } + }, + "body" : { + "type" : "RAW", + "raw" : "<%=in.propertiesJson%>", + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields" + } }, - "bodyInputType" : "RAW", - "responseCode" : [ - "import com.docuware.dev.schema._public.services.platform.DocumentIndexFields;", - "import com.docuware.dev.schema._public.services.platform.Document;", - "import com.axonivy.connector.docuware.connector.DocuWareConstants;", - "import ch.ivyteam.ivy.bpm.error.BpmError;", - "import com.axonivy.connector.docuware.connector.DocuWareException;", - "import com.axonivy.connector.docuware.connector.DocuWareService;", - "import javax.ws.rs.core.Response.Status.Family;", - "", - "if(response != null){", - " if(response.getStatusInfo().getFamily() != Family.SUCCESSFUL){", - " DocuWareException dex = DocuWareService.handleError(response);", - " out.error = BpmError.create(DocuWareConstants.ERROR_BASE).withMessage(dex.getErrorMessage()).build();", - " out.error.setAttribute(DocuWareConstants.RESPONSE_STATUS_CODE_ATTRIBUTE, dex.getHttpCode());", - " }else{", - " in.documentIndexFields = response.readEntity(DocumentIndexFields.class) as DocumentIndexFields ;", - " }", - "}" - ] + "response" : { + "entity" : { + "code" : [ + "import com.docuware.dev.schema._public.services.platform.DocumentIndexFields;", + "import com.docuware.dev.schema._public.services.platform.Document;", + "import com.axonivy.connector.docuware.connector.DocuWareConstants;", + "import ch.ivyteam.ivy.bpm.error.BpmError;", + "import com.axonivy.connector.docuware.connector.DocuWareException;", + "import com.axonivy.connector.docuware.connector.DocuWareService;", + "import javax.ws.rs.core.Response.Status.Family;", + "", + "if(response != null){", + " if(response.getStatusInfo().getFamily() != Family.SUCCESSFUL){", + " DocuWareException dex = DocuWareService.handleError(response);", + " out.error = BpmError.create(DocuWareConstants.ERROR_BASE).withMessage(dex.getErrorMessage()).build();", + " out.error.setAttribute(DocuWareConstants.RESPONSE_STATUS_CODE_ATTRIBUTE, dex.getHttpCode());", + " }else{", + " in.documentIndexFields = response.readEntity(DocumentIndexFields.class) as DocumentIndexFields ;", + " }", + "}" + ] + } + } }, "visual" : { "at" : { "x" : 544, "y" : 64 }, @@ -119,9 +131,13 @@ "visual" : { "at" : { "x" : 576, "y" : 104 } }, - "connect" : { "id" : "f14", "to" : "f1" } + "connect" : [ + { "id" : "f14", "to" : "f1" } + ] } ], - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f7", "type" : "Script", @@ -138,18 +154,20 @@ "visual" : { "at" : { "x" : 224, "y" : 64 } }, - "connect" : { "id" : "f4", "to" : "f3" } + "connect" : [ + { "id" : "f4", "to" : "f3" } + ] }, { "id" : "f9", "type" : "CallSubStart", "name" : "updateDocument(Integer, List, DocuWareEndpointConfiguration)", "config" : { - "callSignature" : "updateDocument", + "signature" : "updateDocument", "input" : { "params" : [ - { "name" : "documentId", "type" : "String" }, - { "name" : "indexFields", "type" : "List" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } + { "name" : "documentId", "type" : "String", "desc" : "" }, + { "name" : "indexFields", "type" : "List", "desc" : "" }, + { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration", "desc" : "" } ], "map" : { "out.configuration" : "param.configuration", @@ -159,8 +177,8 @@ }, "result" : { "params" : [ - { "name" : "documentIndexFields", "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "documentIndexFields", "type" : "com.docuware.dev.schema._public.services.platform.DocumentIndexFields", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.documentIndexFields" : "in.#documentIndexFields", @@ -171,7 +189,9 @@ "visual" : { "at" : { "x" : 88, "y" : 160 } }, - "connect" : { "id" : "f11", "to" : "f10" } + "connect" : [ + { "id" : "f11", "to" : "f10" } + ] }, { "id" : "f10", "type" : "Script", @@ -188,6 +208,8 @@ "visual" : { "at" : { "x" : 224, "y" : 160 } }, - "connect" : { "id" : "f12", "to" : "f3", "via" : [ { "x" : 384, "y" : 160 } ] } + "connect" : [ + { "id" : "f12", "to" : "f3", "via" : [ { "x" : 384, "y" : 160 } ] } + ] } ] } \ No newline at end of file diff --git a/docuware-connector/processes/UploadService.p.json b/docuware-connector/processes/UploadService.p.json index ddae0a4..3b22a33 100644 --- a/docuware-connector/processes/UploadService.p.json +++ b/docuware-connector/processes/UploadService.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "185160DB09CAB190", "kind" : "CALLABLE_SUB", "config" : { @@ -10,11 +10,11 @@ "type" : "CallSubStart", "name" : "uploadFileWithIndexFields(File,List)", "config" : { - "callSignature" : "uploadFileWithIndexFields", + "signature" : "uploadFileWithIndexFields", "input" : { "params" : [ - { "name" : "file", "type" : "java.io.File" }, - { "name" : "indexFields", "type" : "List" } + { "name" : "file", "type" : "java.io.File", "desc" : "" }, + { "name" : "indexFields", "type" : "List", "desc" : "" } ], "map" : { "out.propertiesList" : "param.#indexFields", @@ -23,8 +23,8 @@ }, "result" : { "params" : [ - { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.document" : "in.#document", @@ -36,7 +36,9 @@ "at" : { "x" : 96, "y" : 64 }, "labelOffset" : { "x" : 121, "y" : 33 } }, - "connect" : { "id" : "f6", "to" : "f5" } + "connect" : [ + { "id" : "f6", "to" : "f5" } + ] }, { "id" : "f1", "type" : "CallSubEnd", @@ -48,21 +50,35 @@ "type" : "RestClientCall", "name" : "upload", "config" : { - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", "method" : "JAX_RS", - "queryParams" : { - "StoreDialogId" : "" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "FileCabinetId" : "in.configuration.fileCabinetId", + "host" : "" + }, + "queryParams" : { + "StoreDialogId" : "" + } + }, + "body" : { + "type" : "FORM", + "mediaType" : "multipart/form-data", + "form" : { + "document" : [ "" ], + "file[]" : [ "" ] + }, + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdDocumentsBody" + } }, - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdDocumentsBody", - "bodyInputType" : "FORM", - "bodyForm" : { - "document" : "", - "file[]" : "" + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Document" + } }, - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "clientErrorCode" : "ivy:error:rest:client", - "clientCode" : [ + "code" : [ "import ch.ivyteam.ivy.bpm.error.BpmError;", "import com.axonivy.connector.docuware.connector.DocuWareException;", "import com.axonivy.connector.docuware.connector.DocuWareService;", @@ -73,13 +89,7 @@ " in.error = BpmError.create(\"com:eon:ivy:shared:docuware:rest\").withMessage(dex.getErrorMessage()).build();", " ivy.log.error(\"Document upload failed. Error: \" + dex.getErrorMessage());", "}" - ], - "templateParams" : { - "FileCabinetId" : "in.configuration.fileCabinetId", - "host" : "" - }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Document", - "bodyMediaType" : "multipart/form-data" + ] }, "visual" : { "at" : { "x" : 632, "y" : 64 }, @@ -99,9 +109,13 @@ "visual" : { "at" : { "x" : 664, "y" : 106 } }, - "connect" : { "id" : "f23", "to" : "f1" } + "connect" : [ + { "id" : "f23", "to" : "f1" } + ] } ], - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f5", "type" : "Script", @@ -119,18 +133,20 @@ "visual" : { "at" : { "x" : 416, "y" : 64 } }, - "connect" : { "id" : "f30", "to" : "f3" } + "connect" : [ + { "id" : "f30", "to" : "f3" } + ] }, { "id" : "f7", "type" : "CallSubStart", "name" : "uploadFileWithIndexFields(List, List, String)", "config" : { - "callSignature" : "uploadFileWithIndexFields", + "signature" : "uploadFileWithIndexFields", "input" : { "params" : [ - { "name" : "file", "type" : "List" }, - { "name" : "indexFields", "type" : "List" }, - { "name" : "filename", "type" : "String" } + { "name" : "file", "type" : "List", "desc" : "" }, + { "name" : "indexFields", "type" : "List", "desc" : "" }, + { "name" : "filename", "type" : "String", "desc" : "" } ], "map" : { "out.file" : "param.#file", @@ -140,8 +156,8 @@ }, "result" : { "params" : [ - { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.document" : "in.#document", @@ -153,7 +169,9 @@ "at" : { "x" : 96, "y" : 240 }, "labelOffset" : { "x" : 97, "y" : 41 } }, - "connect" : { "id" : "f9", "to" : "f8" } + "connect" : [ + { "id" : "f9", "to" : "f8" } + ] }, { "id" : "f8", "type" : "Script", @@ -169,24 +187,40 @@ "visual" : { "at" : { "x" : 416, "y" : 240 } }, - "connect" : { "id" : "f11", "to" : "f10" } + "connect" : [ + { "id" : "f11", "to" : "f10" } + ] }, { "id" : "f10", "type" : "RestClientCall", "name" : "upload", "config" : { - "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", "method" : "JAX_RS", - "statusErrorCode" : "ivy:error:rest:client", - "bodyObjectType" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdDocumentsBody", - "bodyInputType" : "FORM", - "bodyForm" : { - "document" : "", - "file[]" : "" + "target" : { + "clientId" : "02d1eec1-32e9-4316-afc3-793448486203", + "path" : "/FileCabinets/{FileCabinetId}/Documents", + "templateParams" : { + "host" : "", + "FileCabinetId" : "in.configuration.fileCabinetId" + } + }, + "body" : { + "type" : "FORM", + "mediaType" : "multipart/form-data", + "form" : { + "document" : [ "" ], + "file[]" : [ "" ] + }, + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.FileCabinetIdDocumentsBody" + } }, - "path" : "/FileCabinets/{FileCabinetId}/Documents", - "clientErrorCode" : "ivy:error:rest:client", - "clientCode" : [ + "response" : { + "entity" : { + "type" : "com.docuware.dev.schema._public.services.platform.Document" + } + }, + "code" : [ "import ch.ivyteam.ivy.bpm.error.BpmError;", "import com.axonivy.connector.docuware.connector.DocuWareException;", "import com.axonivy.connector.docuware.connector.DocuWareService;", @@ -198,13 +232,7 @@ " in.error.setAttribute(\"RestClientResponseStatusCode\", dex.httpCode);", " ivy.log.error(\"Document upload failed. Error: \" + dex.getErrorMessage()); ", "}" - ], - "templateParams" : { - "host" : "", - "FileCabinetId" : "in.configuration.fileCabinetId" - }, - "resultType" : "com.docuware.dev.schema._public.services.platform.Document", - "bodyMediaType" : "multipart/form-data" + ] }, "visual" : { "at" : { "x" : 640, "y" : 240 }, @@ -224,9 +252,13 @@ "visual" : { "at" : { "x" : 672, "y" : 280 } }, - "connect" : { "id" : "f25", "to" : "f12" } + "connect" : [ + { "id" : "f25", "to" : "f12" } + ] } ], - "connect" : { "id" : "f13", "to" : "f12" } + "connect" : [ + { "id" : "f13", "to" : "f12" } + ] }, { "id" : "f12", "type" : "CallSubEnd", @@ -238,12 +270,12 @@ "type" : "CallSubStart", "name" : "uploadFileWithIndexFields(File, List, DocuwareConfiguration)", "config" : { - "callSignature" : "uploadFileWithIndexFields", + "signature" : "uploadFileWithIndexFields", "input" : { "params" : [ - { "name" : "file", "type" : "java.io.File" }, - { "name" : "indexFields", "type" : "List" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } + { "name" : "file", "type" : "java.io.File", "desc" : "" }, + { "name" : "indexFields", "type" : "List", "desc" : "" }, + { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration", "desc" : "" } ], "map" : { "out.configuration" : "param.configuration", @@ -253,8 +285,8 @@ }, "result" : { "params" : [ - { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.document" : "in.#document", @@ -266,7 +298,9 @@ "at" : { "x" : 96, "y" : 152 }, "labelOffset" : { "x" : 73, "y" : 33 } }, - "connect" : { "id" : "f16", "to" : "f15" } + "connect" : [ + { "id" : "f16", "to" : "f15" } + ] }, { "id" : "f15", "type" : "Script", @@ -283,19 +317,21 @@ "visual" : { "at" : { "x" : 416, "y" : 152 } }, - "connect" : { "id" : "f4", "to" : "f3", "via" : [ { "x" : 528, "y" : 152 }, { "x" : 528, "y" : 64 } ] } + "connect" : [ + { "id" : "f4", "to" : "f3", "via" : [ { "x" : 528, "y" : 152 }, { "x" : 528, "y" : 64 } ] } + ] }, { "id" : "f18", "type" : "CallSubStart", "name" : "uploadFileWithIndexFields(List, List, String, DocuWareEndpointConfiguration)", "config" : { - "callSignature" : "call", + "signature" : "call", "input" : { "params" : [ - { "name" : "file", "type" : "List" }, - { "name" : "indexFields", "type" : "List" }, - { "name" : "filename", "type" : "String" }, - { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration" } + { "name" : "file", "type" : "List", "desc" : "" }, + { "name" : "indexFields", "type" : "List", "desc" : "" }, + { "name" : "filename", "type" : "String", "desc" : "" }, + { "name" : "configuration", "type" : "com.axonivy.connector.docuware.connector.DocuWareEndpointConfiguration", "desc" : "" } ], "map" : { "out.configuration" : "param.configuration", @@ -306,8 +342,8 @@ }, "result" : { "params" : [ - { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document" }, - { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError" } + { "name" : "document", "type" : "com.docuware.dev.schema._public.services.platform.Document", "desc" : "" }, + { "name" : "error", "type" : "ch.ivyteam.ivy.bpm.error.BpmError", "desc" : "" } ], "map" : { "result.document" : "in.#document", @@ -319,7 +355,9 @@ "at" : { "x" : 96, "y" : 328 }, "labelOffset" : { "x" : 97, "y" : 41 } }, - "connect" : { "id" : "f20", "to" : "f19" } + "connect" : [ + { "id" : "f20", "to" : "f19" } + ] }, { "id" : "f19", "type" : "Script", @@ -336,6 +374,8 @@ "visual" : { "at" : { "x" : 416, "y" : 328 } }, - "connect" : { "id" : "f21", "to" : "f10", "via" : [ { "x" : 520, "y" : 328 }, { "x" : 520, "y" : 240 } ] } + "connect" : [ + { "id" : "f21", "to" : "f10", "via" : [ { "x" : 520, "y" : 328 }, { "x" : 520, "y" : 240 } ] } + ] } ] } \ No newline at end of file diff --git a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginToken.rddescriptor b/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginToken.rddescriptor deleted file mode 100644 index ae605f0..0000000 --- a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginToken.rddescriptor +++ /dev/null @@ -1,7 +0,0 @@ - - - - viewTechnology - JSF - - diff --git a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenData.d.json b/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenData.d.json new file mode 100644 index 0000000..9c53d7b --- /dev/null +++ b/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenData.d.json @@ -0,0 +1,6 @@ +{ + "$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json", + "simpleName" : "RequestLoginTokenData", + "namespace" : "com.axonivy.market.docuware.connector.RequestLoginToken", + "isBusinessCaseData" : false +} \ No newline at end of file diff --git a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenData.ivyClass b/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenData.ivyClass deleted file mode 100644 index 424797b..0000000 --- a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenData.ivyClass +++ /dev/null @@ -1,2 +0,0 @@ -RequestLoginTokenData #class -com.axonivy.market.docuware.connector.RequestLoginToken #namespace diff --git a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenProcess.p.json b/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenProcess.p.json index e9447b3..f412cfb 100644 --- a/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenProcess.p.json +++ b/docuware-connector/src_hd/com/axonivy/market/docuware/connector/RequestLoginToken/RequestLoginTokenProcess.p.json @@ -1,5 +1,5 @@ { - "format" : "10.0.0", + "$schema" : "https://json-schema.axonivy.com/process/12.0.0/process.json", "id" : "1931A003FA5983EB", "kind" : "HTML_DIALOG", "config" : { @@ -10,13 +10,15 @@ "type" : "HtmlDialogStart", "name" : "start()", "config" : { - "callSignature" : "start", + "signature" : "start", "guid" : "1931A003FA7807A3" }, "visual" : { "at" : { "x" : 96, "y" : 64 } }, - "connect" : { "id" : "f2", "to" : "f1" } + "connect" : [ + { "id" : "f2", "to" : "f1" } + ] }, { "id" : "f1", "type" : "HtmlDialogEnd", @@ -33,7 +35,9 @@ "visual" : { "at" : { "x" : 96, "y" : 160 } }, - "connect" : { "id" : "f5", "to" : "f4" } + "connect" : [ + { "id" : "f5", "to" : "f4" } + ] }, { "id" : "f4", "type" : "HtmlDialogExit", diff --git a/docuware-connector/webContent/layouts/frame-10.xhtml b/docuware-connector/webContent/layouts/frame-10.xhtml index caee274..be8785d 100644 --- a/docuware-connector/webContent/layouts/frame-10.xhtml +++ b/docuware-connector/webContent/layouts/frame-10.xhtml @@ -32,7 +32,7 @@ and refence it below in the head part. - +