Skip to main content



      Home
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 07:08 Go to next message
Eclipse UserFriend
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 09:33 Go to previous message
Eclipse UserFriend
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
Previous Topic:Manually add external WSDL invocation to existing BEPL stub
Next Topic:Milestone 1.3-M1
Goto Forum:
  


Current Time: Tue Jul 15 12:36:26 EDT 2025

Powered by FUDForum. Page generated in 0.03494 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top