REST driver pagination any news?

Hi,

I have read a couple of discussion on here from 4 years ago with some cleaver workarounds for pagination on REST drivers.

I have looked at the documentation for 4.8 and found this section

And this seems like an easy setup:

But when I go to set it up i only have "text fields" in the configuration page..

Have any of you had any luck setting up pagination via this configuration?

Parents Reply Children
  • 0 in reply to   

    Hm ok.

    Im having some trouble wrapping my head around how the driverconfiguration actually works..

    Im on the publisher channel in "poll"-mode so data flows into the IDM i get a response body from the pull wich i work on and thats all fine, but when should the driverconfiguration regarding paging actually do its job? seems to me that it should "work on its own" without me tampering with the xml dokument (other than getting my data out). 

    And if i were to create a query in my own code, disregarding the driverconfiguration, how would it travel alle the way around to the subscriber channel and make a new poll/query?

    Does anyone have a document with either the driverconfiguration working or a modified document with a query, that I can replicate in my driver?

  • 0   in reply to   
    THINK the shim is expecting your JSON->XML to spit out an <instance> doc and probably with a <query-token> node specifying the next node

    Polling functionality is all self-contained within the shim from what I understand.

    The JSON->XML translation always happens on the engine side, not in the shim.

    What is confusing, is that like the AD driver, the default engine side policies call out to a java class that is normally bundled with driver shim updates. When per best practice, one runs the driver shim on a separate remote loader, it is far too easy to forget to update/patch/install this java class on the engine side, which can cause engine side policy evaluation to fail.

    Now don't get me started on how broken and poorly written the built-in JSON->XML implementation that ships with the REST driver is. One of the first things I do when working on a REST driver is to replace this with a less broken and more flexible approach (several options exist).