Do we have any Event Driven functionality in Biztalk

Hi,
Do we have any in-build event driven functionality in Biztalk? time-bound like.
Few scenarios:
1. If orchestration is running more then 5 mints then it should be alerted to admin.
2. Alert need to be raised if bulk of messages are suspended.
Thanks

Hi Narasaiah,
If you don't have resource to go for SCOM/BizTalk360, then
You can consider using some operation scripts using WMI/Operations DL/SQL query which can be executed periodically using a schedule task (or as service).
This script can check for the condition as you have specified and send a notification.
Following scripts can give you some idea. Note: These scripts are just to give you an idea and get started, they are not tested.
WMI for an orchestration which is Active state for 5 minutes:
strComputer = "."
Dim dtCurretTime, dt5Mins
dtCurretTime = Now ()
dt5Mins = DateAdd("h",-5,dtCurretTime)
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftBizTalkServer")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM MSBTS_ServiceInstance WHERE ServiceStatus = 4 AND ActivationTime >= dt5Mins",,48)
If colItems.Count >0
Wscript.Echo "Instance" & colItems.ServiceName" has been in Active state"
End If
Here the "MSBTS_ServiceInstance" would give you the details about the orchestration
And SQL query to get the count of suspended message:
SELECT
count(InstancesSuspended.)uidInstanceID
FROM InstancesSuspended
LEFT OUTER JOIN [Services]
on InstancesSuspended.uidServiceID = [Services].uidServiceID
LEFT OUTER JOIN Modules
on Modules.nModuleID = [Services].nModuleID
LEFT OUTER JOIN Instances
on Instances.uidInstanceId = InstancesSuspended.uidInstanceID
WHERE InstancesSuspended.DtCreated between DATEADD(dd,-7,GETUTCDATE()) and GETUTCDATE()
and InstancesSuspended.nErrorCategory=0
Instances.nState = 4 or Instances.nState = 32
//Instances.nState as State -- 4 = Suspended (resumable), 32 = Suspended (not resumable)
ORDER BY InstancesSuspended.dtCreated desc
As mentioned, fine-tune these scripts, run them in periodically and send notification if the condition matches.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Test Script for Event driven function

    Hi,
    i m new to this product. i have one doubt , is it possible to write test scripts for event driven functions ?
    if possible, could you please share some samples.?
    Thnk you.
    Bala.

    Yes.
    At the simplest, you could have a test like this:
    [Test]
    public function shouldThrowEvent():void {
      var eventCalled:Boolean = false;
      var someEventDispatcher:SomeEventDispatcher = new SomeEventDispatcher();
      someEventDispatcher.addEventListener( "someEvent",
              function ( event:Event ) {
                   eventCalled = true;
      assertTrue( eventCalled );
    I would recommend looking at docs.flexunit.org for more information.
    Mike

  • Does Apple have any event for Black Friday this year?

    I'm planning on buying a Macbook Pro Retina this holiday season. I'm wondering if Apple are gonna have any event for this Black Friday as they usually have.
    Thanks.

    Anyone here with any more information than what is already published in the general press is under non-disclosure agreement, and can't say.
    Best Buy has been pushing the phones BIG TIME.
    Buying AppleCare at the same time? Check B&H Photo for great bundles (closed Saturdays).
    Watch the news, or check the Apple Store site.

  • Event Listening Function Return

    I don't know if it is possible, but is there any way that you
    can have a event listening function return a value? Thanks for any
    suggestions!

    Substitute this NSLog for yours and post back result.
    NSLog(@"Description is: %@", [myresult description]);

  • Can i cal a javascript function from a jsp without occurance of any event??

    Hi,
    Below is the problem that i am facing:
    Problem:
    I want to open a new url from a java class.
    I have a java class. I am calling a jsp from this java class. JSP does some validations and after these validations, opens a url in new window. But I want to append some runtime parameters in the url and pass it through post method in jsp so that end user cannot see these parameters. Can any one tell me how to code for this schenario?
    Class A calls X.jsp
    X.jsp
    1. do some validations
    2. call some javascript function
    3. append the parameters in the url using dopost method
    One more thing to mention, when calling this jsp, i need to show this jsp to user, therefore there would not be any event in this jsp. I need soluions for following points:
    1. Without occurance of any event, my javascript function must be called
    2. desired parameters must be appended in the url
    3. New url should be opened and the parameters should not be visible to end user.(ie parameters need to be passed via post method in jsp)
    Appreciate your help.
    Thanks,
    Rajeev

    You are all mixed up. Here's how it works: a JSP is a program that executes on your server. It generates HTML (which may include Javascript) and sends that to the client, most likely a browser. When it has finished generating and sending all that HTML, the browser accepts it and renders it. The browser may execute Javascript as it renders the HTML, or it may execute Javascript later upon a click or mouse action or whatever.
    So your idea that the JSP will execute some Javascript is a non-starter. And that business about the JSP appending parameters and using the POST method is all backwards, unless perhaps you meant that the JSP would generate HTML containing a form that does that.
    Anyway you need to clarify your thought based on how things actually work. Confounding the two phases (generating HTML on the server, rendering it on the client) will make it very difficult for you to get anywhere.

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • My events no longer have any sound in IMovie 10.0

    I no longer have any sound on my movie files. 

    Try this - file - move event to library, then create new library on external hdd. It works for me!

  • Got to end of trial period for Adobe reader XI and cannot revert back to old version or install another version b/c it says I have a newer more functional version, so now I've got no reader at all and cannot fix. Any ideas how to overcome this?.

    Got to end of trial period for Adobe reader XI and cannot revert back to old version or install another version b/c it says I have a newer more functional version, so now I've got no reader at all and cannot fix. Any ideas how to overcome this?.

    YOu need to be clear about the products you are using, so we can help you. In particular there is no trial of Adobe Reader, it is free and keeps running. Sounds like you are using some versions of Acrobat - which?
    YOu must properly uninstall the trial, don't just delete files or you may get a mess impossible to recover.

  • Using a dll function that does not have any inputs from a VI

    Hello all, I'm very new to Labview, I have wraped a dll library using the LVlib wizard and now I am trying to use it in a project.  I have a function that does not take any inputs or return any thing except that a struct is populated with some status information as part of the call.  I am able to draw a StartInterface VI because my void startInterface(const char* configFile, struct status_struct* status) takes the location of a configutation file as an input. But I can not figure out how to connect my Call Library Node to my a function vi that does not have any inputs ( void shutdownInterface(struct status_struct* status)). 
    Note that the status struct is deffined to be only and out put at the creation of the LVLIB.
    Thanks, Mike

    Thanks for the responses guys:
       I think I am aware of the conotations of inputs and outputs when I created the lvlib I specified the argument  struct status_struct* status as only an output instead of the default of input and output.
    I do not think that I am doing anything as complex as function callbacks. My immediate goal is to have an executable (I have application builder) with two buttons and two three text fields one text field for the input of the config file, two text-fields for a cstring that is contained in the status struct; one button to start the interface and one button to stop the interface. 
    This is in all likely hood a case of my self being too dense and missing something fundimental ;-)  I just can't figure out how to wire the shut down method after I've configured the call library node. See the attached pictures:
    Attachments:
    Start.jpg ‏7 KB
    shurtdown.png ‏9 KB

  • I've just downloaded an update to my Flash player and it seems to have disabled all video function on my Macbook. Any advice?

    I've just downloaded an update to my Flash player and it seems to have disabled all video function on my Macbook. Any advice?

    Hi MamaTabs,
    If you are having issues signing in to iCloud on your Windows machine, you may find some of the troubleshooting in the following article helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    Also, you may want to make sure that you are running the most recent version of iCloud Control Panel for Windows:
    Apple: iCloud Control Panel 3.1 for Windows
    http://support.apple.com/kb/dl1455
    Regards,
    - Brenden

  • HT2513 I have a message that I cannot eliminate. "The Anniversary calendar does not support events". I cannot find any event associated with the anniversary calendar. In fact I have deleted the anniversaries from my calendar. any ideas?y

    I have started to use ICal and yesterday started to receive a message "The Anniversary valendar does not support events". I have searched my calendar events and cannot find any event associated with the anniversary calendar. I have turned off the anniversary calendar and deleted fro my calendar and the message still occurs. The MacBook Pro that I sync does not have this message. Even when ICal is turned off the message still occurs. Any ideas?

    I have started to use ICal and yesterday started to receive a message "The Anniversary valendar does not support events". I have searched my calendar events and cannot find any event associated with the anniversary calendar. I have turned off the anniversary calendar and deleted fro my calendar and the message still occurs. The MacBook Pro that I sync does not have this message. Even when ICal is turned off the message still occurs. Any ideas?

  • Any plans to enhance the Event Booking functionality?

    Hi,
    At the moment the Event Booking functionality is very limited.
    Are there any plans in the near future to enhance how it works to include things like:
    An end date for an event - at the moment it is impossible to indicate that an event goes for more than 1 day.
    Easy payment for bookings - while you can currently take payments for books it is near impossible for customers to easily book more than 1 event at a time or book for multiple people (you either need to use custom javascript to calculate the cost) or reply on the customer to calculate the cost.
    Use vouchers for bookings. Event bookings should really use the same checkout as the shop so customers can use vouchers and discount codes. The way I see it is bookings are just a unique type of product.
    Thanks
    Madeleine

    As Mike says, it actually works rather well. 
    The only possibly confusing bit is that there is a "To:" box and "CC" and "Bcc" buttons along with a button for a LR Address book.  Once you know to ignore these it works just fine with Thunderbird and presumably other email clients.

  • Do I have any function/way to divide the rows into un-equal size buckets?

    Just like the function NTILE divides the rows into almost equal size buckets, do we have any way to divide the rows into un-equal (randomly decide) buckets so that eg. I can get 4 rows in bucket_1, 38 rows in bucket_2, 17 in bucket_3, ..... Only things is that each bucket should have rows from 1 to 50. (fixed limit).

    with source_table as (select object_type, object_name from all_objects where rownum <= 100),
         t            as (select rownum as rn, s.* from source_table s),
         cnt          as (select count(*) cnt from t),
         bucket       as
         ( select bucket_id, bucket_width,
               sum(bucket_width) over (order by bucket_id) - bucket_width + 1 as rn_start
             from
             ( select level as bucket_id, ceil(dbms_random.value(0, 50)) as bucket_width
                 from cnt
                 connect by level <= cnt
    select bucket_id, object_type, object_name from t, bucket
      where rn between rn_start and rn_start + bucket_width - 1
      order by bucket_id
    ;

  • I have acrobat pro on my lap top and recently installed acrobat pro on my Mac Mini, but the text recognition function is not working, does anyone have any advice on how to remedy this problem?

    I have acrobat pro on my lap top and recently installed acrobat pro on my Mac Mini, but the text recognition function is not working, does anyone have any advice on how to remedy this problem?

    On my laptop when I open up a pdf file and do a search for a particular
    text phrase it prompts me to run a character analysis.  Whereas on my mac
    mini, when I try to engage the same process it just says it couldn't find
    the phrase and doesn't even try and run a character analysis. I tried
    clicking on the tool bar and the recognize text tab but nothing there seems
    to do anything.
    In trying to figure out the issue on my own I noticed one thing.  I run a
    small law firm in St. Louis and I scan in all my files to which are
    subsequently emailed to my outlook account where I will save them as pdf's
    to their respective folders.  On my laptop when I open up an email from my
    scanner I see the image of a acrobat document next to the attachment
    paperclip symbol.  However, when I open up the same email on my mac mini I
    notice instead of an acrobat file image it shows a Preview file image (the
    program used to open up pdf's before I installed acrobat).
    Hope this helps!
    Sincerely,
    Jonathan McAllister

  • My Email does not have any functions on the bottom bar?

    My Email does not have any functions on the bottom bar?
    I open an email and there no functions to delete forward or reply with.  Anyone have an idea?

    Hi
    Just to clarify what your saying under menu > settings > Connectivity the only option you can see is Bluetooth? There are no other options to select?
    Because under the connectivity menu you should be able to Network, WiFi, Bluetooth, USB, Settings, Connection manager, Mobile data tracker, Data Transfer, Video sharing, Admin settings and play via radio.
    All the options should be visible on the connectivity menu on a N8 with Nokia Belle installed.
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

Maybe you are looking for