Re: ERCoreBusinessLogic Audit
Re: ERCoreBusinessLogic Audit
- Subject: Re: ERCoreBusinessLogic Audit
- From: GILQUIN Pierre <email@hidden>
- Date: Fri, 18 Aug 2017 15:50:08 +0200
I did what you said.
The config trace shows that patientCenters is key in Patient and that
PatientCenter is audited :
août 18 15:26:34 SSCS[22222] INFO
er.corebusinesslogic.audittrail.ERCAuditTrail - Configuration : {
DiseaseGroupPatient = { isAudited =false; keys = (); notificationKeys =
("patient");}; DiseaseGroup = { isAudited =true; keys = ("creationDate",
"name"); notificationKeys = ();};
Patient = { isAudited =true; keys = ("birthDate", "cohortID",
"creationDate", "firtsNameInitial", "formerFiviveDigitSSCSId",
"lastNameInitial", "sex", "diseaseGroups", "patientCenters");
notificationKeys = ();};
PatientCenter = { isAudited =true; keys = (); notificationKeys =
("patient");}; }
But same result : no audit is created if a center is added or removed !!
Thanks for your help
Pierre
Le 18.08.2017 à 15:14, Aaron Rosenzweig a écrit :
Hi Pierre,
Ah, I re-read your original question and combined with your reply I
now understand.
Things are working for you except for one of your ERXAuditKeys.
Patient has a to-many relationship to “patientCenters”
And then… an EO that I assume is “PatientCenter” has a to-one
relationship to “center”
You are not expecting that a change of "PatientCenter" would be
audited by the definition you setup in “Patient” because you made an
audit key with a “dot” in it of “patientCenters.center”
Magic has it’s limits and you’ve exceeded the capability of Wonder here.
At best you need to turn on auditing of “PatientCenter” and log when
that changes.
You cannot have “dots” in the ERXAuditKeys.
Make sense?
*Aaron Rosenzweig* / Chat 'n Bike <http://www.chatnbike.com>
*e:* email@hidden <mailto:email@hidden> *t:* (301)
956-2319
Chat 'n Bike Chat 'n Bike
On Aug 18, 2017, at 2:11 AM, GILQUIN Pierre <email@hidden
<mailto:email@hidden>> wrote:
Thanks Aaron,
The Actor is correctly set.
The audit works in general but the toMany relationship is a specific
problem.
I try to add ERXAuditKeys also on the linking EO
(PatientCenter.plist of class EOGenericRecord) but that doesnot help.
others ideas ?
Pierre
Le 17.08.2017 à 22:23, Aaron Rosenzweig a écrit :
Hi Pierre,
Did you try what was outlined here?
https://lists.apple.com/archives/webobjects-dev/2015/Nov/msg00051.html
You need to setup the “actor” etc. there’s a few steps.
*Aaron Rosenzweig* / Chat 'n Bike <http://www.chatnbike.com/>
*e:* email@hidden <mailto:email@hidden> *t:* (301)
956-2319
Chat 'n Bike Chat 'n Bike
On Aug 17, 2017, at 10:51 AM, GILQUIN Pierre <email@hidden
<mailto:email@hidden>> wrote:
Hi,
From my EO Patient, I have a toMany relationship named centers.
In Patient.plist, the ERXAuditKeys contains the definition
(patientCenters.center) but I never get any audits.
Am I missing something ?
Thanks in advance
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden
<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden