Best practices for working with jw50_Event
Database views beginning with jw50 are meant to replicate the structure of the JustWare system to maintain backward compatibility.
If the term "JustWare" is unfamiliar, you may not need the details on this page.
Only customers migrated from a JustWare instance have jw50 views.
|
Overview
In JustWare, the Event view covers many event types which become separate entities in eProsecutor Online during migration.
With the entities separated, the EventID field in the jw50_Event view is no longer unique because it is an aggregate from multiple eProsecutor Online entities.
So, when using the jw50_Event view, searching for an event by the EventID can return multiple items instead of the single desired item.
For optimal results, implement one of the following:
-
Replace the
jw50_Eventview with an eProsecutor Online view. -
Replace the
jw50_Eventview with a precisejw50view. -
Include extra filters when using the
jw50_Eventview.
Use eProsecutor Online views
The best solution is to replace jw50 views with eProsecutor Online views.
This ensures the system returns data from the desired entity and improves performance.
For the following event types included in the jw50_Event view, you can use the eProsecutor Online view as a replacement.
The table shows how jw50_Event view fields map to the associated eProsecutor Online view.
Scheduled event
For scheduled events, use the epo_ScheduledEvent view.
jw50_Event view |
epo_ScheduledEvent view |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tracking
For tracking, use the epo_Tracking view.
jw50_Event view |
epo_Tracking view |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Case documents
For Case Documents, use the epo_Document view.
jw50_Event |
epo_Document |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Case status
For Case statuses, use the epo_CaseStatus view.
jw50_Event view |
epo_CaseStatus view |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sentence
For Sentences, use the epo_Sentence view.
jw50_Event view |
to the epo_Sentence view |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use precise jw50 views
The second solution is to use jw50 views with a precise scope.
Not every event type included in the jw50_Event view has a more precise jw50 view.
The following are a few examples of precise jw50 views:
-
Non collectible financials use the
jw50_NonCollectableFinancialsview. -
CaseDocumentsuse thejw50_CaseDocumentview. -
Sentences use the
jw50_Sentenceview.
Include filters on jw50_Event
The third solution is to add more filters when using the jw50_Event view.
These filters should include:
-
A filter on the event type. This eliminates the issue by limiting the returned results to an event type. You can use the
EventEntityfield in thejw50_Eventview for this filter.The following table shows the value of the
EventEntityfield for each event type:Event type EventEntityvalueScheduled event
ScheduledEventTask
CheckListItemTracking
TrackingNon collectible financial
NonCollectibleFinancialCase document
CaseDocumentPerson document
PersonDocumentCase status
CaseStatusSentence
SentenceSentence condition
SentenceCondition -
Use a filter on the
CaseorPersonentities. This cannot fully resolve the issue by itself, but it improves the performance of thejw50_Eventview. Use this filter type with an event type filter.