Oracle OSB-SOA-BPEL Interview Question and Answer – Part 15

In this article, we will discuss interview question with their justification on Oracle OSB, SOA and BPEL

This is part-15 of Oracle OSB-SOA-BPEL interview question series

Q) What is the first activity in the BPEL process ?

  • It could be either receive activity or pick activity depending on the business requirements

Q) What is the usage of switch activity or scenario for which switch activity can be used ?
Q) How Switch activity can be used ?

  • Switch activity will have number of branches with otherwise (default) branch
  • Based on the request payload, we can redirect the flow to one of the branch
  • We could have any number of branches and an optional otherwise in case none of the branches satisfy the condition in the switch activity

Q) How to transform request payload received at the proxy service end to the request payload of business service ? (Similar for response payload)

  • Use replace node to transform PS request payload to BS request payload
  • Additionally to enrich the BS request payload use insert node after invoking service callouts
  • We could also use XQuery transformation and this xq file can be used in the replace node for transformation
  • Use XQuery Transformation & use AssignàReplace combination

Q) Explain composite.xml ?

  • Describes the entire SOA composite application

Q) When we create a BPEL component, then what are various component files generated ?

  • .xsd under XSD folder – to represent xsd schema for inputs & outputs used in the .wsdl file
  • .wsdl – web service that can be invoked which defines input/output & client interface and operation it supports & other features
  • .bpel – contains the details of the activities used for bpel process & variables, scope, partner links added to the bpel process flow
  • .componentType – this is to represent component definition for the composite editor OR Describes the services and references for the BPEL process service component

Q) When we create a Mediator component, then what are various component files generated ?

  • .xsd under XSD folder – to represent xsd schema for inputs & outputs used in the .wsdl file
  • .wsdl – web service that can be invoked which defines input/output & client interface and operation it supports & other features
  • .mplan – This file contains Oracle Mediator metadata. This is where configure routing logic & perform transformation, validation, Schematron validation and assign values, if any
  • .componentType – this is to represent component definition for the composite editor OR Describes the services and references for the mediator service component

 Q) When we create a Human Task component, then what are various component files generated ?

  • .xsd under XSD folder – to represent xsd schema for inputs & outputs used in the .wsdl file
  • .wsdl – web service that can be invoked which defines input/output & client interface and operation it supports & other features
  • .task – specifies the human task settings (title, assignee, etc)
  • .componentType – this is to represent component definition for the composite editor OR Describes the services and references for the mediator service component

 Q) When we create a Business Rules component, then what are various component files generated ?

  • .xsd under XSD folder – to represent xsd schema for inputs & outputs used in the .wsdl file
  • .wsdl – web service that can be invoked i.e.; interface
  • .rules – business rules dictionary for containing ruleset definition, rule, fact, globals
  • .decs – business rules metadata for defining mapping of decision service operation to the decision functions that can be executed
  • .componentType – this is to represent component definition for the composite editor

 Q) What are the configuration files in adapters ?

  • .jca file & .wsdl file

 Q) When u will go for Sync process ?

  • Whenever the services returns the response in few seconds, it is recommended to go for synchronous BPEL process if not the BPEL process should be Asynchronous the reason is calling application can’t proceed further in case of synchronous process

Q) Can I call an asynchronous process from a synchronous process?
Q) Are there any limitations like, how much time is permissible for async process to return ?

  • Yes, synchronous process can call asynchronous process
  • There are no limitations. Maximum default time permissible is 45sec and it could be increased depending on the business scenario using the attribute SyncMaxWaitTime

Q) How to configure syncMaxWaitTime property ?

  • Depending upon the performance requirements, syncMaxWaitTime property value needs to be increased or decreased.
  • There are two ways to modify its value: Using BPEL Console and Modifying “domain.xml” file

Q) How to ensure that parallel flows implemented through Flow activity are ‘really’ parallel ?

  • Set the partner link attribute “nonBlockingInvoke” to true

 Q) How to return a fault from BPEL process, do we need to change WSDL and is it need to be done manually ?

  • Very well, we can return fault from both Asynchronous & Synchronous BPEL process
  • For this include fault message in the WSDL
  • In Synchronous bpel process, instead of response message we can return fault message

 

Folks, it’s your turn to comment & suggest for improvement

Note: We have taken inputs from various folks and other weblog for making this comprehensive set of Oracle SOA-OSB interview & answers

 

Read Also:

 

Happy Coding !!
Happy Learning !!

Oracle OSB-SOA-BPEL Interview Question and Answer - Part 16
Oracle OSB-SOA-BPEL Interview Question and Answer - Part 14