Preconditions
1. Create Greenrain Automation database schema
Create the required database tables by running the script.
2. Create Customer database schema
Create the required database tables by running the script.
3. Create record in PersonRegister table (Customer database)
Create record in the following format: Person Register Table (TransactionId=NULL).
Configuration
The following settings are required to be made for Person.Register transaction generation from Table in Customer Database:
1. Go to Greenrain Automation Settings
Log in to Greenrain Automation. Select "Settings" from the Toolbar → 'Greenrain Automation Settings' form opens.
Figure1.
2. Configure Person.Register tab
Figure2.
Select Person.Register tab and configure settings:
- 'Generate and upload Person.Register transactions to Shafafiya': should be checked.
- 'Processing interval' drop-down fills automatically with custom values. User can select an interval from the list, '30 minutes' for example.
- 'Choose where Greenrain Automation will get person register data from':
- 'DatabaseTable' value should be selected from drop-down list.
- 'Connection string to the database'. Click "Configure Database Connection..." button and set Database = Name of the Customer database (see Preconditions p.2). Click "OK" button (if you wish to test the connection string click the "Test Connection String" button.).
- 'Table name'. Specify the table from which you want to retrieve data (PersonRegister from Customer database, see Preconditions p.2).
- Click "Save" button.
3. Configure E-Mail Notifications tab
Figure3.
Users can be notified about the success or failure of transactions that are generated. If you'd like to get notifications select E-Mail Notifications tab and configure settings:
- 'Send e-mail notifications': should be checked.
- 'Use Greenrain SMTP server': should be checked.
- 'Failure notification addresses (comma separated)': here you can define the recipient email address(es) for where you want to receive an emailed notification about PersonRegister transaction generation from Greenrain Automation. If you wish to test the email notifications click the "Send test e-mail" link.
- Click "Save" button.
4. Configure Post Office Settings
Figure4.
Select Post Office Settings tab and check settings:
- 'Process claims from HAAD Post Office': unchecked.
- 'HAAD Post Office Settings':
- 'Post Office': the control is prefilled with configured PO (from Greenrain Messenger) to upload PersonRegister transaction.
- 'Active login': the control is prefilled with configured user login (from Greenrain Messenger) to upload PersonRegister transaction.
- 'Notification addresses for HAAD Post Office (comma separated)': the control is prefilled with user e-mail address(es).
- 'Process claims from DHA Post Office': unchecked.
- 'DHA Post Office Settings':
- 'Post Office': user can leave it blank.
- 'Active login': user can leave it blank.
- 'Notification addresses for DHA Post Office (comma separated)': the control is prefilled with user e-mail address(es).
- Click "Save" button.
5. Configure Database tab
Figure5.
Select Person.Register tab and configure settings:
- 'Greenrain Automation database connection':
- 'Connection string to the database'. Click "Configure Database Connection..." button and set Database = Name of the Greenrain Automation database (see Preconditions p.1). Click "OK" button (if you wish to test the connection string click the "Test Connection String" button.).
- 'Your claims database connection': see p.1.
- Click "Save" button.
Generate PersonRegister transaction
1. Go to Greenrain Automation Services
Select "Services" from the Toolbar → 'Greenrain Automation Services' form opens (reger to Figure1.).
2. Start the service
It allows to start a service after certain runtime configured on the Person Resister tab (refer to Configuration → 2. Configure Person.Register tab).
- Click "Start the service" link:
- 'Download Service Status' will be changed to RUNNING (marked with green).
- 'Stop the service' link will be displayed under the status.
- Click "Close" button.
Figure6.
"Run" link in the Toolbar allows a user to run the service at any time on demand (refer to Figure1.).
3. Check PersonRegister transaction
- check e-mail notification.
- check Greenrain Automation database
- check Customer database → TransactionId is updated with in PersonRegister table