Tuesday, March 1, 2011

FAQ on TIBCO



 Q)How do wait-notify resources work ?
Basically wait and notify should share a common notification configuration whichis just a schema definition for data that will be passed from notifier to waiter.
Specific instances of waiter & notifier are corrrelated via a key.
For example: when one process is in wait state for key 'Order-1', it waits tillanother process issues a notification with the same key value

Q)What is the default Axis in XPath ?
Child axis- What this means is that when you select "BOOK" from the current context, it selects a child node with that name, not a sibling with that name.
Otheraxes are parent , self , sibling etc.


Q)What are the output formats for XSLT?
XML,HTML,Text

Q)What does ' Success if no matching condition' transition mean ?
Lets say between two nodes N1 and N2, there are 3 success transitions with condition and there is no success transition without condition. If none of the conditions match then a 'Success if no matching condition' transition can be used. Also if there is a success transition and also success transitions with condition and if the condition matches then both the sucess transition (no condition) as well as the transition(s) with matching conditions are followed. So you can use 'Success if no matching condition' to prevent duplicate paths of execution.

Q)What is the Purpose of $_error variable ?
$_error variable is available in the node following the error transition. It captures the error message, error code etc.

Q)What are the cases where business process cant proceed correctly subsequent to restart from a checkpoint ?
Sending HTTP response, confirming an email/jms message etc. This is because theconfirmation or sending HTTP response has to done in the same session. When engine crashes these sessions are closed at their socket level. In such cases send response/confirm before checkpoint.

Q)Which group do you use to wait for multiple events and proceed with the first tooccur ?
A 'Pick First Group'.

Q)When is a 'Generate Error' activity useful?
When you handle an error inside a called subprocess or group and want to rethrowthe error to the caller(happens by default if you dont handle the error in thecalled process)

Q)Which activity is used for detecting duplicate message processing?
CheckPoint activity - Specify the uniqueID for the duplicate key field and engine maintains list of these key fields. When a process come to checkpoint activitywith the same value for duplicate key which already exists, it throws a DuplicateException. An error transition can then handle this case.
 Give an example where graceful migration of service from one machine to anotheris not possible.HTTP Receiver. In this case the receiver on new machine starts listening on thesame port, but you need to redirect requests from the old machine to the new one.

Q)What are the types of adapter services ?
Types of adapter services are :
Subscriber Service
Publisher Service
Request-Response Service
Request-Response Invocation Service

Q)If the business process needs to invoke another web service which resource do you use ?
SOAP request reply activity. If the business process needs to be exposed as SOAPservice use SOAP Event Source in conjunction with SOAP Send Reply or SOAP SendFault.

Q)What is the functionality of the Retrieve Resources resource?
It can be used to serve the wsdl file of a SOAP Event Source to a (http) client.Construct a process like: HTTP Receiver -> Retrieve Resources -> Send HTTP Response
Now the WSDL file for a SOAP service can be retreived using the http request

http://<host>:<port>/<path>/<resourceName>?wsdl

where 'path' is the folder path to the SOAP Event Source process and 'resourceName' is the name of the process

Example : http://purch:8877/Purchasing/GetPurchaseOrder?wsdl


Q)What is the scope of user defined process variables ?
The scope of user defined process variables is only the process in which it is defined.(Not even inside a sub process that is invoked from this process)

No comments:

Post a Comment