Multiple Async Task Method in single worker role

Hi all,
I want to combine two more Async task method in single Worker role project .i.e.
      public override void Run()
                this.RunAsyncForInvoice(this.cancellationTokenSource.Token).Wait();
                this.RunAsyncForStatisticalJournal(this.cancellationTokenSource.Token).Wait();           
but i tried something above like this but it starts only first async method, i want to start both methods, please give me a suggestion to do this requirement.
jeganna

Hi jeganna,
Thanks for your posting!
In additional, as Bhushan said, you also refer to this code sample from this page(https://azureproviders.codeplex.com/wikipage?title=MultiThreadedWorkerRole%20project
Another way, I think you could add your Async method into the Task,
public override void Run()
var tasks = new List<Task>();
tasks.Add(RunTask1Async());
tasks.Add(RunTask2Async());
Task.WaitAll(tasks.ToArray());
Hope that helps.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Async / Await in Cloud Services Worker Roles?

    Good evening,
    I was wondering if and how one would be able to utilize async / await for Azure Cloud Services' Worker Roles? Basically I have background jobs that will/shall run on worker roles, however many of those are performing up/downloads from Azure Storage blobs
    and ideally I'd like to await those calls.
    So is async/await natively supported for CS Worker Roles (using Azure SDK 2.5) and if so, how? And if not.. is it planned at all?
    Thanks,
    -Jörg

    Hi,
    I would suggest you have a look at this thread:
    http://stackoverflow.com/questions/15991287/async-await-in-azure-worker-role-causing-the-role-to-recycle
    A simple solution is to just do this:
    public override void Run()
    RunAsync().Wait();
    public async Task RunAsync()
    while (true)
    await Task.Delay(60000);
    Hope this helps.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Single work order to release 2 operation from Task list 1 month and 6 month

    Hello,
    We have a maintenance plan for an equipment. It has a task list with 2 operation: Operation 0010 is 1 month interval and Operation 0020 is 6 month intervals.
    Currently when the preventive maintenance plan is release, 2 work order are created for every 6 months.
    Is it possible to combine the One month interval and 6 month interval task to a single Work Order?
    Thanks.

    For 1 month freq, orders will be created every month. In 6th month, order will be created with one month & 6th month operation together.
    If you want to suppress one month operation while order is getting created with 6th month operation, mention higher hierarchy for 6 month freq in strategy. This means, mention hierarchy 1 for 1 month freq & 2 for 6 months freq. While both the operations are due, operation with higher hierarchy only will be taken over to the order.
    I guess, this what you expect. Please confirm.

  • How to develop and deploy multiple worker roles in single azure cloud services?

    I am Manikandan, From Myeasydocs.com.
    We have developed our application as web projects.  Now we are going to move to azure cloud services, i have successfully migrated our application in cloud services and it worked fine. I am having difficulties with back ground task. i have nearly 12
    schedule tasks in our applications. I need assist on creating multiple worker role creation and deployment.
    Is there is any site on explaining the worker role process in details?
    Thanks in advance .. !!

    Hi,
    In Worker role, Applications hosted within worker roles can run asynchronous, long-running or perpetual tasks independent of user interaction or input. It is a service component that is useful for generalized development, and may perform background processing
    for a web role. A worker role is frequently used for long-running tasks that are non-interactive, but you can host any type of workload.
    I suggest you to follow the below article which explains about Creating and Deploying of Web Roles and Worker Roles in Azure Cloud Service using Visual Studio.
    https://msdn.microsoft.com/en-us/magazine/jj618299.aspx
    Hope this helps !
    Regards,
    Sowmya

  • Integration of multiple business role profiles in a single Z role profile

    Hi experts,
    I want to see all the work center available in service pro role and interaction center role profiles in a single Z business role prfole on the WEB UI.
    Please advise me the possibilities of the integration of multiple business role profiles in a single Z role profile(Example like Administratoru2019s profile).
    If it is possible what would be the approach please suggest me.
    Thanks in advance
    sameera

    Copy one of this 2 roles which you want to use in Z role and then manualy assign additional workcenters and links to this Z role which you are still missing.
    There is no standard predelivered admin role which would have all workcenters.

  • Multiple Revenue Recognition Methods on a Project(Task Level)

    We have projects where certain portion of revenue is recognized based on events(ex: equipment shipment) and certain portion is recognized as cost is incurred(Percentage of Completion).
    In Oracle Projects we can have only one Distribution rule for Revenue per project and doesn't allow to have different Revenue distribution rule at the task level.
    Business case: Project is for Equipment and Additional Service is purchased, separate tasks are created for Equipment(Task#10) and Service(Task#20).
    Billing is based on Events.
    Equipment(task#10) revenue is recognized based on order line shipment(event created),
    revenue for Service(task#20) is recognized as Cost is incurred to perform the Service, based on POC calculation.
    Following is what we tried as Proof Of Concept:
    Funding is at Task Level (set at Project Type), Baseline Funding without Budget is enabled(i.e Revenue budgets are created when funding is baselined)
    Billing extension Cost-to-Cost Revenue is assigned on project type, Forecast Cost Budget is used in calculations
    Set the distribution rule on project to COST/EVENT
    On tasks for Equipment(Task 10), we entered $0 Forecast cost budget
    On tasks for Service(Task 20) we entered a $$ Amount(non zero) for Forecast Cost budgets.
    Task 10( Equipment - Event based revenue), $0 Cost budget
    Create Costs on task 10, Distribute, Account, run the processes to generate revenue
    Create a manual revenue event for equipment shipment
    Revenue events from Billing extension are not generated, since there is no cost budget, Revenue is generated only for the manual event we created - This works as expected.
    Task 20(Service - POC based revenue), Cost budget is $10000 (for ex:)
    Create Costs on task 20, Distribute, Account, run the processes to generate revenue
    Automatic Revenue events from Billing extension(Cost-to-Cost Revenue) are generated, since there is cost budget, Revenue is generated based on POC calculation.
    Questions:
    With the assumption that we will not maintain forecast cost budgets for equipment tasks and use the standard Cost-to-Cost Revenue extension.
    We would like to know what is the impact of the above solution option on standard Project Billing functionality and any others.
    Any other workarounds to achieve what we are looking for(i.e multiple revenue recognition methods on a project)
    How others achieved similar business requirement with Oracle Projects(At present we are creating a 2nd project for Service component) and it has it's cons(consolidated billing etc, since we will be funding 2 projects)
    Harish

    Dear Harish,
    I am not sure i have a perfect solution but you can try this.
    Set Billing extension to Cost/Event (Percent complete revenue) this will be used for all the scenarios where revenue should be recognised by the system like Ex: Task20
    Use Pre-Approved batches for rest of transactions where the cost directly effects the Project.
    Regards
    Shaan

  • To complete multiple tasks in a single window without closing individual

    Hi Folks,
    How much it is possible to complete multiple BPM activities in a single window?
    Suppose i have a BPM process which contain 2 swimlanes and 4 steps.
    First 2 and 4th step is assigned to swimlane A and step3 is assigned to Swimlane B.
    Two users are involved in process and users are assigned at swimlane level.
    I want User A which is assigned to Swimlane A to complete first 2 steps in a single attempt without closing windows each time.
    As of now once a particular activity is over BPM prompts user to close window and then again select your task from UWL inbox and proceed. Is there any way to avoid that?
    Thanks in anticipation!
    Mandeep Virk

    It is not a bug, but a new feature.<br />
    Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
    You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=626825 bug 626825] - Hide redundant menu commands unless the user invokes the menu using the keyboard (make use of the openedWithKey attribute)
    ''(please do not comment in bug reports; you can vote instead)''
    See also:
    * [[/questions/799856#answer-155765]]

  • I have been working on a book and have 418 photos already in my book.  All of a sudden I cannot access the book format to see the multiple view, spread view, or single view.  I can no longer see my book although I still see the collection with 418 photos

    I have been working on a book and have 418 photos already in my book.  All of a sudden I cannot access the book module and clicking on the multiple view, spread view, or single view does not take me back to the book I have been working on.  I can no longer see my book although I still see the collection with 418 photos under collections.  What I do see is a blank template for a new book and I can't find the unfinished book I started with 418 photos.  It is like the new empty template is somehow covering it up.  How do I get back to the book I have been working on?

    Is it possible you mistakenly clicked on a [Clear Layout] button?
    But a great hint is- Always click on the [Create a Saved Book] button, early in your new book design.
    Then you have a permanent link to the book in the Collections panel. (In addition to the standard collection of your selected images)
    Note: a Book Collection shows an icon that looks like a book.
    Every time you come back to edit the book, open the Book Module by clicking on the white arrow that appears on the end of your Book Collection title. (The title as saved)
    Re-opening a book without using the "Saved Book" option can have unpredictable results.
    A "Book" Collection is like a "Smart Collection" because anything you do to the book design, change pages, change images, etc,  is automatically updated in the Saved Book collection.

  • Can we connect single Web role to multiple Azure VPN

    We have a one cloud service as Web role and created two Azure Virtual Networks. Now we have to connect this service with both Azure VPNs.So can we add two <VirtualNetworkSite> under the <NetworkConfiguration> node. like below configuration:
    <NetworkConfiguration>
    <VirtualNetworkSitename="myazure-vnet1"/>
    <VirtualNetworkSite name="myazure-vnet2"/>
    <AddressAssignments>
    <InstanceAddress roleName="MyMvcWebRole">
    <Subnets>
    <Subnet name="MainSubnet"/>
    </Subnets>
    </InstanceAddress>
    </AddressAssignments>
    </NetworkConfiguration>
    Can somebody provide the Answer? Thanks.
    hema

    Hi Hema,
    I'm afraid multiple VNETs for a single web role (Dual NICs) is not possible.
    Multiple NICs are only supported in VMs.
    You could refer the following link for details:
    http://blogs.technet.com/b/anneste/archive/2015/02/15/create-an-azure-virtual-machine-with-2-nics.aspx
    Regards,
    Malar.

  • Provisioning multiple AD Groups from a Single Privilege

    Experts,
    We're encountering a situation here when we provision to multiple Active Directory groups from a single IDM Role.
    The scenario is this:
    We have a workflow that has multiple conditional and switch tasks that result in the provisioning of users to Active Directory 2008 (mixed mode) Our workflow uses the provisioning framework and all users have been granted the ONLY privilege for the system.
    The workflow will result in adding the users to multiple AD groups sometimes two AD groups that are associated with a single IDM role. The first assignment always works, the second does simply does not occur, no entry in the system or job log although IDM does show that the role has been assigned with an 'OK' status.
    We've accomplished a workaround by redesigning the workflow so that only single roles are assigned at a time and using chain result OK links to move from one provisioning activity to another, but frankly, we are unsatisfied with this.  IDM should be handling this much better through
    I'm wondering if we have a pending value floating out there and we should just be applying the pending value at the end of every AD group add.
    Any thoughts on this would be appreciated.
    Thanks,
    Matt

    Matt,
    In your post you mention "I'm wondering if we have a pending value floating out there and we should just be applying the pending value at the end of every AD group add"... I'm faced with a similar issue were I'm left pending values for privileges after the group is assigned.
    I've imported the AD groups as privileges. I assign them without issue. But when I review the assignments I can see that each corresponding privilege assignment now has a pending value. I can not remove the privilege from the user at this point.
    Have you seen this before? Any suggestions on how I can clean this up. BTW, I'm using the SAP PF basically unchanged...
    Thanks!

  • Examples for good programming practice with multiple DAQmx tasks

    I'm writing a program to continuously log data from 8 counters, 8 encoders, and 8 voltages. The proof of concept VI with a single counter was simple and elegant, but scaling up to all signals resulted in a wiring mess. I've been working through the Labview Core courses, and am currently on Core 3. I still haven't come across a discussion on how to work with multiple DAQmx tasks without making a mess of the block diagram. Can anyone point me in the right direction?
    Also, say I have a state machine that has a configure, idle, and logging states. I need to set the initial values of the encoders during configuration, and keep up with their changes while in the idle state so I have appropriate starting values when entering the logging state. Can anyone point to an example that shows how this might be accomplished?
    Thanks

    I'm very familiar with AE's/Functional Globals - but I have struggled in the past with handling multiple DAQmx tasks - particularly when you're using multiple devices and using different types of measurements which require seperate tasks/handling (e.g. such as thermocouples which require extra compensation).
    I'm not even sure I know whare the requirements are for needing multiple tasks - I know you can need multiple tasks for a single device if the type of measurement is different but can you share an Analogue Input task amongst multiple devices?
    I think in hindsight (and without too much thought now) it looks like a good case for Object Oriented LabVIEW - with a base DAQmx class (initialise, configure, start, acquire, stop, close etc.) and then child classes for each type of measurement (with one task associated with each - and private data unique to that specific class). You then hold an array of objects (one for each task) and iterate through each one with dynamic despatch to get the data.
    I don't know your particular experience level of using LabVIEW (and as such, OO may not be appropriate) - but as a wider discussion of 'best practice' it seems like an appropriate method I would use going forward.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Multiple TableExtension/Tableview in a single view...

    Hi,
           I'm facing a problem creating multiple TableExtension elements in a single view. The relationship between the business objects is like this.
    Header--->Order(s)--
    >Item(s)
    As you can see, each header can have multiple orders and each order can have multiple items.
    The number of orders is known only during runtime..
                  In the last page of my bsp application, created using component workbench, I should allow the user to view/edit item list of all orders found under a particular header. That is to say, the view should contain multiple EditList tables for editing items.
               But, I have only one context node for Item and I'm able to show only one table at a time. One solution that works, but not usable in my case is to use navigation buttons to change the Order focus entity. When the focus changes, the Item table shows relevant child entities of that particular order. But, only single table in that view and so, useless.
             Classic BSP application is a big NO. The table should allow customizing viewable columns and have toolbar buttons. The Chtmlb:tableExtension is very suitable and convenient while working with BOL objects, but how to generate multiple tables that are independent of each other?
    Please provide some pointers...
    Thanks,
    Arun Prakash
    Edited by: Arun Prakash Karuppanan on Jun 21, 2008 11:49 PM

    Hi,
          Got it. I used field symbol for specifying the table and looped the tableview tag the number of times I wanted. Each time, the tableview and configtable IDs are also generated uniquely, as I would need them later.  Each time, the field symbol is assigned by a method implemented in the controller. This controller method, creates a internal table dynamically and populates it with relevant data fetched from my BOL collection. Ofcourse, I need to implement a separate iterator class for the ConfigTable and use appropriate events to make changes to my BOL collection. It's a little bit complicated, but not impossible.
    Regards,
    Arun Prakash.

  • VS 2013 crashes on opening Worker Role configuration

    After creating a cloud project using Azure SDK for .NET 2.4 then Visual Studio 2013 (update 3) crashes when I attempt to edit the Role Configuration via the UI by double clicking the [Cloud Project] -> Roles -> [Worker Role Name] in Solution Explorer.
    The event details as text looks like this.
    Application Error
    Log Name: Application
    Source: Application Error
    Date: 12-09-2014 10:33:59
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [removed].[removed].com
    Description:
    Faulting application name: devenv.exe, version: 12.0.30723.0, time stamp: 0x53cf6f00
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86
    Exception code: 0xe0434352
    Fault offset: 0x0000c42d
    Faulting process id: 0x1f54
    Faulting application start time: 0x01cfce63c98e92fb
    Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: 8a86cb32-3a57-11e4-857a-0026b9e0fb6f
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-09-12T08:33:59.000000000Z" />
    <EventRecordID>213664</EventRecordID>
    <Channel>Application</Channel>
    <Computer>[removed].[removed].com</Computer>
    <Security />
    </System>
    <EventData>
    <Data>devenv.exe</Data>
    <Data>12.0.30723.0</Data>
    <Data>53cf6f00</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>6.1.7601.18409</Data>
    <Data>53159a86</Data>
    <Data>e0434352</Data>
    <Data>0000c42d</Data>
    <Data>1f54</Data>
    <Data>01cfce63c98e92fb</Data>
    <Data>C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe</Data>
    <Data>C:\Windows\syswow64\KERNELBASE.dll</Data>
    <Data>8a86cb32-3a57-11e4-857a-0026b9e0fb6f</Data>
    </EventData>
    </Event>
    .NET Runtime
    Log Name: Application
    Source: .NET Runtime
    Date: 12-09-2014 10:33:59
    Event ID: 1026
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: [removed].[removed].com
    Description:
    Application: devenv.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AggregateException
    Stack:
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-09-12T08:33:59.000000000Z" />
    <EventRecordID>213663</EventRecordID>
    <Channel>Application</Channel>
    <Computer>[removed].[removed].com</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Application: devenv.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AggregateException
    Stack:
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.&lt;ThrowAsync&gt;b__4(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    </Data>
    </EventData>
    </Event>
    Just prior to the crash...
    ...it seems like VS 2013 is attempting to log me in to a company server (active directory?). Regardless of my action (providing my login credentials or cancelling the login) VS 2013 then proceeds to crash.
    My other computers
    On my private laptop that connects to the internet via a private internet connection, the same type of project loads the configuration page w.o. issues (same VS and SDK configuration).
    Others have this issue as well
    There is also a thread about this on SO, although without a solution:
    Visual Studio 2013 crashes when opening up service configuration for edit
    Can anybody provide any help about how to solve this, please?
    Br,
    Claus

    Hi Will
    Thanks for your answer - I have added my findings below:
    The problem apparently stems from the authentication process.
    If you are using your company email as username on Azure, the inherent domain name will cause the authentication method to redirect you to your company's Active Directory.
    The problem can be solved by choosing a different email as username on Azure.
    The problem can also be replicated by setting up a website with authentication using Azure Active Directory. During login through Azure AD, the exact moment you enter the domain name in your username, the login screen redirects you from the Azure AD to the
    AD at sts.[email domain name] - and consequently, the login fails. Using a different username the Azure AD authentication works flawlessly.
    Br,
    Claus

  • Multiple Async/Sync bridge

    Hi All,
    I have read about single Async/Sync and Sync/Async bridges without using BPM. But my scenario is somthing where multiple Async/Sync bridges are required.
    Here data will come in the form of an IDOC which is sent to a Oracle database server where we run a stored procedure and get one particular field 'xyz' which has to be updated to SAP R/3 system through a RFC. So it is something like:
    IDOC->Oracle->RFC->SAP.
    I have tried this using BPM, it is working fine. But because of performance issue, I would like to do it without using BPM. Can anybody please help me out in finding whether it is possible without BPM. If yes, then how?
    Thanks
    Jaya

    Jaya,
    There is no need for BPM in ur scenario. You just need to write UDF in ur mapping program and can fetch the data from ORACLE and pass it to RFC.
    Please see /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    If you need any more info, let us know.
    -raj.

  • Running multiple awaited Tasks in order

    I am creating an app that requires to execute multiple awaited tasks in order or else the out come is disastrous.
    This current method executes all awaited task almost at the same time. Sometimes the Speech synthesizer runs before the stream is finished being generated or even before the rss feeder data is finished loading.
    here is my code
    private async void RSSreader()
    SyndicationClient client = new SyndicationClient();
    Uri feedUri = new Uri("http://api.breakingnews.com/api/v1/item/?format=rss");
    feed = await client.RetrieveFeedAsync(feedUri);
    foreach (SyndicationItem item in feed.Items)
    RSSFEEDBOX.Text = RSSFEEDBOX.Text + "\n" + item.Title.Text + ".";
    // Read Text From Text Box RSSFEEDBOX
    stream = await Sn.SynthesizeTextToStreamAsync(RSSFEEDBOX.Text);
    TextPlayer.SetSource(stream, stream.ContentType);
    TextPlayer.MediaEnded += TextPlayer_MediaEnded;
    TextPlayer.Play();
    Rogelio Rios

    The problem is that you have used 'async void'. You should not use 'async void' for methods/functions.
    Change your method's signature to:
    private async Task RSSReader()
    And of course this method should be called asynchronously.
    I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

Maybe you are looking for