{"id":31686,"date":"2018-01-09T16:03:16","date_gmt":"2018-01-10T00:03:16","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/2019-1-2\/developers\/external-applications\/"},"modified":"2021-02-18T11:25:49","modified_gmt":"2021-02-18T18:25:49","slug":"external-applications","status":"publish","type":"docs","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/developers\/external-applications\/","title":{"rendered":"External Applications"},"content":{"rendered":"
This page provides information on how to integrate external applications with the Transact Review<\/strong> and Validation<\/strong> modules.<\/p>\n Important: <\/strong>Before proceeding, read and agree to the Developer Disclaimer<\/a>.<\/p>\n External applications are technology-independent and can be written in any language, such as HTML, JavaScript, GWT, JSP, Servlet, or a combination thereof.<\/p>\n Transact interacts with external applications by appending the application\u2019s URL with the following two parameters:<\/p>\n The batch.xml <\/strong>path is encoded using java.net.URLEncoder and UTF-8 encoding. The following is a sample URL for an external application, as fired by Transact:<\/p>\n {Ext. App URL}&document_id={Document Identifier}&batch_xml_path={Path of batch.xml}&ticket={Security Token}<\/em><\/p>\n External applications need to include the following method in their code. They need to invoke this method on the respective button (ok or close) calls which they have implemented. External applications will signal Transact to perform a specified operation by passing the appropriate operation string in the method argument.<\/p>\n GWT-based applications:<\/strong><\/p>\n JavaScript-based applications:<\/strong><\/p>\n The following table describes the actions performed in Transact based on the arguments passed to this method in the external application’s code:<\/p>\n<\/a>Configuring an External Application<\/h2>\n
\n
private native void fireEvent(String operation) \/*-{\r\nwindow.top.postMessage(operation,\u201d*\u201d);\r\n}-*\/;<\/pre>\n
function fireEvent(var operation) {window.top.postmessage(operation, \"*\");}<\/pre>\n