[OpenVPMS Developers] 1.6b3 (4901) - Need advice on custom demographic update

Message from tim.gething@bigpond.com tim.gething@bigpond.com

4901 has OPVMS-1264 fixed and Tim A referred me to OPVMS-814.  So I added the Example Custom Fields to species Dog, and then created a Demographic update called Vaccination Date with Expression:

openvpms:setObjectNode(.,"lastVaccinationDate",java.util.Date.new())

and node  'entity.customPatientExample'.

I then added this update to a product, and invoiced that product to a dog. 

I got a failure which included the message:

org.openvpms.archetype.rules.product.DemographicUpdateException: Failed to evaluate demographic update: Vaccination Date; nested exception is RuleException(javax.rules.InvalidRuleSessionException: org.openvpms.archetype.rules.product.DemographicUpdateException: Failed to evaluate demographic update: Vaccination Date), root cause(org.drools.spi.ConsequenceException: org.openvpms.archetype.rules.product.DemographicUpdateException: Failed to evaluate demographic update: Vaccination Date)

 

I am absolutely certain that I have the node set incorrectly. [I notice that for the standard demographice updates the node is set to 'patient.entity' - but there is no such archetype in the system.  So there must be some magic about the naming convention for the node.]

Can someone tell me what I use to get to the entity.customPatientExample field lastVaccinationDate.

Thanks, Tim

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

Syndicate content