Hi,
I want to use an ESP block in Composer with UCS (v8.5) InteractionListGet method. When I use only one condition in the SearchCriteria parameter, that's fine:
SearchCriteria={EQUAL:{AttrName:"OwnerId",AttrValue:"104"}}
But how can I use two parameters?
It didn't work:
SearchCriteria={AND:{EQUAL:{AttrName:"OwnerId",AttrValue:"104"}},AND:{EQUAL:{AttrName:"EntityTypeId",AttrValue:"7"}}}
In this case only the second one applied, then got an error msg - from UCS log:
-----------------------------------------------------------
2019-01-23T16:25:03.778 Trc 21124 [SvcSrvW-24] <1267> Request (queued for 0 ms):
Id=1267
Type=Request
AppName=UCS
AppType=
Service=OMInteractions
Method=InteractionListGet
Parameters=
[
SearchCriteria=
[
AND=
[
EQUAL=
[
AttrName="EntityTypeId"
AttrValue="7"
]
]
]
TenantId=1
]
UserData=
[
ExternalId="83340"
IWD_isContactServer=1
IWD_solutionId="SLT3"
IWD_tenantId="SYSTEM"
ORSI:Cluster1:03FJRN2V874GG01U=
[
Node="166"
Session="0IQN7R2DKP3LF9DI1OIE8E170S000452"
Url="http://vmgen:9090/scxml"
]
RStrategyDBID="1455"
RStrategyName="iwd_bp_comp_TF.Main.Classification"
RouterData70="("t"="1548260693 0")"
InteractionId="03FJRN2V874GG01U"
TenantId=1
MediaType="workitem"
InteractionType="Inbound"
InteractionSubtype="InboundNew"
InteractionState=1
IsOnline=0
IsLocked=0
Queue="iwd_bp_comp_TF.Main.iWD_New"
SubmittedBy="DB_CP_T"
ReceivedAt="2019-01-23T16:24:53Z"
SubmittedAt="2019-01-23T16:24:53Z"
PlacedInQueueAt="2019-01-23T16:24:53Z"
MovedToQueueAt="2019-01-23T16:24:53Z"
SubmitSeq="205790228"
PlaceInQueueSeq="205790228"
IsHeld=0
].
2019-01-23T16:25:03.778 Trc 21000 [SvcSrvW-24] <1267 OpenMedia.ExternalService-ClientHandler> Service 'OMInteractions' method 'InteractionListGet' started.
2019-01-23T16:25:03.779 Std 20121 [SvcSrvW-24] <1267> [b]Service 'OMInteractions' failed in method 'InteractionListGet' (ErrorCode=701 ErrorMsg=Unexpected error (More elements required for complex constraint) More elements required for complex constraint).
com.genesyslab.icc.api.contactserver.PersistentException: More elements required for complex constraint[/b]
at com.genesyslab.icc.contactserver.service.NETInteractionServiceLogic.getConstraintElement(NETInteractionServiceLogic.java:2940)
at com.genesyslab.icc.contactserver.service.NETInteractionServiceLogic.lookup(NETInteractionServiceLogic.java:592)
at com.genesyslab.icc.contactserver.service.NETInteractionServiceESP$16.op(NETInteractionServiceESP.java:321)
at com.genesyslab.icc.contactserver.service.ContactServerESPService.doCall(ContactServerESPService.java:141)
at com.genesyslab.icc.contactserver.service.NETInteractionServiceESP.InteractionListGet(NETInteractionServiceESP.java:316)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.genesyslab.icc.util.esp.ServiceServerPSDKImpl.invokeService(ServiceServerPSDKImpl.java:388)
at com.genesyslab.icc.util.esp.ServiceServerPSDKImpl.process(ServiceServerPSDKImpl.java:246)
at com.genesyslab.icc.util.esp.RequestHandler.run(RequestHandler.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.genesyslab.util.concurrent16.NamedThreadFactory$1.run(NamedThreadFactory.java:55)
at java.lang.Thread.run(Thread.java:745)
-----------------------------------------------------------
Any idea?
Thx
Br,
bandorka