Tuesday 2 February 2016

Interview Questions for BPEL

1)What is BPEL ?.
 BPEL stands for Business Process Execution Language, it is one of the component of SOA Suite tool. BPEL is a XML based language used to design business process/flows. We perform service orchestration in BPEL.
2) What are different parts of BPEL ?.
 Below are different parts of BPEL as mentioned below.
1. Service Interface: A WSDL describing the functionality of the BPEL process. The service interface provides the end user a way to interact with the BPEL process component using Service Interface / Service Binding.
2. Activities: units of work. The actual elements that make up the BPEL process flow or sequence of instructions to be executed.
3. Partner links: also called Reference bindings. A partner link describes the roles played for the interaction between the BPEL process and the service it invokes.
3)What all BPEL templates are available in SOA Suite tool ?.
 Primarily we have three types of BPEL template in SOA Suite tool.
1. Synchronous BPEL Template
2. Asynchronous BPEL Template
3. OneWay BPEL Template
4) What all versions available of BPEL ?.
 We have two versions of BPEL : 1.1 and 2.0.
5) What is Synchronous BPEL process ?.
BPEL process is known as synchronous when it accept request and provide immediate response.
6) What is default timeout time set for synchronous BPEL process ?.
 Default setting is 30 seconds that means synchronous BPEL process needs to complete the process within 30 seconds and if it exceeds this limit then it throw time out error.
7)Can we have handle Synchronous BPEL timeout error with error handlers ?.
 No, we cannot handle timeout error with error handlers.
8) What all activities we get when we generate BPEL using synchronous template ?.
 When we generate synchronous BPEL process then by default we get “Receive” and “Reply” activity. “Receive” activity is used to receive the request message and “Reply” activity is used to send the response back.
9)Can we have multiple reply activities in one synchronous BPEL process ?.
 Yes, we can have more than 1 reply activity in synchronous BPEL process.
10) What is Asynchronous BPEL process ?.
 BPEL process is known as asynchronous when it accept the request and provide response after some time.
11)Do we have time limit in asynchronous BPEL process for processing ?.
 No, there is no time limit in asynchronous BPEL process to complete the processing.
12)What all activities we get when we generate BPEL using asynchronous template ?.
 When we generate asynchronous BPEL process then by default we get “Receive” and “CallBack” activity. “Receive” activity is used to receive the request message and “CallBack” activity is used to send the response back.
13) What is OneWay BPEL process ?.
 OneWay BPEL process accept the request message but does not give response.
14) What all activities we get when we generate BPEL using oneway template ?.
 When we generate oneway BPEL process then by default we get “Receive” activity. “Receive” activity is used to receive the request message.
15) How many types of variables we can have in BPEL ?.
 In BPEL, we can have three types of variables.
1. Simple Types: E.g. String, Int, double, float etc.
2. Element Type: Based upon schema element
3. Message Type: Based upon WSDL message
16) All the variables in BPEL are global in nature ?.
This depends how we define the variable, if we define the variable at BPEL level then it becomes global, but if we define variable at scope level then it becomes local. Global variables can be accessed anywhere in the BPEL process but local variables can only be accessed in that scope only.
17) Which activity we use in BPEL for parallel processing ?.
 We use Flow & FlowN activities for parallel processing in BPEL.
1. Flow activity: It is used when we want to perform two different operations/logic in parallel and we know about those steps that at design time.
2. FlowN activity: It is used to process same type of messages in parallel and used when we don’t know how many messages we can receive at design time.
18) What is Pick activity ?.
 Pick activity is used when we following scenario.
1. When we invoke asynchronous reference from BPEL and we need response back in certain time frame and if we got response after that time then we need to throw exception.
2. When we want to have multiple entry point for any composite. E.g. Our process can be initiated by JMS queue and it is also initiated by File polling.
19) How many branches we have in Pick activity ?.
 We have two branches in pick activity.
1. OnMessage: This is similar to “Receive” activity. This is used when we want to receive the message from source or reference service.
2. OnAlarm: In this branch we set the time i.e. used to set expiry time.

No comments:

Post a Comment