From a925746e12fd50d144f70808b12621942723620b Mon Sep 17 00:00:00 2001
From: Daniel Tran <d.tran@adito.de>
Date: Fri, 30 Apr 2021 10:52:19 +0000
Subject: [PATCH] [Projekt: xRM-ContactManagement][TicketNr.:
 1048882][documentation zu Prozess emailWrite] - Added needed .adoc
 documentation for emailWrite process.

---
 process/emailWrite/documentation.adoc | 18 ++++++++++++++++++
 process/emailWrite/emailWrite.aod     |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 process/emailWrite/documentation.adoc

diff --git a/process/emailWrite/documentation.adoc b/process/emailWrite/documentation.adoc
new file mode 100644
index 0000000000..b26f9b3ea5
--- /dev/null
+++ b/process/emailWrite/documentation.adoc
@@ -0,0 +1,18 @@
+= emailWrite process
+
+This process is called from the ADITO platform, in order to handle mouseclicks
+on email addresses in the client. If the originating Entity is
+"Communication_entity", the EmailEdit_view will be opened, in order to enable
+the user to write a new email. In all other cases, the "mailto:" URL will be
+opened, which in turn opens the standard email client of the user's device.
+ 
+
+Variables of this process are:
+- entity
+- context
+- address
+- value
+- uid
+ 
+[NOTE]
+There exists an equivalent for CTI calls, named ctiCall.
\ No newline at end of file
diff --git a/process/emailWrite/emailWrite.aod b/process/emailWrite/emailWrite.aod
index a752349818..008853153c 100644
--- a/process/emailWrite/emailWrite.aod
+++ b/process/emailWrite/emailWrite.aod
@@ -2,6 +2,7 @@
 <process xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.2.2" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/process/1.2.2">
   <name>emailWrite</name>
   <majorModelMode>DISTRIBUTED</majorModelMode>
+  <documentation>%aditoprj%/process/emailWrite/documentation.adoc</documentation>
   <process>%aditoprj%/process/emailWrite/process.js</process>
   <alias>Data_alias</alias>
 </process>
-- 
GitLab