on 06-20-2011 2:46 PM
Hi there,
I want to send an e-mail, that contains context data with cardinatlity 1..n.
My context looks like this:
|- Data Object (1..1)
|---STATUS (1..n)
|----- ApprovedBy (0..1)
|----- ApprovedOn (0..1)
|----- DeclinedBy (0..1)
|----- DeclinedOn (0..1)
|----- DeclinedReason (0..1)
For printing the declining reason in the e-mail, I tried the following:
get(DataObject/Status/DeclinedReason,count(DataObject/Status/DeclinedReason))
This should retrieve the last "DeclinedReason" reason entry, but I get the following log entry:
error commit():Caught exception while dispatching onCommit events: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
Even get(DataObject/Status/DeclinedReason,1) doesn't work, although count(DataObject/Status/DeclinedReason) returns 1.
Can you tell me how to retrieve the fields of the last STATUS element?
index starts from 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.