Module: drools-kie-client

Methods


client(options)

Initializes the Drools KIE client.
Parameters:
Name Type Description
options object Request options.
Properties
Name Type Description
baseUrl string The Base url, e.g. http://localhost:8080/kie-server-6.4.0.Final-ee7
username string The username.
password string The password.

container(id)

Returns information about the Container.
Parameters:
Name Type Description
id string The ID of the Container.
Returns:
A promise that will resolve with container information.
Type
Promise

containerAdd(containerRepresentation)

This function is used to create a new Container.
Parameters:
Name Type Description
containerRepresentation object An object representing the container.
Returns:
A promise that will resolve with the new container created.
Type
Promise

containerDelete(id)

This function is used to remove a Conainer.
Parameters:
Name Type Description
id string The ID of the Conainer.
Returns:
A promise that will resolve with 204 No Content if the delete is successful.
Type
Promise

containers()

Returns containers.
Returns:
A promise that will resolve with containers.
Type
Promise

info()

Returns the Execution Server information.
Returns:
A promise that will resolve with server information.
Type
Promise

release(id)

Returns the full release id for the Container specified by the id.
Parameters:
Name Type Description
id string The ID of the Container.
Returns:
A promise that will resolve with release information.
Type
Promise

release(id)

Returns information about the scanner for this Container's automatic updates.
Parameters:
Name Type Description
id string The ID of the Container.
Returns:
A promise that will resolve with release information.
Type
Promise