Author Topic: how to retreive workbin interaction  (Read 2470 times)

Offline Naveen Kancharla

  • Newbie
  • *
  • Posts: 26
  • Karma: -1
how to retreive workbin interaction
« on: June 17, 2016, 05:41:05 AM »
from the below code i can retrieve workbin but unable to retrieve interaction in it.
          CfgScriptQuery csq = new CfgScriptQuery();
            csq.ScriptType = CfgScriptType.CFGInteractionWorkBin;
            ICollection<CfgScript> cs = confservice.RetrieveMultipleObjects<CfgScript>(csq);
kindly suggest some psdk with sample example.
« Last Edit: June 17, 2016, 06:41:14 AM by Naveen Kancharla »

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: how to retreive workbin interaction
« Reply #1 on: June 17, 2016, 11:59:40 AM »
Your code just retreieve the configuration objects, but not work with UCS/IXN at all.

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Re: how to retreive workbin interaction
« Reply #2 on: July 19, 2016, 04:07:21 PM »
I think what you're looking for is RequestPull (com.genesyslab.platform.openmedia.protocol.interactionservice.requests.interactionmanagement.RequestPull).

Here's an example of how to use it:

[code]
RequestPull req = RequestPull.create();
KeyValueCollection pullParameters = new KeyValueCollection();
pullParameters.addString("InteractionId", interactionId);
req.setPullParameters(pullParameters);
req.setViewId("_system_");
Message ret = interactionServerProtocol.request(req);[/code]