У нас есть Java logi c вот так, мы хотим достичь с помощью json диспетчера условий:
((eConsentDate == null) || (!(eConsentDate == null) && !(leSentDate == null) && !(leReceivedDate == null) &&(leReceivedDate.after(currentDate))) ||(!(eConsentDate == null) && !(leSentDate == null) && !(leReceivedDate == null) && (leReceivedDate.before(currentDate) || (leReceivedDate.equals(currentDate)) && !(cdSentDate == null) &&!(cdReceivedDate == null) && (cdReceivedDate.after(currentDate))))
Я написал json диспетчер условий, подобный этому
{
"conditionsList": [
{
"conditionName": "eConscentDate",
"conditions": [
{
"condition": "(eSignDisclosuresDetails.eConsentDate == null)",
"true": {
"count": "1"
},
"false": null
},
{
"condition": "((eSignDisclosuresDetails.eConsentDate != null) && (eSignDisclosuresDetails.leSentDate != null) && (eSignDisclosuresDetails.leReceivedDate != null)&& (eSignDisclosuresDetails.leReceivedDate >(currentDate.getTime())))",
"true": {
"count": "1"
},
"false": null
},
{
"condition": "((eSignDisclosuresDetails.eConsentDate != null) && (eSignDisclosuresDetails.leSentDate != null) && (eSignDisclosuresDetails.leReceivedDate != null) && ((eSignDisclosuresDetails.leReceivedDate.getTime().before(currentDate.getTime())) ||(eSignDisclosuresDetails.leReceivedDate.equals(currentDate))) && (eSignDisclosuresDetails.cdSentDate != null) && (eSignDisclosuresDetails.cdReceivedDate != null) && (eSignDisclosuresDetails.cdReceivedDate.after(currentDate))))",
"true": {
"count": "1"
},
"false": {
"count": "0"
}
}
]
}
]
}
Но проблема в том, чтобы добиться (leReceivedDate.after(currentDate)),(cdReceivedDate.after(currentDate)),(leReceivedDate.equals(currentDate)
этих полей в json.
Пока время синтаксического анализа показывает неразрешенный метод доступа.