IBM Business Process Manager, Version 8.5.5
GET /rest/bpm/wle/v1/businessobject/{boId}[?snapshotId={string}][&branchId={string}]
Name | Value Type | Description |
---|---|---|
snapshotId | string | The ID of the snapshot associated with the business object. Either 'snapshotId' or 'branchId' must be specified.
|
branchId | string | The ID of the branch associated with the business object. Either 'snapshotId' or 'branchId' must be specified.
|
None
The default content type is application/json.
{ "status":"200", "data":{ "isComplex":{"type": "boolean", "description": "Indicates whether the business object is a complex type."}, "type":{"type": "string", "description": "The type of the business object. It is the same as the name for the complex type."}, "name":{"type": "string", "description": "The name of the business object."}, "properties":[ { "typeClass":{"type": "string", "description": "The name of the type class for the property."}, "typeClassRef":{"type": "string", "description": "The reference ID of the type class if it is a complex type. It is null when the typeClass is a primitive type."}, "typeClassSnapshotId":{"type": "string", "description": "The ID of the snapshot associated with the type class. Either 'snapshotId' or 'branchId' must be specified when typeClassRef is not null."}, "typeClassBranchId":{"type": "string", "description": "The ID of the branch associated with the type class. Either 'snapshotId' or 'branchId' must be specified when typeClassRef is not null."}, "isArray":{"type": "boolean", "description": "Indicates whether this property is a list."}, "name":{"type": "string", "description": "The name of the property."} } ] } }
{ "status":"200", "data":{ "isComplex":true, "type":"Person", "properties":[{ "typeClass":"String", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"firstName" }, { "typeClass":"String", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"lastName" }, { "typeClass":"String", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"notes" }, { "typeClass":"String", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"payLevel" }, { "typeClass":"String", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"payType" }, { "typeClass":"Date", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"startDate" }, { "typeClass":"String", "typeClassSnapshotId":null, "typeClassBranchId":null, "isArray":false, "name":"supervisor" }, { "typeClass":"BO1", "typeClassRef":"12.7249b869-04b8-4588-97bd-aad4489583f0", "typeClassSnapshotId":"2064.63c0e2f8-7060-4d5a-8122-0fdb0f3cb8f7", "typeClassBranchId":null, "isArray":true, "name":"test" } ], "name":"Person" } }
<?xml version="1.0" encoding="UTF-8"?> <schema targetNamespace="http://rest.bpm.ibm.com/v1/data/businessobject" elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://rest.bpm.ibm.com/v1/data/businessobject" xmlns:pref="http://rest.bpm.ibm.com/v1/data/root" xmlns:cmn="http://rest.bpm.ibm.com/v1/data/common"> <import schemaLocation="Common.xsd" namespace="http://rest.bpm.ibm.com/v1/data/common"/> <import schemaLocation="BPMRestData.xsd" namespace="http://rest.bpm.ibm.com/v1/data/root"/> <complexType name="BOProperty"> <complexContent> <extension base="pref:NamedElement"> <sequence> <element name="description" type="string" /> <element name="richDescription" type="string" /> <element name="typeClass" type="string" /> <element name="typeClassRef" type="string" /> <choice> <element name="typeClassSnapshotId" type="string" /> <element name="typeClassBranchId" type="string" /> </choice> <element name="isArray" type="boolean" /> </sequence> </extension> </complexContent> </complexType> <complexType name="DocumentProperty"> <complexContent> <extension base="tns:BOProperty"> <sequence> <element name="isHidden" type="boolean" default="false"/> <element name="isRequired" type="boolean" default="false"/> </sequence> </extension> </complexContent> </complexType> <complexType name="BusinessObject"> <complexContent> <extension base="pref:NamedElement"> <sequence> <element name="isComplex" type="boolean" /> <element name="type" type="string" /> <element name="description" type="string" /> <element name="richDescription" type="string" /> <element name="isShared" type="boolean" /> <element name="properties" type="tns:BOProperty" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType> </schema>
The default content type is application/json.
{ "description": "WLE Error Response", "type": "object", "properties": { "status": {"type": "string", "description": "The status of the previous API call." }, "exceptionType": {"type": "string", "description": "The classname associated with the exception." }, "errorNumber": {"type": "string", "description": "Message ID of the exception." }, "errorMessage": {"type": "string", "description": "Message text of the exception." }, "errorMessageParameters": {"type": ["string"], "optional": true, "description":"Message text parameters of the exception." }, "programmersDetails": {"type": "object", "optional": true, "description":"Additional exception details, for example, a stack trace." } } }
Code | Description |
---|---|
200 OK | Success completion. |
400 Bad Request | The parameters are not valid or they are missing. |
401 Unauthorized | The caller is not authorized for this request. |
404 Not Found | The business object does not exist.
|
406 Not Acceptable | The requested content type or content encoding is not supported. |
500 Internal Server Error | A severe problem has occurred, programmer's details are provided. |
7.5.1
Parent Topic: Business Object Resource