...
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
This use case outlines the implementation of REST services to retrieve detailed data about file processing statues statutes and error handling within a system. The services are designed to provide specific metrics and information crucial for monitoring and managing file queues efficiently. |
...
This flow contains the following functionality:
First flow – It enables the advanced search option like
Default flow - It shows the last 30 days' records like errors, status, warnings, and good records
Last flow – It enables a search option with an emp name or SSN
...
User Interface (UI) Request:
A user interacts with the UI and triggers a request to view application data.
The UI sends a request to the backend service via the REST API.
API Endpoint Invocation:
The REST provider API receives the request and routes it to the appropriate endpoint.
The endpoint is configured to handle specific data queries and statuses (good records, error records, warnings, etc.).
Backend Service Initialization:
The API endpoint invokes the backend service responsible for processing the request.
The backend service starts by validating the incoming request parameters.
Data Retrieval:
The backend service queries the database or data storage to fetch the requested application data.
It retrieves data based on the requested criteria (e.g., all records, good records, error records, warnings).
Data Processing:
The backend service processes the retrieved data to format it according to the requirements.
It filters and categorizes the data into different statuses (good records, error records, warnings).
Response Preparation:
The processed data is then packaged into a structured response.
The response includes all the necessary details and statuses requested by the user.
Sending the Response:
The backend service sends the prepared response back to the REST provider API.
The API then forwards the response to the UI.
UI Displays Data:
The UI receives the response and parses the data.
It displays the data to the user, showing complete statuses like good records, error records, warnings, etc.
Process flow Activity:
Source Activity - The source comprises a database. It is necessary to create DbInfo and DbLayout to be invoked in the source activity
...
Go to edit query and to write tables joining query.
...
Context Target Using ContextTarget to store data in the flow which will be carried by the REST provider.
...
Info |
---|
Only utilize the |
b. Advanced Search Flow - To Search Start Date and End Date
...
Input Parameters:
The user is presented with input fields for
Start Date
andEnd Date
.The user enters the desired
Start Date
andEnd Date
to define the search parameters.
Input Validation:
The system validates the input dates to ensure they are in the correct format and logical order (e.g.,
Start Date
is not afterEnd Date
).If the validation fails, the system prompts the user to correct the input.
Search Trigger:
Once the input dates are validated, the user initiates the search by clicking a 'Search' button.
Front-End Processing:
The front end captures the input parameters and prepares an API request to the back-end system.
The API request includes the
Start Date
andEnd Date
as query parameters.
Back-End Request Handling:
The back-end system receives the API request.
It processes the request by querying the database for records that fall within the specified date range.
Data Filtering:
The back-end system applies the date filters to the application data.
The system retrieves the relevant records that match the search criteria.
Response Construction:
The back-end system constructs a response containing the filtered data.
The response is sent back to the front-end system.
Data Display:
The front-end system receives the response from the back-end.
It processes the response and displays the filtered results to the user in a user-friendly format.
Process flow activity:
Source Activity - The source comprises a database. It is necessary to create DbInfo and DbLayout to be invoked in the source activity
...
Info |
---|
You must utilize the EDIT Query option to efficiently retrieve attributes from multiple tables and display relevant information on the user interface. Additionally, you implement conditions to filter the data as needed. |
Query Details:
Table Name: DB/application_dataORDERBYFILE_QUEUE_IDDESCLIMIT25OFFSETstart/
...
title | SQL Query |
---|
...
Gateway Condition: This condition enables the retrieval of a value by utilizing user-defined search criteria within the UI's advanced search feature. The code streamlines the process flow in alignment with the designated start_date.
...
Code Description:
Code | Description |
---|---|
| The code checks whether the |
Source Activity - The source comprises a database. It is necessary to create DbInfo and DbLayout to be invoked in the source activity
...
Info |
---|
You must utilize the EDIT Query option to efficiently retrieve attributes from multiple tables and display relevant information on the user interface. Additionally, you implement conditions to filter the data as needed. |
Query Details:
Table Name: DB/application_dataORDERBYFILE_QUEUE_IDDESCLIMIT25OFFSETstart/
|
|
---|
Target Layout - The JSON schema for the source data (database) will be designed to be utilized in the RESTful API for the user interface. JSON is selected for its compatibility with RESTful APIs.
...
Mapping - You must load the database schema and the target schema (JSON) to finalize the mapping process.
...
Context Target -The target will be ContextTarget to store data in the flow for the REST provider.
...
c. Process flow - To search By File Attribute.
...
|
|
---|
Target Layout - The JSON schema for the source data (database) will be designed to be utilized in the RESTful API for the user interface. JSON is selected for its compatibility with RESTful APIs.
...
Mapping - You must load the database schema and the target schema (JSON) to finalize the mapping process.
...
Context Target -The target will be ContextTarget to store data in the flow for the REST provider.
...
Info |
---|
Only utilize the |
c. Process flow - To search By File Attribute.
This flow process enables search options by file attribute like FILE_QUEUE_ID, SSN, EMPLOYEE_LAST_NAME, GROUP_POLICY_NUMBER, COVERAGE_ID, EMPLOYEE_FIRST_NAME, EMPLOYEE_ID & RECORD_STATUS. It enables how the user initiates the search, the interactions between the front end and back end, and the final display of the filtered results to the user.
...
User Initiates Search:
User Interface: The user accesses a search interface on the front end. This interface provides input fields for each of the file attributes mentioned.
Input: The user enters search criteria in one or more fields (e.g.,
SSN
,EMPLOYEE_LAST_NAME
,
...
User Initiates Search:
User Interface: The user accesses a search interface on the front end. This interface provides input fields for each of the file attributes mentioned.
Input: The user enters search criteria in one or more fields (e.g.,
SSN
,EMPLOYEE_LAST_NAME
, etc.).
Front End Validation:
Form Validation: The front end performs basic validation to ensure the inputs are in the correct format (e.g.,
SSN
is numeric and of the correct length,EMPLOYEE_LAST_NAME
is alphabetic, etc.).Feedback: If any inputs are invalid, the user is prompted to correct them before proceeding.
Search Request Submission:
Request Construction: The front end constructs a search request based on the input fields filled by the user. This request typically includes a payload with the search criteria.
API Call: The front end sends the search request to the back end via an API call.
Backend Processing:
Request Reception: The back end receives the search request.
Validation and Sanitization: The back end further validates and sanitizes the input to ensure security and integrity.
Database Query: The back end constructs and executes a query against the database based on the search criteria
Data Retrieval and Filtering:
Query Execution: The database executes the query and returns the results to the back end.
Filtering: The back end may apply additional filtering or business logic to the results if necessary.
Front End Display:
Response Reception: The front end receives the response.
Result Rendering: The front end processes the response data and displays the filtered results to the user in a user-friendly format (e.g., a table or list).
Feedback: If no results are found, the front end provides appropriate feedback to the user (e.g., "No records found matching the search criteria").
...
etc.).
Front End Validation:
Form Validation: The front end performs basic validation to ensure the inputs are in the correct format (e.g.,
SSN
is numeric and of the correct length,EMPLOYEE_LAST_NAME
is alphabetic, etc.).Feedback: If any inputs are invalid, the user is prompted to correct them before proceeding.
Search Request Submission:
Request Construction: The front end constructs a search request based on the input fields filled by the user. This request typically includes a payload with the search criteria.
API Call: The front end sends the search request to the back end via an API call.
Backend Processing:
Request Reception: The back end receives the search request.
Validation and Sanitization: The back end further validates and sanitizes the input to ensure security and integrity.
Database Query: The back end constructs and executes a query against the database based on the search criteria
Data Retrieval and Filtering:
Query Execution: The database executes the query and returns the results to the back end.
Filtering: The back end may apply additional filtering or business logic to the results if necessary.
Front End Display:
Response Reception: The front end receives the response.
Result Rendering: The front end processes the response data and displays the filtered results to the user in a user-friendly format (e.g., a table or list).
Feedback: If no results are found, the front end provides appropriate feedback to the user (e.g., "No records found matching the search criteria").
Process flow activity:
Gateway Activity: This condition retrieves a value based on the search criteria provided by the user interface, using the advanced search option. The code facilitates the flow to retrieve data according to the specified search query.
...
Code Description:
Gateway Code | Description |
---|---|
| The code is designed to determine whether the |
Source Activity - The source comprises a database. It is necessary to create DbInfo and DbLayout to be invoked in the source activity
...
Info |
---|
You must utilize the EDIT Query option to efficiently retrieve attributes from multiple tables and display relevant information on the user interface. Additionally, you implement conditions to filter the data as needed. |
...
|
|
---|
Target Layout - The JSON schema for the source data (database) will be designed to be utilized in the RESTful API for the user interface. JSON is selected for its compatibility with RESTful APIs.
...
Mapping - You must load the database schema and the target schema (JSON) to finalize the mapping process.
Context Target Using ContextTarget to store data in the flow which will be carried by the REST provider.
...
Info |
---|
Only utilize the |
2. Create REST Provider End-point
...