GET /rest/bpm/wle/v1/social/task/{taskId}/stream[?page={integer}][&pageSize={integer}][&since={string}][&sort={string}]| Nazwa | Typ wartości | Opis | ||||||
|---|---|---|---|---|---|---|---|---|
| Strona | liczba całkowita | Strona elementów do zwrócenia. Domyślnym zachowaniem nie jest stronicowanie. Strony rozpoczynają się od wartości 1. Jeśli parametr zostanie ustawiony na 0, stronicowanie zostanie wyłączone.
|
||||||
| pageSize | liczba całkowita | Liczba elementów zwracanych na stronie. Wartością domyślną jest 10.
|
||||||
| od | łańcuch | Filtr do zwracania tylko tych elementów, które były dostępne od tej daty i godziny. Wynik jest zwracany w formacie "2010-10-10T00:00:00".
|
||||||
| sortowanie | łańcuch | Porządek sortowania.
|
Brak
Domyślny typ treści toapplication/json.
{
elementy: [
{
aktor: {
displayName: "Wewnętrzny użytkownik administracyjny TW",
id: "tw_admin",
objectType: "PERSON"
},
treść: "pomóż mi",
obiekt: {
displayName: "Comment for Employee Requisition for (3) (3)",
id: "2078.91",
objectType:"ibm.bpm.comment"
},
opublikowano: "2012-01-09T16:19:05.537-05:00",
verb: "POST"
},
{
aktor: {
displayName: "System",
id: "ibm.bpm.system",
obraz: {
height:30,
width:30,
url: "/ProcessPortal/com/ibm/bpm/social/img/System_avatar4_30x30.png"
},
objectType: "SERVICE"
},
content: "Ta instancja jest teraz zakończona.",
obiekt: {
displayName: "Pracownik zapotrzebowania na (3)",
id: "2072.3",
objectType:"ibm.bpm.instance"
},
opublikowano: "2012-01-09T09:58:01.520-05:00",
verb: "POST"
},
{
aktor: {
displayName: "Wewnętrzny użytkownik administracyjny TW",
id: "tw_admin",
objectType: "PERSON"
},
content: "Wewnętrzny użytkownik administracyjny TW zakończył zadanie zatytułowane Zadanie: Submit requisition (Zadanie: Zgłoś zapotrzebowanie) i powiązane z działaniem Submit job requisition (Zgłoś zapotrzebowanie na pracownika).",
obiekt: {
displayName: "Task: Submit requisition" (Zadanie: Wyślij zapotrzebowanie),
id: "2078.3",
objectType:"ibm.bpm.task"
},
opublikowano: "2012-01-09T09:58:00.748-05:00",
verb: "POST",
odpowiedzi: {
elementy: [
{
autor: {
displayName: "Wewnętrzny użytkownik administracyjny TW",
id: "tw_admin",
obraz: {
height:32,
width:32
},
objectType: "PERSON"
},
treść: "oznaczanie użytkownika Wewnętrzny użytkownik administracyjny w produkcie TW ",
objectType: "COMMENT",
opublikował: "2012-01-09T16:18:44.743-05:00"
}
]
}
},
{
aktor: {
displayName: "System",
id: "ibm.bpm.system",
obraz: {
height:30,
width:30,
url: "/ProcessPortal/com/ibm/bpm/social/img/System_avatar4_30x30.png"
},
objectType: "SERVICE"
},
treść: " Nowe zadanie o nazwie Zadanie: Zgłoś zapotrzebowanie zostało utworzone dla użytkownika Wewnętrzny administrator TW. Dotyczy to działania Submit job requisition (Zgłoś zapotrzebowanie na pracownika). ",
obiekt: {
displayName: "Task: Submit requisition" (Zadanie: Wyślij zapotrzebowanie),
id: "2078.3",
objectType:"ibm.bpm.task"
},
opublikowano: "2012-01-09T09:57:53.783-05:00",
verb: "POST"
},
{
aktor: {
displayName: "System",
id: "ibm.bpm.system",
obraz: {
height:30,
width:30,
url: "/ProcessPortal/com/ibm/bpm/social/img/System_avatar4_30x30.png"
},
objectType: "SERVICE"
},
content: " Ta instancja została utworzona i ma nazwę Zapotrzebowanie pracownika dla (3). Jest on zaaranżowany za pomocą definicji procesu HR Open New Position (Otwarcie nowego stanowiska przez dział kadr). ",
obiekt: {
displayName: "Pracownik zapotrzebowania na (3)",
id: "2072.3",
objectType:"ibm.bpm.instance"
},
opublikowano: "2012-01-09T09:57:52.900-05:00",
verb: "POST"
}
],
totalItems:5,
więcej: false
}
<?xml version="1.0" encoding="UTF-8"?>
< schema targetNamespace= "http://rest.bpm.ibm.com/v1/data/social"
elementFormDefault= "unqualified" xmlns= "http://www.w3.org/2001/XMLSchema"
xmlns:tns = "http://rest.bpm.ibm.com/v1/data/social"
xmlns:data = "http://rest.bpm.ibm.com/v1/data/root"
xmlns:cmn = "http://rest.bpm.ibm.com/v1/data/common">
< import schemaLocation= "BPMRestData.xsd" namespace= "http://rest.bpm.ibm.com/v1/data/root" />
< import schemaLocation= "Common.xsd" namespace= "http://rest.bpm.ibm.com/v1/data/common" />
<! -- Początek strony społecznościowej -- >
<simpleType name= "StreamObjectType">
<restriction base="string">
< enumeration value="działanie " />
< enumeration value="artykuł " />
< enumeration value= "odznaka" />
< enumeration value= "zakładka" />
< enumeration value="kolekcja " />
< enumeration value="komentarz " />
< enumeration value="zdarzenie " />
< enumeration value="plik " />
< enumeration value="grupa " />
< enumeration value="obraz " />
< enumeration value="uwaga " />
< enumeration value="osoba " />
< enumeration value="miejsce " />
< enumeration value="produkt " />
< enumeration value="pytanie " />
< enumeration value="przegląd " />
< enumeration value="usługa " />
< enumeration value="wideo " />
</restriction>
</simpleType>
<simpleType name= "StreamVerb">
<restriction base="string">
< enumeration value="post " />
< enumeration value="add " />
< enumeration value="anuluj " />
< enumeration value="checkin " />
< enumeration value="delete " />
< enumeration value="ulubiony " />
< enumeration value="follow " />
< enumeration value="daj " />
< enumeration value="ignore " />
< enumeration value="zaproszenie " />
< enumeration value="łączenie " />
< enumeration value="leave " />
< enumeration value="like " />
< enumeration value="make-przyjaciel " />
< enumeration value="play " />
< enumeration value="receive " />
< enumeration value="remove " />
< enumeration value="remove-friend " />
< enumeration value="request-friend " />
< enumeration value="rsvp-może " />
< enumeration value="rsvp-no " />
< enumeration value="rsvp-yes " />
< enumeration value="zapisz " />
< enumeration value="share " />
< enumeration value="stop-następujący " />
< enumeration value="znacznik " />
< enumeration value="unulubionych " />
< enumeration value="inaczej niż " />
< enumeration value="unsave " />
< enumeration value="aktualizacja " />
</restriction>
</simpleType>
<complexType name= "PostedContent">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "message "type="string" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "PostedResult">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "posted "type=" boolean " />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "FollowedResult">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "przestrzegany "type=" boolean " />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "HelpRequest">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name= "instanceId" type="integer " />
<! -- MUSI ZAWIERAĆ -- >
< element name= "sendTo" type="string " />
<! -- MUSI ZAWIERAĆ -- >
<element name="description" type="string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "HelpResult">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "valid "type=" boolean " />
<! -- MUSI ZAWIERAĆ -- >
< element name = "method "type="string" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "ToolbarCollapsed">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "scalony "type=" boolean " />
<! -- MUSI ZAWIERAĆ -- >
< element name = "method "type="string" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "RequestValid">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "valid "type=" boolean " />
<! -- MUSI ZAWIERAĆ -- >
< element name = "method "type="string" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "StreamMediaLink">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MOŻE ZAWIERAĆ -- >
< element name = "duration "type="integer" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "height "type="integer" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "width "type="integer" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "url "type="string" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "StreamObject">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MOŻE ZAWIERAĆ -- >
< element name = "attachments "type="tns:StreamObject" minOccurs= "1 " maxOccurs= "unbounded" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "author "type="tns:StreamObject" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "content "type="string" />
<! -- MAY/POWINIEN ZAWIERAĆ -- >
< element name= "displayName" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "fileName" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "downstreamDuplicates" type="string " minOccurs= "1" maxOccurs= "unbounded " />
<! -- POWINNO ZAWIERAĆ -- >
< element name = "id "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "parent "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "image "type="tns:StreamMediaLink" />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "objectType" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "published "type="date" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "summary "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "updated "type="date" />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "upstreamDuplicates" type="string " minOccurs= "1" maxOccurs= "unbounded " />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "url "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "processName" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "processId" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "taskName" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "taskId" type="string " />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "taskText" type="string " />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "StreamActivity">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MUSI ZAWIERAĆ -- >
< element name = "actor "type="tns:StreamObject" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "content "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "generator "type="tns:StreamObject" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "icon "type="tns:StreamMediaLink" />
<! -- POWINNO ZAWIERAĆ -- >
< element name = "id "type="string" />
<! -- POWINNO ZAWIERAĆ -- >
< element name = "object "type="tns:StreamObject" />
<! -- MUSI ZAWIERAĆ -- >
< element name = "published "type="date" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "provider "type="tns:StreamObject" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "target "type="tns:StreamObject" />
<! -- MOŻE ZAWIERAĆ -- >
<element name="title" type="string"/>
<! -- MOŻE ZAWIERAĆ -- >
< element name = "updated "type="date" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "url "type="string" />
<! -- POWINNO ZAWIERAĆ -- >
< element name = "czasownik "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "replies "type="tns:StreamObject" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "ibmbpmext "type="tns:StreamObject" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "StreamObjectCollection">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MOŻE ZAWIERAĆ -- >
< element name = "items "type="tns:StreamObject" minOccurs= "0 " maxOccurs= "unbounded" />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "totalItems" type="integer " />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "url "type="string" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name= "StreamActivityCollection">
<complexContent>
< extension base="data :Data">
<sequence>
<! -- MOŻE ZAWIERAĆ -- >
< element name = "items "type="tns:StreamActivity" minOccurs= "0 " maxOccurs= "unbounded" />
<! -- MOŻE ZAWIERAĆ -- >
< element name= "totalItems" type="integer " />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "url "type="string" />
<! -- MOŻE ZAWIERAĆ -- >
< element name = "more "type=" boolean " />
</sequence>
</extension>
</complexContent>
</complexType>
< element name= "PostedContent" type="tns:PostedContent" />
< element name= "HelpRequest" type="tns:HelpRequest" />
< element name= "PostedResult" type="tns:PostedResult" />
< element name= "FollowedResult" type="tns:FollowedResult" />
< element name= "HelpResult" type="tns:HelpResult" />
< element name= "ToolbarCollapsed" type="tns:ToolbarCollapsed" />
< element name= "RequestValid" type="tns:RequestValid" />
< element name= "StreamMediaLink" type="tns:StreamMediaLink " />
< element name= "StreamObject" type="tns:StreamObject" />
< element name= "StreamActivity" type="tns:StreamActivity" />
< element name= "StreamObjectCollection" type="tns:StreamObjectCollection " />
< element name= "StreamActivityCollection" type="tns:StreamActivityCollection " />
</schema>
< soc: KolekcjaStreamActivity> <items> < actor> <displayName> Internal TW Admin user </displayName> < id> tw_admin < /id> <objectType> PERSON </objectType> < /actor> < content> help me < /content> < obiekt> <displayName> Komentarz do zapotrzebowania pracownika dla (3) (3) </displayName> <id>2078.91</id> <objectType>ibm.bpm.comment</objectType> < /obiekt> <published>2012-01-09-05:00</published> < verb> POST < /verb> </items> <items> < actor> <displayName> System </displayName> < id>ibm.bpm.system< /id> < image> <height>30</height> <width>30</width> <url>/HeritagePortal/com/ibm/bpm/social/img/System_avatar4_30x30.png < /url> < /image> <objectType> SERVICE </objectType> < /actor> < content> Ta instancja została zakończona. < /content> < obiekt> <displayName> Employee Requisition for (3) </displayName> <id>2072.3</id> <objectType>ibm.bpm.instance</objectType> < /obiekt> <published>2012-01-09-05:00</published> < verb> POST < /verb> </items> <items> < actor> <displayName> Internal TW Admin user </displayName> < id> tw_admin < /id> <objectType> PERSON </objectType> < /actor> < content> < span class= właściwość-noun> Wewnętrzny użytkownik administracyjny TW < /span> ukończono zadanie zatytułowane < span class=właściwość-noun> Zadanie: Zgłoś zapotrzebowanie < /span> i powiązane z < span class=właściwość-noun> Zgłoś zapotrzebowanie na pracownika < /span> . </content> < obiekt> <displayName> Task: Submit requisition </displayName> <id>2078.3</id> <objectType>ibm.bpm.task</objectType> < /obiekt> <published>2012-01-09-05:00</published> < verb> POST < /verb> < replies> <items> < author> <displayName> Internal TW Admin user </displayName> < id> tw_admin < /id> < image> <height>32</height> <width>32</width> < /image> <objectType> PERSON </objectType> < /author> < content> oznaczanie < span class= "bpm-user-tag"> Wewnętrzny administrator TW < /span> użytkownik </content> <objectType> COMMENT </objectType> <published>2012-01-09-05:00</published> </items> < /replies> </items> <items> < actor> <displayName> System </displayName> < id>ibm.bpm.system< /id> < image> <height>30</height> <width>30</width> <url>/HeritagePortal/com/ibm/bpm/social/img/System_avatar4_30x30.png < /url> < /image> <objectType> SERVICE </objectType> < /actor> < content> Nowe zadanie zatytułowane < span class=właściwość-noun> Zadanie: Zgłoś zapotrzebowanie < /span> zostało utworzone dla < span class= właściwość-noun> Wewnętrzny użytkownik administracyjny TW < /span> . Jest to dla < span class=właściwość-noun> Zgłoś zapotrzebowanie na pracownika < /span> . </content> < obiekt> <displayName> Task: Submit requisition </displayName> <id>2078.3</id> <objectType>ibm.bpm.task</objectType> < /obiekt> <published>2012-01-09-05:00</published> < verb> POST < /verb> </items> <items> < actor> <displayName> System </displayName> < id>ibm.bpm.system< /id> < image> <height>30</height> <width>30</width> <url>/HeritagePortal/com/ibm/bpm/social/img/System_avatar4_30x30.png < /url> < /image> <objectType> SERVICE </objectType> < /actor> < content> Ta instancja została utworzona i nazwana < span class=właściwość-noun> Zapotrzebowanie pracownika na (3) < /span> . Jest orkiestrowane przez < span class=właściwość-noun> HR Open New Position < /span> definicja procesu. </content> < obiekt> <displayName> Employee Requisition for (3) </displayName> <id>2072.3</id> <objectType>ibm.bpm.instance</objectType> < /obiekt> <published>2012-01-09-05:00</published> < verb> POST < /verb> </items> <totalItems>5</totalItems> < więcej> false < /more> < /soc: KolekcjaStreamActivity>
Domyślny typ treści toapplication/json.
{"description": "Odpowiedź na błąd WLE",
"type":"object",
"właściwości":
{"status": {"typ": "łańcuch",
"description": "Status poprzedniego wywołania funkcji API."
},
"exceptionType": {"typ": "łańcuch",
"description": "Nazwa klasy powiązana z wyjątkiem."
},
"errorNumber": {"typ": "łańcuch",
"description": "Identyfikator komunikatu wyjątku."
},
"errorMessage": {"type": "string",
"description": "Tekst komunikatu wyjątku."
},
"errorMessageParametry": {"type": [ "string"], "optional": true,
"description": "Parametry tekstu komunikatu wyjątku."
},
"programmersDetails": {"type": "obiekt", "opcjonalny": true,
"description": "Dodatkowe szczegóły wyjątku, na przykład stos wywołań."
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
< schema targetNamespace= "http://rest.bpm.ibm.com/v1/data/exception"
elementFormDefault= "unqualified" xmlns= "http://www.w3.org/2001/XMLSchema"
xmlns:tns = "http://rest.bpm.ibm.com/v1/data/exception"
xmlns:dat = "http://rest.bpm.ibm.com/v1/data/root">
< import schemaLocation= "BPMRestData.xsd" namespace= "http://rest.bpm.ibm.com/v1/data/root" />
<!--
Ten typ reprezentuje odpowiedź na błąd.
-->
< element name= "RestRuntimeException">
<complexType>
<sequence>
< element name = "status "type="string" />
< element name="Data " type="tns:ExceptionData">
</element>
</sequence>
</complexType>
</element>
<!--
Ten typ zawiera szczegółowe informacje o błędach powiązane z wyjątkiem.
-->
<complexType name= "ExceptionData">
<sequence>
< element name = "status "type="string" />
<! -- Ta opcja określa nazwę klasy języka Java dla wyjątku -- >
< element name= "exceptionType" type="string " />
<! -- Identyfikator komunikatu o błędzie -- >
< element name= "errorNumber" type="string " minOccurs= "0" />
<! -- kompletny komunikat o błędzie -- >
< element name= "errorMessage" type="string " />
<! -- Lista łańcuchów wstawionych do komunikatu o błędzie -- >
< element name= "errorMessageParameters" type="string " minOccurs= "0" maxOccurs= "unbounded " />
<!--
Stos wywołań powiązany z wyjątkiem.
Należy pamiętać, że zostanie pominięta, chyba że właściwość "server-stacktrace-enabled"
jest włączona w pliku 100Custom.xml serwera.
-->
< element name= "programmersDetails" type="string"> < /element>
<! -- Wcześniejsze odpowiedzi. Ustaw, jeśli użyto komendy masowej -- >
< element name = "responses "type="dat:BulkCommandOdpowiedzi" minOccurs= "0"> < /element>
< element name= "errorData" type="tns:ErrorData" minOccurs= "0" />
</sequence>
</complexType>
<complexType name= "ErrorData">
<sequence>
< element name = "code "type = "string" />
< element name = "data "type="string" minOccurs= "0 " />
</sequence>
</complexType>
</schema>
| Kod | Opis |
|---|---|
| 200 OK | Zakończenie powiodło się. |
| 400 Błędne żądanie | Parametry są niepoprawne lub nie są one poprawne. |
| 404 Nie znaleziono | Zadanie nie istnieje lub nie jest powiązane z poprawną instancją.
|
| 406 Nieakceptowalne | Żądany typ treści lub kodowanie treści nie jest obsługiwane. |
| 500 Wewnętrzny błąd serwera | Wystąpił poważny problem. Szczegółowe informacje o programiście są dostępne. |
8.0.0
Temat Nadrzędny: Zasób Strumienia Działań Zadań