Servis-Rhino 4211B Uživatelská příručka Strana 290

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 298
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 289
transformation
type default, xslFile
xslFile file name
To invoke an adapter we create an object which contains an invocationsOptions object:
adapter The name of the adapter to invoke
procedure The name of the procedure to invoke
parameters An array of parameters
Next we can call the WL.Client.invokeProcedure(invocationOptions, resultOptions) function.
onSuccess
onFailure
invocationContext
For the callback functions the onSuccess object contains:
invocationContext
status
invocationResult
Here is an example of building an adapter that executes a BPM REST request. In this example, we
want to get a list of Process Apps. The call to achieve this is a GET request
to"/rest/bpm/wle/v1/processApps".
We start by creating a new Worklight Adapter:
We say that it will be an HTTP Adapter and give it the name "BPMRest":
Page 290
Zobrazit stránku 289

Komentáře k této Příručce

Žádné komentáře