BICI Operations Management API

version 2.0

API used by Operations Management Living Application

/bici-info

Http method

GET

Description

Experimental: may change or be removed at any time (since BICI 1.3.0)

Query parameters

No parameters

Response examples

/bici-case-by-id-api

Http method

GET

Description

Return the open case related to the provided case id

Query parameters

Parameter Type Required Description

caseId

integer

true

id of the case

Response examples

  • http://localhost:8080/bonita/apps/bici-operations-management/API/extension/bici-case-by-id-api?caseId=101

    {
      "caseId": 101,
      "startDate": "2019-06-17T15:27:29.044Z",
      "startedBy": {
          "id": 4,
          "username": "walter.bates",
          "firstName": "Walter",
          "lastName": "Bates"
      },
      "process": {
          "definitionId": "8662860246251890111",
          "name": "Vacation",
          "version": "4.0",
          "versionSpecified": true
      },
      "status": "LATE",
      "predictedEndDate": "2019-06-17T15:28:10.220Z",
      "predictedDurationInMillis": 41153,
      "minInMillis": null,
      "maxInMillis": null,
      "withinTargetRatio": 0
    }

/bici-case-api

Http method

GET

Description

This list of cases can be filtered by status (late, predictedLate, predictedOnTime, unknown) or using a search term

Query parameters

Parameter Type Required Description

c

integer

false

Number of elements to return

p

integer

false

Page to return, starts at 0

processName

string

true

Name of the process

processVersion

string

false

Version of the process

status

string

false

Status of the cases: late, predictedLate, predictedOnTime, unknown

search

string

false

Search keyword, will search in case id and name of the initiator

Response examples

  • http://localhost:8080/bonita/apps/bici-operations-management/API/extension/bici-case-api?processName=Vacation

    {
      "cases": [
          {
              "caseId": 101,
              "startDate": "2019-06-17T15:27:29.044Z",
              "startedBy": {
                  "id": 4,
                  "username": "walter.bates",
                  "firstName": "Walter",
                  "lastName": "Bates"
              },
              "process": {
                  "definitionId": "8662860246251890111",
                  "name": "Vacation",
                  "version": "4.0",
                  "versionSpecified": true
              },
              "status": "LATE",
              "predictedEndDate": "2019-06-17T15:28:10.220Z",
              "predictedDurationInMillis": 41153,
              "minInMillis": null,
              "maxInMillis": null,
              "withinTargetRatio": 0
          }
      ],
      "counts": {
          "predictedLate": 0,
          "late": 1,
          "predictedOnTime": 0,
          "unknown": 0
      },
      "lastPollingDate": "2019-06-25T15:54:40.298Z"
    }

/bici-process-api

Http method

GET

Description

Get processes that the user is manager of

Query parameters

No parameters

Response examples

/bici-query-api

Http method

GET

Description

This allows to execute an analytics query.

Query parameters

Parameter Type Required Description

c

integer

false

Number of elements to return

p

integer

false

Page to return, starts at 0

queryName

string

true

Name of the analytics query: case-time-distribution, case-statistics, case-late-per-month, task-statistics

processName

string

true

Name of the process

processVersion

string

false

Version of the process. If empty, use all allowed versions

parameters

object

false

Parameters required by the query: durationOfAnalysis, for case-time-distribution, case-statistics, case-late-per-month, task-statistics; durationInMillis, for case-late-per-month

Response examples