Thursday, July 16, 2015

#418 Process Cloud Service - REST API

Using the REST API, you can integrate with applications
outside of Oracle Process Cloud Service.

So say the ORCL docs - so what does this look like?





















The above screenshot shows a few of these services.
Click here to view the page.

Let's look at retrieving tasks for a user -

























So how do we go about trying this out?
Check out the QuickStart -
















I Install cURL -














I test cURL - curl http://curl.haxx.se


















I now try retrieving the tasks for our user, phillip -

Here is what he currently sees in workspace -













C:\Program Files\cURL\bin>curl -u phillip:welcome1 -H "Content-Type:application/
json" -H "Accept:application/json" -X GET http://localhost:7003/bpm/api/1.0/task
s
"title":"Filtered Task List for phillip","tasks":[{"href":"http://localhost:
7003/bpm/api/1.0/tasks/200041","length":0,"rel":"self","title":"Approve Book Order",
"actionList":
...
...
"creatorName":"renate","fromUserDisplayName":"rena
te","fromUserName":"renate","number":200041,"priority":3,"createdDate":"2015-07-
16 05:11:31","state":"ASSIGNED","ownerRole":"NCOrderApp.Process Owner",
"processName":"MyOrderProcess","assignees":{"levels":0,"identities":[]}}],"taskcount":1,"
user":{"href":"http://localhost:7003/bpm/api/1.0/identities/user/phillip",
"length":0,"rel":"user"}}
C:\Program Files\cURL\bin>


No comments:

Post a Comment