Legal Desk Synchronization Queue
LegalDesk is a system developed by the TOTVS branch JuriTIs with the purpose to provide an modern, friendlier interface for several manipulations performed by lawyers and associates on law offices. Among such manipulations are listed: entry oftime sheets, expenses, tabled entries, creation of temporary cases, pre-invoice review, among others.
With the probability of entries via LegalDesk and invoicing occurring via SIGAPFS, is necessary to integrate information between both systems. This way, the purpose of the synchronization queue is to make information submit to LegalDesk easier, controlling register changes and transactions performed on SIGAPFS and necessary to its functioning.
Any addition, change or deletion of entries intended for integration on SIGAPFS are registered on the synchronization queue. LegalDesk accesses the queue to check what must be updated on its base and is responsible for registering in this queue what was already updated.
Manipulations performed via LegalDesk, such as time sheets creation and expenses, are registered on SIGAPFS by the LegalDesk itself.
The usage of integration with LegalDesk is available from Microsiga Protheus 12 version and, for its usage, the REST server must be enabled on the Application Server of Protheus and the parameter MV_JFSINC must be configured with 1 = Yes.
REST Server Configuration
To enable REST within Microsiga Protheus®, change the configuration file appserver.ini with the following content.
To avoid conflicts, note the communication ports used:
[HTTPV11]
Enable=1
AddressFamily=1
Sockets=HTTPREST
TimeOut=120
[HTTPREST]
Port=8889
IPsBind=
MaxQueue=10
URIs=HTTPURI
SECURITY=0
[HTTPURI]
URL=/
PrepareIn=99,01
OnStart=REST_START
OnConnect=REST_CONNECT
OnExit=REST_EXIT
Instances=1,10
[ONSTART]
jobs=HTTPJOB
[HTTPJOB]
MAIN=HTTP_START
ENVIRONMENT=P12
The addition of item MAXSTRINGSIZE=10 is also necessary on [General] and FWFRAME_TRACELOG=0 on environment block.
The configuration mentioned above meets the REST standards of Protheus, therefore, if the resource is already enabled on Protheus, there is no need to perform any changes.
You may use HTTP Basic or Auth 1.0a authentication. With this purpose, change the item SECURITY [HTTPREST] to 1 or remove it.
For more information regarding the use of REST, check http://tdn.totvs.com/display/tec/REST .
Procedures
| 1. | In Legal Desk Synchronization Queue , view the screen with items of the sync queue. | 
| 2. | Data are automatically fed by the system. | 
| 3. | Each queue register is comprised by the following fields: | 
| • | Code: Sequence ID number of the register | 
| • | Model: Data model name changed. On the service table type example, it refers to JURA047. | 
| • | Key: Primary identification key of the data model record. In this and in most cases the key is comprised by branch + code. | 
| • | Operation: Operation code where, 3 is addition, 4 is change and 5 is deletion. | 
| • | TimeStamp: Manipulation time and date. | 
| • | Status: Register status where 1-Pending indicates that the LegalDesk system is not integrated yet and 2-Completed for when the register integration is already performed. Keeping in mind that the change of this status is under LegalDesk responsibility. | 
| 4. | On the left-hand upper side of the screen, you see these options: | 
| • | Find; | 
| • | Filter; | 
| • | Search; | 
| • | Print; | 
| • | Configure | 
See Also
Synchronization Parameters Legal Desk