I did it but same result.
I guess I will do it manually as Theodore proposes ...
Thanks for your help Aaaron and Theodore
Pierre
Le 18.08.2017 à 16:12, Aaron Rosenzweig a écrit :
Hi Pierre,
Are you trying to log the creation and deletion of “PatientCenter” ?
Try adding the following:
PatientCenter
ERXAuditKeys
Item 2Stringpatient
*Aaron Rosenzweig* / Chat 'n Bike <http://www.chatnbike.com>
*e:* [email protected] <mailto:[email protected]> *t:* (301)
956-2319
Chat 'n Bike Chat 'n Bike
On Aug 18, 2017, at 10:07 AM, GILQUIN Pierre <[email protected]
<mailto:[email protected]>> wrote:
Yes, it's exactely what I have (now) :
PatientCenter
<pc.PNG>
Patient
<patient.PNG>
But the config trace for PatientCenter is really strange with 6 times
"center" :
PatientCenter = { isAudited =true; keys = ("center", "center",
"center", "center", "center", "center"); notificationKeys =
("patient");}; }
Le 18.08.2017 à 15:54, Aaron Rosenzweig a écrit :
Hi Pierre,
Please confirm you have something like the following:
Patient
ERXAuditKeys
Item 1StringpatientCenters
PatientCenter
ERXAuditKeys
Item 1Stringcenter
*Aaron Rosenzweig* / Chat 'n Bike <http://www.chatnbike.com/>
*e:* [email protected] <mailto:[email protected]> *t:* (301)
956-2319
Chat 'n Bike Chat 'n Bike
On Aug 18, 2017, at 9:50 AM, GILQUIN Pierre <[email protected]
<mailto:[email protected]>> wrote:
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 protected] <mailto:[email protected]> *t:* (301)
956-2319
Chat 'n Bike Chat 'n Bike
On Aug 18, 2017, at 2:11 AM, GILQUIN Pierre
<[email protected] <mailto:[email protected]>> 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 protected] <mailto:[email protected]>
*t:* (301) 956-2319
Chat 'n Bike Chat 'n Bike
On Aug 17, 2017, at 10:51 AM, GILQUIN Pierre
<[email protected] <mailto:[email protected]>> 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 protected]
<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]