Skip to content

Commit

Permalink
Merge pull request #167 from bonitasoft/release/0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
uguy committed May 16, 2022
2 parents 8046965 + f1636f5 commit 09d2305
Show file tree
Hide file tree
Showing 152 changed files with 174 additions and 233 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -49,15 +49,15 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -71,4 +71,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/workflow-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
Expand All @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.1
5.4.0
1 change: 1 addition & 0 deletions .openapi-generator/bonita-openapi-0.0.7-default.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f30ae981b1a6409bc6150801e84f9b3bf58164aca42639d32aa5cfbd3103f833
2 changes: 1 addition & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:project-group-id: org.bonitasoft.web
:project-artifact-id: bonita-java-client
:project-version: 0.0.5
:project-version: 0.0.6
:bonita-short-version: 7.11
:orga: bonitasoft
:uri-org: https://github.com/{orga}
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endif::[]
// Vars
:project-group-id: org.bonitasoft.web
:project-artifact-id: bonita-java-client
:project-version: 0.0.5
:project-version: 0.0.6
:bonita-short-version: 7.11
:orga: bonitasoft
:uri-org: https://github.com/{orga}
Expand Down
4 changes: 3 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ info:
name: GPL-v2.0
url: http://www.gnu.org/licenses/gpl-2.0.txt
title: Bonita HTTP API
version: 0.0.6
version: 0.0.7
x-logo:
url: images/logo_bonitasoft_white.png
backgroundColor: '#003355'
Expand Down Expand Up @@ -16545,6 +16545,8 @@ components:
- cancelled
- aborted
- cancelling subtasks
- aborting activity with boundary
- completing activity with boundary
type: string
ActivityPriority:
description: the priority of the current activity
Expand Down
21 changes: 10 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.bonitasoft.web</groupId>
<artifactId>bonita-java-client</artifactId>
<version>0.0.5</version>
<version>0.0.6</version>
<name>bonita-java-client</name>
<packaging>jar</packaging>

Expand Down Expand Up @@ -38,27 +38,26 @@

<!-- Bonita -->
<bonita.version>7.11.1</bonita.version>
<bonita-openapi.version>0.0.6</bonita-openapi.version>
<bonita-openapi.version>0.0.7</bonita-openapi.version>

<swagger-annotations.version>1.6.5</swagger-annotations.version>
<swagger-annotations.version>1.6.6</swagger-annotations.version>
<javax-annotation.version>1.3.2</javax-annotation.version>
<jsr305.version>3.0.2</jsr305.version>
<feign.version>11.8</feign.version>
<feign-form.version>3.8.0</feign-form.version>
<okhttp.version>4.9.3</okhttp.version>
<scribejava.version>8.3.1</scribejava.version>
<jackson.version>2.13.2</jackson.version>
<jackson.version>2.13.3</jackson.version>
<jackson-databind-nullable.version>0.2.2</jackson-databind-nullable.version>
<jackson.version>2.13.0</jackson.version>
<lombok.version>1.18.22</lombok.version>
<lombok.version>1.18.24</lombok.version>
<slf4j-api.version>1.7.36</slf4j-api.version>

<!-- Tests -->
<junit-jupiter-engine.version>5.8.2</junit-jupiter-engine.version>
<assertj-core.version>3.22.0</assertj-core.version>
<mockito-core.version>4.4.0</mockito-core.version>
<mockito-core.version>4.5.1</mockito-core.version>
<logback-classic.version>1.2.11</logback-classic.version>
<testcontainers.version>1.16.3</testcontainers.version>
<testcontainers.version>1.17.1</testcontainers.version>
<awaitility.version>4.2.0</awaitility.version>

<!-- Maven plugins -->
Expand All @@ -68,10 +67,10 @@
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>${maven-surefire-plugin.version}
</maven-failsafe-plugin.version>
<jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<sonar-maven-plugin.version>3.9.1.2184</sonar-maven-plugin.version>
<nexus-staging-maven-plugin.version>1.6.12</nexus-staging-maven-plugin.version>
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<maven-javadoc-plugin.version>3.4.0</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
<git-commit-id-plugin.version>4.9.10</git-commit-id-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Bonita HTTP API
* The REST API lets you access the data with HTTP requests; it is useful when implementing rich web forms / pages for a good user experience. If your application is using a technology other than Java, you can integrate it with the Bonita solution using the Web REST API. This API provides access to all Bonita objects (like processes, tasks, users, connectors etc.), to execute operations on them (create, retrieve, update, delete). You can use these operations to create a workflow with Bonita and integrate it into your application. The Bonita Engine remains responsible for executing the workflow logic (connectors, gateways with conditions, messages, timers etc.) while your application gives access to the workflow. Users can manage processes and tasks, and perform administrative activities. ![diagram of architecture of a REST client integrated with Bonita](images/rest_overview_v2.png) ### API Extensions You can create [Rest API Extensions](rest-api-extensions.md) to extend the Rest API by adding missing ressources (not provided by the Rest API). It is possible for an extension to interact with the engine (via the API) or with any other external service (for example a database, a directory, or a web service). ### Create a resource | Request URL | `http://.../API/{API_name}/{resource_name}/ `| |:-|:-| | Request Method | POST| | Request Payload | an item in JSON| | Response | the same item in JSON, containing the values provided in the posted item, completed with default values and identifiers provided by Bonita Engine.| ### Read a resource | Request URL | `http://.../API/{API_name}/{resource_name}/{id} `| |:-|:-| | Request Method | GET| | Response | an item in JSON| Example `http://.../API/identity/user/5 ` #### Extend resource response On some resources, in GET methods the `d` (deploy) URL query parameter can be used to extend the response objects. The value of this parameter consists of an attribute for which you want to make an extended request (called a deploy) and retrieve attributes of a linked resource. This means that instead of retrieving the ID or a parent or referenced resource, you can retrieve the full object. For example, when you retrieve a task, you can also retrieve the process definition attributes in addition to the process definition ID that is already part of the task resource. The supported deploy values for a task include its process (d=processId). Specifiy multiple `d` parameter to extend several resources. For instance, to retrieve the flow node of id 143 and the associated process, process instance and assigned user, call `/API/bpm/flowNode/143?d=processId&d=caseId&d=assigned_id` #### With compound identifier The order of the identifier parts for each resource type is given in the table above. | Request URL | `http://.../API/{API_name}/{resource_name}/{id_part1}/{id_part2} `| |:-|:-| | Request Method | GET| | Response | an item in JSON| Example `http://.../API/identity/membership/5/12/24 ` ### Update a resource | Request URL | `http://.../API/{API_name}/{resource_name}/{id} `| |:-|:-| | Request Method | PUT| | Request Payload | a map in JSON containing the new values for the attributes you want to change.| | Response | the corresponding item in JSON with new values where you requested a modification| Example `http://.../API/identity/user/5` #### With compound identifier: Response: the corresponding item in JSON with new values where you requested a modification. | Request URL | `http://.../API/{API_name}/{resource_name}/{id_part1}/{id_part2} `| |:-|:-| | Request Method | PUT| | Request Payload | ` a map in JSON containing the new values for the attributes you want to change `| | Response | ` the corresponding item in JSON with new values where you requested a modification`| Example `http://.../API/identity/membership/5/12/24 ` ### Delete resources Use the DELETE request to remove multiple resources. | Request URL | `http://.../API/{API_name}/{resource_name}/ `| |:-|:-| | Request Method | DELETE| | Request Payload | A list of identifiers in JSON, for example `[\"id1\",\"id2\",\"id3\"]`. Compound identifiers are separated by '/' characters.| | Response | `empty `| Example `http://.../API/identity/membership/ ` ### Search for a resource The required object is specified with a set of filters in the request URL. The URL parameters must be URL-encoded. Results are returned in a paged list, so you have to specify the page (counting from zero), and the number of results per page (count), additionally you can define a sort key (order). You can see the total number of matching results in the HTTP response header Content-Range. If you are searching for business data using a custom query, there must be a [count query in the BDM](define-and-deploy-the-bdm.md). If there is no count query, results from a custom query on business data cannot be paged properly (the header Content-Range will be absent). For business data default queries, the count query is defined automatically. The available filters are the attributes of the item plus some specific filters defined by each item. | Request URL | `http://.../API/{API_name}/{resource_name}?p={page}&c={count}&o={order}&s={query}&f={filter_name}={filter_value}&f=... `| |:-|:-| | Request Method | GET| | Response | an array of items in JSON| Example `/API/identity/user?p=0&c=10&o=firstname&s=test&f=manager_id=3` For a GET method that retrieves more than one instance of a resource, you can specify the following request parameters: * p (Mandatory): index of the page to display * c (Mandatory): maximum number of elements to retrieve * o: order of presentation of values in response: must be either `attributeName ASC` or `attributeName DESC`. The final order parameter value must be URL encoded. * f: list of filters, specified as `attributeName=attributeValue`. To filter on more than one attribute, specify an f parameters for each attribute. The final filter parameter value must be URL encoded. The attributes you can filter on are specific to the resource. * s: search on name or search indexes. The matching policy depends on the configuration of [word-based search](using-list-and-search-methods.md). For example, if word-based search is enabled, `s=Valid` returns matches containing the string \"valid\" at the start of any word in the attribute value word, such as \"Valid address\", \"Not a valid address\", and \"Validated request\" but not \"Invalid request\". If word-based search is disabled, `s=Valid` returns matches containing the string \"valid\" at the start of the attribute value, such as \"Valid address\" or \"Validated request\" but not \"Not a valid address\" or \"Invalid request\". ### Errors The API uses standard HTTP status codes to indicate the success or failure of the API call. If you get a `401` response code : - make sure that the cookies have been transfered with the call - make sure that the cookies transfered are the ones generated during the last sucessfull login call - if one of the PUT, DELETE or POST method is used, make sure that the `X-Bonita-API-Token` header is included - if the X-Bonita-API-Token header is included, make sure that the value is the same as the one of the cookie generated during the last login - Maybe a logout was issued or the session has expired; try to log in again, and re run the request with the new cookies and the new value for the `X-Bonita-API-Token` header.
*
* The version of the OpenAPI document: 0.0.6
* The version of the OpenAPI document: 0.0.7
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -50,6 +50,6 @@ public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fie

@Override
public Object clone() {
return this;
return super.clone();
}
}
}
Loading

0 comments on commit 09d2305

Please sign in to comment.