This documentation is for WSO2 Business Process Server version 3.5.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Before making service requests the module, user must be initialized by initHTServerInfo().

example :  

Code Block
languagejava
var log = new Log()

...


//BPS server url

...


var BPSUrl =

...

 “https://localhost:

...

9443”;

...


//logged-in session cookie

...


var cookie = “JSESSIONID=89C82FC824F66ECD645974DFC4951A19”;

...


//retrieve module

...


var htRequest = require ('/js/WSHTRequest.js');

...


//initialize WSHTRequest

...


htRequest.initHTServerInfo(BPSUrl, cookie);

...


var result = htRequest.addComment(taskId, '<![CDATA' +requestPayload.text +']>');

...


log.info(‘response :  +result);

Deploying in a external server

...