Question: What is BPEL ?.
Answer: 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.
Question: What are different parts of BPEL ?.
Answer: 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.
Question: What all BPEL templates are available in SOA Suite tool ?.
Answer: Primarily we have three types of BPEL template in SOA Suite tool.
1. Synchronous BPEL Template
2. Asynchronous BPEL Template
3. OneWay BPEL Template
Question: What all versions available of BPEL ?.
Answer: We have two versions of BPEL : 1.1 and 2.0.
Question : What is Synchronous BPEL process ?.
Answer: BPEL process is known as synchronous when it accept request and provide immediate response.
Question: What is default timeout time set for synchronous BPEL process ?.
Answer: 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.
Question: Can we have handle Synchronous BPEL timeout error with error handlers ?.
Answer: No, we cannot handle timeout error with error handlers.
Question: What all activities we get when we generate BPEL using synchronous template ?.
Answer: 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.
Question: Can we have multiple reply activities in one synchronous BPEL process ?.
Answer: Yes, we can have more than 1 reply activity in synchronous BPEL process.
Question: What is Asynchronous BPEL process ?.
Answer: BPEL process is known as asynchronous when it accept the request and provide response after some time.
Question: Do we have time limit in asynchronous BPEL process for processing ?.
Answer: No, there is no time limit in asynchronous BPEL process to complete the processing.
Question: What all activities we get when we generate BPEL using asynchronous template ?.
Answer: 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.
Question: What is OneWay BPEL process ?.
Answer: OneWay BPEL process accept the request message but does not give response.
Question: What all activities we get when we generate BPEL using oneway template ?.
Answer: When we generate oneway BPEL process then by default we get “Receive” activity. “Receive” activity is used to receive the request message.
Question: How many types of variables we can have in BPEL ?.
Answer: 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
Question: All the variables in BPEL are global in nature ?.
Answer: 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.
Question: Which activity we use in BPEL for parallel processing ?.
Answer: 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.
Question: What is Pick activity ?.
Answer: 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.
Question: How many branches we have in Pick activity ?.
Answer: 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.