Home » Archived » SeMantic Information Logistics Architecture (SMILA) » Run BPEL by a servlet(BPEL, servlet, service)
Run BPEL by a servlet [message #1397203] |
Wed, 09 July 2014 11:08 |
Lorenzo Eccher Messages: 1 Registered: July 2014 |
Junior Member |
|
|
Hi all.
I have a pipelet (and a pipeline managing the pipelet) that called via rest accepts an input like this:
{
"fielda": "valuea",
"fieldb": {
"fieldba": "valueba",
"fieldbb": "valuebb",
"fieldbc": "valuebc"
"fieldbd": [
"valuebd1",
"valuebd2",
...,
"valuebdN"
],
"fieldbe": true
}
}
and gives me back something like this
{
"fielda": "valuea",
"fieldb": {
"fieldba": "valueba",
"fieldbb": "valuebb",
"fieldbc": "valuebc"
"fieldbd": [
"valuebd1",
"valuebd2",
...,
"valuebdN"
],
"fieldbe": true
}
"results":
[
"result1",
"result2",
...,
"resultN"
]
}
The pipeline has to be called in some circumstances that depends on user interaction with UI and some data stored in objectstore. The UI send me just fielda=valuea and needs the output of pipeline and use it in json format (like calling it using REST interface)
I have 3 ways to do that:
1. Using a pipelet in same pipeline that checks the prerequisites and pass to next pipelet the needed inputs
2. Using a servlet that checks the prerequisites and calls the pipeline via a specific service like searchservlet does.
3. Using a servlet that checks the prerequisites and call the pipeline using a rest client.
I preferred to use the 1 then 2 and at least 3.
My questions are on points 1 and 2:
1. how can I create and pass in my pipelet the input needed by next pipelet (see 1st code section)
2. how can I call my custom pipelet like searchservlet does? How can I send it the input like one in 1st code section?
Thank you
|
|
|
Re: Run BPEL by a servlet [message #1398011 is a reply to message #1397203] |
Thu, 10 July 2014 13:33 |
Andreas Weber Messages: 26 Registered: July 2009 |
Junior Member |
|
|
Hi Lorenzo,
if your way (1) is an alternative, who calls the pipeline there? Is it
invoked via REST API?
I also don't get your point in question (1). If you can pass the input
to the pipeline (resp. first pipelet), why should you have to create it
for the second pipelet?
Regards,
Andreas
Am 09.07.2014 17:01, schrieb Lorenzo Eccher:
> Hi all.
>
> I have a pipelet (and a pipeline managing the pipelet) that called via
> rest accepts an input like this:
> {
> "fielda": "valuea",
> "fieldb": {
> "fieldba": "valueba",
> "fieldbb": "valuebb",
> "fieldbc": "valuebc"
> "fieldbd": [
> "valuebd1",
> "valuebd2",
> ...,
> "valuebdN"
> ],
> "fieldbe": true
> }
> }
>
> and gives me back something like this
>
> {
> "fielda": "valuea",
> "fieldb": {
> "fieldba": "valueba",
> "fieldbb": "valuebb",
> "fieldbc": "valuebc"
> "fieldbd": [
> "valuebd1",
> "valuebd2",
> ...,
> "valuebdN"
> ],
> "fieldbe": true
> }
> "results":
> [
> "result1",
> "result2",
> ...,
> "resultN"
> ]
>
> }
>
> The pipeline has to be called in some circumstances that depends on user
> interaction with UI and some data stored in objectstore. The UI send me
> just fielda=valuea and needs the output of pipeline and use it in json
> format (like calling it using REST interface)
>
> I have 3 ways to do that:
>
> 1. Using a pipelet in same pipeline that checks the prerequisites and
> pass to next pipelet the needed inputs
>
> 2. Using a servlet that checks the prerequisites and calls the pipeline
> via a specific service like searchservlet does.
> 3. Using a servlet that checks the prerequisites and call the pipeline
> using a rest client.
>
> I preferred to use the 1 then 2 and at least 3.
>
> My questions are on points 1 and 2:
> 1. how can I create and pass in my pipelet the input needed by next
> pipelet (see 1st code section)
>
> 2. how can I call my custom pipelet like searchservlet does? How can I
> send it the input like one in 1st code section?
>
> Thank you
|
|
|
Goto Forum:
Current Time: Tue Mar 19 02:28:07 GMT 2024
Powered by FUDForum. Page generated in 0.02281 seconds
|