From 94439691bf5939591c06ffd3faf2937d1bbe9d87 Mon Sep 17 00:00:00 2001 From: Hoan Nguyen Date: Thu, 29 Aug 2024 10:48:29 +0700 Subject: [PATCH] Adapt document --- .../DocumentSignatureProcess.p.json | 25 +++++++--------- a-trust-connector-product/README.md | 30 ++++++++++++++----- a-trust-connector-product/README_DE.md | 30 ++++++++++++++----- 3 files changed, 54 insertions(+), 31 deletions(-) diff --git a/a-trust-connector-demo/src_hd/com/axonivy/connector/atrust/demo/DocumentSignature/DocumentSignatureProcess.p.json b/a-trust-connector-demo/src_hd/com/axonivy/connector/atrust/demo/DocumentSignature/DocumentSignatureProcess.p.json index 42b6398..d452b4e 100644 --- a/a-trust-connector-demo/src_hd/com/axonivy/connector/atrust/demo/DocumentSignature/DocumentSignatureProcess.p.json +++ b/a-trust-connector-demo/src_hd/com/axonivy/connector/atrust/demo/DocumentSignature/DocumentSignatureProcess.p.json @@ -84,25 +84,20 @@ "\tsignatureJob.taskId = ivy.task.getId(); // Current request task id", "\tsignatureJob.documentName; // Document name", "\tsignatureJob.callbackUrlAfterSignature; // Call back url after signature, if leave with empty, the default callback url will be called", - "\tin.signatureJob.signDocument.document = file; // Document in File format", - "\tin.signatureJob.signDocument.location = \"Austria\"; // User location", - "\tin.signatureJob.signDocument.reason = \"Sign new doc\"; // Reason for this sign session", - "\tin.signatureJob.signDocument.page = \"1\"; // Number of page where stamp will be sign on", - "\tin.signatureJob.signDocument.x = \"30.7\"; // example for postion of stamp", - "\tin.signatureJob.signDocument.y = \"60.2\"; // example for postion of stamp", - "\tin.signatureJob.signDocument.w = \"5.5\"; // example for postion of stamp", + "\tin.signatureJob.location = \"Austria\"; // User location", + "\tin.signatureJob.reason = \"Sign new doc\"; // Reason for this sign session", + "\tin.signatureJob.pdfDocument;", + "\tin.signatureJob.signStampCoordinatesX0", + "\tin.signatureJob.signStampCoordinatesX1", + "\tin.signatureJob.signStampCoordinatesY0", + "\tin.signatureJob.signStampCoordinatesY1 = 14.4; // example for postion of stamp\t", + "\tin.signatureJob.signStampPageNumber;", "", "- The return object is SignatureDocumentData.", - "- After success, a document will be added to this case with the prefix SIGNED_ if the doc is signed.", + "- After success, a document will be added to this case with the prefix \"SIGNED_\" if the doc is signed.", "", "**DEPRECATED", - "- ATrust/StartSignature/call(SignatureJob) method", - "- signatureJob.pdfDocument;", - "- signatureJob.signStampCoordinatesX0", - "- signatureJob.signStampCoordinatesX1", - "- signatureJob.signStampCoordinatesY0", - "- signatureJob.signStampCoordinatesY1 = 14.4; // example for postion of stamp", - "- signatureJob.signStampPageNumber;" + "- ATrust/StartSignature/call(SignatureJob) method" ], "visual" : { "at" : { "x" : 456, "y" : 1287 }, diff --git a/a-trust-connector-product/README.md b/a-trust-connector-product/README.md index 55dcb64..a295149 100644 --- a/a-trust-connector-product/README.md +++ b/a-trust-connector-product/README.md @@ -66,14 +66,28 @@ Before any signing interactions between the **Axon Ivy Engine** and the **A-Trus ``` Variables: ATrust: - # API Key for "A-Trust Handysignature API" - APIKey: '' - # The Server URL under which the SigBox Server is reachable - ServerUrl: '' - # The SignBox belong to your ATrust server - SignBox: '' - # The default signature template ID to be used - TemplateId: 0 + # API Key for "A-Trust Handysignature API" + APIKey: '' + + # The Server URL under which the SigBox Server is reachable + ServerUrl: '' + + # The SignBox belong to your ATrust server + SignBox: '' + + # The default signature template ID to be used + TemplateId: 0 + + # To config the Handy-Signature view in iframe. The Details can be found on the A-Trust Website https://labs.a-trust.at/developer/Handy-Signatur.aspx. + HandySignaturParameter: + # For setting width of frame. + Width: 350 + # For setting height of frame. + Height: 350 + # For setting background color of frame. + BackgroundColor: 0 + # For setting phone number of frame. + PhoneNumber: 0 ``` 4. Save the changed settings. diff --git a/a-trust-connector-product/README_DE.md b/a-trust-connector-product/README_DE.md index cb620f5..6ab15d9 100644 --- a/a-trust-connector-product/README_DE.md +++ b/a-trust-connector-product/README_DE.md @@ -67,14 +67,28 @@ Before any signing interactions between the **Axon Ivy Engine** and the **A-Trus ``` Variables: ATrust: - # API Key for "A-Trust Handysignature API" - APIKey: '' - # The Server URL under which the SigBox Server is reachable - ServerUrl: '' - # The SignBox belong to your ATrust server - SignBox: '' - # The default signature template ID to be used - TemplateId: 0 + # API Key for "A-Trust Handysignature API" + APIKey: '' + + # The Server URL under which the SigBox Server is reachable + ServerUrl: '' + + # The SignBox belong to your ATrust server + SignBox: '' + + # The default signature template ID to be used + TemplateId: 0 + + # To config the Handy-Signature view in iframe. The Details can be found on the A-Trust Website https://labs.a-trust.at/developer/Handy-Signatur.aspx. + HandySignaturParameter: + # For setting width of frame. + Width: 350 + # For setting height of frame. + Height: 350 + # For setting background color of frame. + BackgroundColor: 0 + # For setting phone number of frame. + PhoneNumber: 0 ``` 4. Save the changed settings.