Sajay

Life, The Universe and Everything Distributed.

May, 2007

Posts
  • Sajay

    Speaking at Techmela'07

    • 0 Comments
    Microsoft TechMela 2007 | June 14, 15, 16 | Renaissance, Mumbai

    Calling all developers, IT pros, architects, designers and technology enthusiasts...
    Here's all you wanted to know about TechMela 2007

     
    TechMela is a fusion of the latest technologies, business gurus, and structured learning experiences - all you can ask for, in one grand, mother-of-all-tech-events!

    Creating many pathways to knowledge exchange, TechMela comprises of technology presentations, scenario showcases, experience zones and discussion forums and parallel hands-on learning sessions, besides lots of networking opportunity, and of course - tonnes of fun!

    This is one event you simply can't afford to miss - no matter which technology stream you work in, or which level you work at.


     
     
    3 Days  |  4 Theatres  |  7 Streams  |  21 Tracks  |  150 Sessions  |  300 Labs... One place, at one time!   Register now!

    Agenda
     
    Agenda

      Participation Fee
    INR 9,000/- per participant

    Early Bird Offer
    INR 1,000/- off on the Individual Conference Participation Fee (offer ends 22nd May, 2007)
    For group discounts, write to techmela@endtoend.in

    Star Speakers
    Bijoy Singhal, Developer Evangelist
    Derek Snyder, Product Manager - Mobile and Embedded Devices Group
    Gurpreet S Pall, Director
    Janakiram M S V, Developer Evangelist
    Loke Uei Tan, Technical Product Manager - Mobile and Embedded Devices Group
    Mel Sampat, Program Manager - Windows Mobile
    Mike Hall, Senior Technical Product Manager - Mobile and Embedded Devices Group
    Pandurang Nayak, Developer Evangelist
    Ranjana Jain, IT Pro Evangelist
    Ravi Shankar, IT Pro Evangelist
    Vignesh Doraiswamy, Embedded Developer Evangelist
    Vineet Gupta, Dev Evangelist
    Vinod Kumar, IT Evangelist

     

    For further details or queries, email techmela@endtoend.in

    MUMBAI: RSVP : +91.22.6502.1700, FAX: +91.22.4005.9922
    BANGALORE: RSVP: 080- 4116 1411, FAX: 080- 2521 3656
    CHENNAI: RSVP: 044-2472 8113. FAX: 044-2473 4247
    DELHI: RSVP: 011- 46552158, FAX: 011- 26223485


       

    Gold Sponsor

    Motorola
       
    Exhibit Booth Sponsors

    O2        Texas Instruments
     
     

    © 2007 Microsoft Corporation (India) Pvt. Ltd. | All Rights Reserved | Terms of Use | Privacy Statement | Unsubscribe
    If you are not able to view this email properly, please click here.

     
  • Sajay

    Musings on Workflow Terminated and Exception Handling

    • 3 Comments

    When a workflow runs an activity and that activity throws some kind of unhandled exception you would notice that your workflow get terminated. I have see in many articles that explain how the termination happens. Now this is fine only for a rare set of hello world scenarios. When it comes to an enterprise application we usually expect to notify that some error has happened and probably redo our work.

     

    Now if the workflow terminates how the heck are we supposed to re-execute the workflow cause its already terminated right :) and you get the "Workflow not found in persistence store" when you use  a store like SQL . Now this happens when our activity doesn't have a fault handler associated with this it. So one of the solutions we tried for state machine error handling was this.

    1. View the FaultHandlers in the event driven activity in the state.
    2. Add a new Fault activity and set the fault type to System.Exception (this is to capture generic faults and nothing fancier) you can customize this but then again we are trying to avoid workflow termination here.
    3. in the fault handler use a CallExternalMethodActivity.
    4. How to catch the exception - You can promote the Fault property as a dependency property. Another easy way would be to call a methodInvoked(ie the method to be executed before the callExternal method is invoked) and in that access the exception as the fault property in the parent of the callExternalMethodActivity.
    5. You can then pass on what ever data you get to the external method.

    I believe there are many more ways of fault handling. I even know of cases where customers hacked the stored procedure of Insertworkflow to avoid workflow deletion on termination.

    Anyway this is just on of the easier ways out to clean up incase you have better practices do leave a link :)

Page 1 of 1 (2 items)