Loading...

TIBO Interview Question and Answers (part2)


1.What are the different Concept Relationships ?
Ans :
·         inheritance
·         contained
·         reference
2.In an application, where input data is coming frommultiple sources then how to synchronize data?
Ans :
     while receiving an event in event preprocessor wehave to lock the concept instance so that no other source will be able toupdate the same concept instance sometimes it will be difficult toget lock in one shot as some other source is updating the same instance inthat situation that it’s better to put retry logic with moderateinterval and moderate number of attempts.
3.What is the difference between a Policy and Rules in BE ?
Ans :
Policies tend to be global statements about some entity: they are business directives
e.g. customers only have 1 logon session; event X must be processed in y secs.
Rules can be both business directives AND IT constructs.In BE, we map policies and business rules to concept models, state models, (production) rules, rule functions and state models.
4.What is the difference between Run To Complete(RTC) and Conflict resolution cycle ?
Ans :
RTC
begins when an external action causes changes to the Rete network.
ends when there are no more rule actions to execute as a result of that initial change.
One RTC is composed of one or more conflict resolution cycles.
CTC
 begins when TIBCO BusinessEvents builds (or refreshes) a rule action agenda
ends when a rule action is executed (or the agenda is empty)
TIBCO BE Interview Questions
5.How do we represent Policy in BE ?
Ans :
This will typically depend on the policy. If the policy is that "customers only have 1 logon session" and I am enforcing this via filtering such requests as events in BE, then I might have a single concept property called customer.logonsesion - this cannot hold an array so if I get a request for a new session while this is populated, I can either overwrite it or ignore the new request. Which I do will depend on the associated business rules for implementing this policy (which in turn I may implement as production rules and / or in a state model).
When should we using what model? State model/concept model/rule model etc.
Concept models are for static relationships (eg data relationships that do not change). State models are for entity lifecycle models - what happens to entities over time.
Rulesets (rule models) define inference behaviors - what happens when. Decision models are for specific managed decisions to be taken at specific times during event processing.
6.When will the JMS message corresponding to this event beacknowledged?
Ans :
immediately after the Event.consumeEvent calls
7.What is an Inference agent? What does it do at runtime?
Ans :
You may want to read the following chapter from BusinessEvents Architect's Guide -> Run-time Inferencing Behavior -> Runtime Architecture and Flow.
Inference Engine is the heart of BE where rules are applied on Events.
1. When an event arrives on a channel, its passed on to preprocessor and from there to inference engine (IE).
2. IE uses pattern matching (RETE algo) and working memory sets (facts created from previous events or loaded from other sources) to create a list of rules which can be applied to this particular event.
3. These rules are ordered according to priority to create rule agenda.
4. The action part of the first rule is applied on the event. This will probably change the knowledgebase or WM.
5. Action exection in step 4 forces another cycle starting from step 2 to recreate the rules agenda(forward chaining)
6. IE completes the cycle ( Run to completion - RTC cycle) once all rules have been executed and the agenda is empty.
7. The event is the consumed and concept asserted/stored into working memory.
8.Howdo you map Incoming Messages to Non-default Events ?
Ans :
Two fields in a message header instruct TIBCOBusinessEvents to map the incoming message to a specified event type:
• The field named _ns_ takes a namespace as a value. Thenamespace points to
the event type, for example,www.tibco.com/be/ontology/Events/MyEvent
• The field named _nm_ takes the name of the event, forexample, NewMyEvent
An event was defined with Time to Live equal to 10 minutes.An instance of that event arrived from a JMS destination configured withEXPLICIT_CLIENT_ACKNOWLEDGE mode and was consumed in the preprocessor.
9.Whatis Complex Event Processing?
Ans :
Complex event processing (CEP) isan emerging network technology that creates actionable, situational knowledgefrom distributed message-based systems, databases and applications in real timeor near real time. CEP can provide an organization with the capability todefine, manage and predict events, situations, exceptional conditions,opportunities and threats in complex, heterogeneous networks.
10.Whatis the scope and use of Local Destination?
Ans :
Local channels are used in rulesor rule functions to route events to an appropriate agent running in thesame engine (processing unit). Local channels are useful intwo cases:
• For applications using In Memory object management(generally used onlyfor testing)
• For certain scenarios where an inference agent isco-deployed with a queryagent.Local Destination doesn't have defaultdestination and they can be used in preprocess
Training 464760587476208118

Post a Comment Default Comments

emo-but-icon

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo