Topic
  • 2 replies
  • Latest Post - ‏2013-04-19T11:34:38Z by Anoop_m
Anoop_m
Anoop_m
32 Posts

Pinned topic Launch BPD from Browser

‏2013-04-18T04:21:16Z |

Hi All,

We have a requirement to start page by providing a URL to end user and not from Process Portal. We are using BPM 8.0.1.1 and the first activity in the BPD is a Coach.

I know that this topic discussed many time in this forum, unfortunately couldn't reach a conclusion whether we can start page from browser directly or not.

I have gone through topic https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014643535 and there I saw some comments to user REST API.

I tried to use REST API tester, and when I invoke I can see some output in the form of text/xml (I'm totally new to REST API- may be Im missing some basics here). Can some one help me to understand how to invoke BPD from browser and display the page directly?

Thanks

Anoop

  • spriet
    spriet
    1 Post

    Re: Launch BPD from Browser

    ‏2013-04-18T18:28:35Z  

    Hello,

     

    What are you getting by using the REST API?   

    http://pic.dhe.ibm.com/infocenter/dmndhelp/v8r0mx/index.jsp?topic=%2Fcom.ibm.wbpm.bspace.ref.doc%2Frest%2Fbpmrest%2Frest_bpm_wle_v1_process_post_start.htm

     

    Do you have to pass in any input parameters into the process?  If so then you have to pass them via params.

     

    Dave Spriet, BPM Architect, BPM SWAT

  • Anoop_m
    Anoop_m
    32 Posts

    Re: Launch BPD from Browser

    ‏2013-04-19T11:34:38Z  
    • spriet
    • ‏2013-04-18T18:28:35Z

    Hello,

     

    What are you getting by using the REST API?   

    http://pic.dhe.ibm.com/infocenter/dmndhelp/v8r0mx/index.jsp?topic=%2Fcom.ibm.wbpm.bspace.ref.doc%2Frest%2Fbpmrest%2Frest_bpm_wle_v1_process_post_start.htm

     

    Do you have to pass in any input parameters into the process?  If so then you have to pass them via params.

     

    Dave Spriet, BPM Architect, BPM SWAT

    Hi Dave,

    i tried to create a simple test BPD which access no input and with one coach in it. and I have tried to access it via browser

    http://localhost:9080/rest/bpm/wle/v1/process?action=start&bpdId=25.0c8628ba-70ea-4c2d-a624-ed67903f471d&processAppId=2066.1fef3908-6803-4050-9269-67ce685d6432

     

    I got above URL using http://localhost:9080/rest/bpm/wle/v1/exposed/process

    {"status":"200","data":{"exposedItemsList":[{"type":"process","itemID":"25.0c8628ba-70ea-4c2d-a624-ed67903f471d","itemReference":"/25.0c8628ba-70ea-4c2d-a624-ed67903f471d","processAppID":"2066.1fef3908-6803-4050-9269-67ce685d6432","snapshotID":"2064.8cc16a53-6a1b-4244-bef5-80aa094bc73e","snapshotCreatedOn":"2013-04-18T04:53:58Z","display":"Initiate","tip":true,"branchID":"2063.fe50d101-1fc9-403b-9003-f2bafe38dee6","branchName":"Main","startURL":"/rest/bpm/wle/v1/process?action=start&bpdId=25.0c8628ba-70ea-4c2d-a624-ed67903f471d&processAppId=2066.1fef3908-6803-4050-9269-67ce685d6432","ID":"2015.84"},{"type":"process","itemID":"25.c904b3b1-afc1-4698-bf5a-a20892c20275","itemReference":"/25.c904b3b1-afc1-4698-bf5a-a20892c20275","processAppID":"2066.9ab0d0c6-d92c-4355-9ed5-d8a05acdc4b0","snapshotID":"2064.3f9ac503-c047-4bd2-8022-a8ca1eb73647","snapshotCreatedOn":"2013-04-07T16:23:41Z","display":"Standard HR Open New Position","tip":true,"branchID":"2063.1a52abd6-b068-4f9e-91a9-ded9793eb34e","branchName":"Main","startURL":"/rest/bpm/wle/v1/process?action=start&bpdId=25.c904b3b1-afc1-4698-bf5a-a20892c20275&processAppId=2066.9ab0d0c6-d92c-4355-9ed5-d8a05acdc4b0","ID":"2015.31"},{"type":"process","itemID":"25.5cfad322-f0d6-4298-9124-bd11941ab600","itemReference":"/25.5cfad322-f0d6-4298-9124-bd11941ab600","processAppID":"2066.1fef3908-6803-4050-9269-67ce685d6432","snapshotID":"2064.ab13e44d-5d0b-48d5-a74f-4910b8da1484","snapshotCreatedOn":"2013-04-19T11:29:24Z","display":"test","tip":true,"branchID":"2063.fe50d101-1fc9-403b-9003-f2bafe38dee6","branchName":"Main","startURL":"/rest/bpm/wle/v1/process?action=start&bpdId=25.5cfad322-f0d6-4298-9124-bd11941ab600&processAppId=2066.1fef3908-6803-4050-9269-67ce685d6432","ID":"2015.253"}]}}

     

    When I try URL http://localhost:9080/rest/bpm/wle/v1/process?action=start&bpdId=25.0c8628ba-70ea-4c2d-a624-ed67903f471d&processAppId=2066.1fef3908-6803-4050-9269-67ce685d6432  browser I am getting HTTP 400 Bad Request

     

    thanks

    Anoop