The example: My elastic search has a document template that has a filed ABC_, can I have a chance to get the value of this field via elastic search from java code?

asked 18.12.2019 at 10:05

ttlinh's gravatar image

ttlinh
(suspended)
accept rate: 0%

Hi

Do you read your documentation for the usage of business data? https://developer.axonivy.com/doc/latest/designer-guide/data-modeling/business-data.html

(19.12.2019 at 02:56) Lukas Lieb ♦♦ Lukas%20Lieb's gravatar image

Hi

The best way to do so is using our business data search api (described here: https://developer.axonivy.com/doc/latest/designer-guide/data-modeling/business-data.html#search).

If this is not enough for you, elastic search provides an well documented rest api. Means you can do something like:

Client client = ClientBuilder.newClient();
try (Response response = client.target(url).request().get())
{
  if (response.getStatus() == 200)
  {
    response.readEntity(String.class));
  }
}

Kind regards

Lukas

link

answered 20.12.2019 at 02:52

Lukas%20Lieb's gravatar image

Lukas Lieb ♦♦
4412412
accept rate: 61%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22

Asked: 18.12.2019 at 10:05

Seen: 1,173 times

Last updated: 20.12.2019 at 02:52