]
RH Bugzilla Integration commented on DROOLS-822:
------------------------------------------------
Vikram Goyal <vigoyal(a)redhat.com> changed the Status of [bug
Missing documentation for kie-server-client
-------------------------------------------
Key: DROOLS-822
URL:
https://issues.jboss.org/browse/DROOLS-822
Project: Drools
Issue Type: Bug
Components: kie server
Reporter: Anton Giertli
Assignee: Edson Tirelli
There is no documentation for kie-server-client
https://github.com/droolsjbpm/droolsjbpm-integration/tree/6.2.x/kie-serve...
Some basic usage sample would be nice:
-- At least one example of provisioning API (JUnit test already include this)
-- At least one example of command API:
For example:
import org.kie.server.api.model.ServiceResponse;
import org.kie.server.client.KieServicesClient;
import org.kie.server.client.KieServicesConfiguration;
import org.kie.server.client.KieServicesFactory;
...
KieServicesConfiguration config = KieServicesFactory.
newRestConfiguration("http://localhost:8080/kie-server/services/rest/server",
"anton",
"password1!");
KieServicesClient client = KieServicesFactory.newKieServicesClient(config);
ServiceResponse<String> response =
client.executeCommands("ListenerReproducer", xStreamXml); // the request we
generated in previous step
System.out.println(response.getResult());