Using partitions with published events

I am testing the use of partitions for published events (from external application into InterConnect). To improve performance, I have modified the environment from using 1 FTP adapter to 2 FTP adapters that share the same settings (same application in iStudio, same ftp server settings in adapter.ini) except they are dedicated to a given event (partition in adapter.ini). The partitions have been created in iStudio and both adapters are visible in the "push metadata".
The problem I encounter is that nothing prevents the FTP adapter from picking up the files from the remote ftp server. When the adapter picks up a file (D3L mode) that pertains to an event of the other partition (adapter), it fails with the RuntimeException "There is no OAI message for the Object that you are trying to send which satisfies all of the event map conditions." and the file is moved to the error directory and lost for the other right adapter.
I can of course configure the 2 adapters to read files from dedicated directories on the ftp server but then what is the benefit compared to configuring 2 applications in iStudio. Did I miss something? Anyone using partitions?
thanks,
Claude

Did you try to not configure the error directory ?
rgds

Similar Messages

  • Use bridgeTalk with onError event, exception handling

    Hi all,
    I'm writting a function who use bridgeTalk to execute a photoshop script. This function works but I would like to throw an exception if the script has a problem. I commented a line in my script to have an exception but the onError event doesn't throw my Error.
    Have someone an idea?
    Thanks!
    function save_to_PSD(obj){
        var bt = new BridgeTalk();
         bt.target = "photoshop";
         bt.body = save_to_psd_function.toSource()+"("+obj.toSource()+");";
         bt.onError = function(errObj) {
            // the next line display the error in the console
            $.writeln(errObj.body);
            // PROBLEM this error is never throw
            throw new Error (errObj.body);
         bt.send(100);
    function save_to_psd_function(serializedObject){
        app.displayDialogs = DialogModes.NO;
        var obj = eval(serializedObject);
        var file_path = decodeURI(obj.file_path);
        // this will generate an exception
        //var img_file = new File(file_path);
        var ps_doc = app.open(img_file);
        psdSaveOption = new PhotoshopSaveOptions();
        psdSaveOption.embedColorProfile = true;
        app.activeDocument.saveAs(img_file, psdSaveOption, true, Extension.LOWERCASE);
        ps_doc.close();
        app.displayDialogs = DialogModes.ALL;

    Hi all,
    I found this solution if it can be helpfull for someone.
    But I don't know if it is the better way. I'm not abable to run a new exception in the onResult function.
    function save_to_PSD(obj){
        var error = null;
        var bt = new BridgeTalk();
         bt.target = "photoshop";
         bt.body = save_to_psd_function.toSource()+"("+obj.toSource()+");";
         bt.onError = function(ex){
            error = ex.body
         bt.send(100);
         if(error != null){
            throw new Error(error);

  • Can we use partition with condition?

    Hi,
    I want to partition the table using a coumn, and some conditions on the columns. Can we do this?
    Any suggesitions are welcome.
    Thanks and regards
    Gowtham Sen.

    Something like
      1  select ename,
      2         sal,
      3         deptno,
      4         lag( sal ) over ( partition by (case when deptno <= 15
      5                                              then 'Low'
      6                                              else 'HIGH'
      7                                          end)
      8                           order by sal ) prev_sal
      9*   from emp
    SCOTT @ nx102 JCAVE9420> /
    ENAME             SAL     DEPTNO   PREV_SAL
    SMITH             800         20
    JAMES             950         30        800
    ADAMS            1100         20        950
    WARD             1250         30       1100
    MARTIN           1250         30       1250
    TURNER           1500         30       1250
    ALLEN            1600         30       1500
    BLAKE            2850         30       1600
    JONES            2975         20       2850
    FORD             3000         20       2975
    SCOTT            3000         20       3000
    MILLER           1300         10
    CLARK            2450         10       1300
    KING             5000         10       2450
    14 rows selected.
    Elapsed: 00:00:00.04Justin

  • Urgent:Using Tooltip with onmouseover event.

    I have about 1000 dynamically generated hyperlinks in my web
    page. And on the mouse over i am calling a tooltip constructor. But
    here the problem is.. when i hover the mouse on the hyper link for
    the first time it doesnt show the tooltip. From the second
    mouseover onwards it shows on.
    Something like this:
    <body>
    <a href=# onmouseover=abc() id=myId>clickhere</a>
    <div id="test"><div>this is the
    tip</div></div>
    <script>
    function abc()
    var a = new Spry.Widget.Tooltip("test","#myId");
    </script>
    </body>

    That is because when you hovered over the click here you only
    initialized the tooltip. Than Spry Tooltip adds a onmouseover event
    on your element. So you hover over it again and it shows the
    tooltip.
    I don't really understand why you would wanna do it that way,
    could you explain what you are trying to do here?

  • I've lost the use of Appleworks in 10.9.2. Is it possible to partition the internal hard drive of my MacBook Pro and install an older Mac OS (10.6.8) on the second partition with OS 10.9.2 on the other?

    I've lost the use of Appleworks by upgrading to 10.9.2.
    Is it possible to partition the internal hard drive of my MacBook Pro and install an older Mac OS (10.6.8) on the second partition with OS 10.9.2 on the other? I'd like to be able to boot to the older OS when I need Appleworks and  few other applications that aren't available on OS 10.9.2.
    Any suggestions?
    Thank you for your help.

    Hello again, WZZZ,
    Here's an update. I was successful in creating two partitions on my internal drive, and in installing OS 10.6.6 on the second partition, as per your guidence. I now have it up to 10.6.8 with all the security updates and AppleWorks. A great thing.
    Some thoughts:
    • The partitioning had one hitch; it failed at first. But once I "repaired" the disc with Disc Utility the partitioning went thru.
    • The partitioning took a long time in 'resizing the partition.' A few hours I think it was. Lots of progress bar watching.
    • If I had it to do again, I'd size the two partitions differently. My original data was occupying about 230 Gb of the 320 Gb disc. I made the new partitions share the space, about 230 and 75Gb. That left very little available space for the main disc. I ought to have put some breathing room in there. As it is, it's an incentive to clean up all those files, especially all those iTunes files. I now have about 10% of available space there and mean to continue deleting.
    So, all in all a good project that got me where I wanted to go. Thank you for your help.
    Appreciatively,
    wallah

  • How to use Oracle partitioning with JPA @OneToOne reference?

    Hi!
    A little bit late in the project we have realized that we need to use Oracle partitioning both for performance and admin of the data. (Partitioning by range (month) and after a year we will move the oldest month of data to an archive db)
    We have an object model with an main/root entity "Trans" with @OneToMany and @OneToOne relationships.
    How do we use Oracle partitioning on the @OneToOne relationships?
    (We'd rather not change the model as we already have millions of rows in the db.)
    On the main entity "Trans" we use: partition by range (month) on a date column.
    And on all @OneToMany we use: partition by reference (as they have a primary-foreign key relationship).
    But for the @OneToOne key for the referenced object, the key is placed in the main/source object as the example below:
    @Entity
    public class Employee {
    @Id
    @Column(name="EMP_ID")
    private long id;
    @OneToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ADDRESS_ID")
    private Address address;
    EMPLOYEE (table)
    EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID
    1 Bob Way 50000 6
    2 Sarah Smith 60000 7
    ADDRESS (table)
    ADDRESS_ID STREET CITY PROVINCE COUNTRY P_CODE
    6 17 Bank St Ottawa ON Canada K2H7Z5
    7 22 Main St Toronto ON Canada     L5H2D5
    From the Oracle documentation: "Reference partitioning allows the partitioning of two tables related to one another by referential constraints. The partitioning key is resolved through an existing parent-child relationship, enforced by enabled and active primary key and foreign key constraints."
    How can we use "partition by reference" on @OneToOne relationsships or are there other solutions?
    Thanks for any advice.
    /Mats

    Crospost! How to use Oracle partitioning with JPA @OneToOne reference?

  • Can I use Ctlref in a event structure with a mouse up event?

    I have a large number of controls on a front pannel. I'm using a event structure that triggers the motion of a given motor when the corresponding control is pressed. However, I would like to avoid creating N mostly identical events, so I was planning on using a mouse down event on the front pannel, then retrieve the control reference using the Ctlref node (with gives "Reference to the control on which the event occurred" according to labview manual) and scan a array of references to find out which motor is supposed to move. However, it seems that this node does not appear (contrary to what the manual says).
    I have found other ways to do what I need (I was thinking of using an array containing the coordinates of my controls and the coords node of the event structure), but I wanted to know why I can not find that node (which appears for "value change" event for instance). I'm using Labview 2013.
    Solved!
    Go to Solution.

    Bad luck for you. Mouse down on panel does not have the control refnum as it is not operating on a control. Mouse down on a control does have it and since you can configure mouse down events on several controls in the same event case, it provides also a control refnum so that you can still operate on the control in question.
    This is probably also the issue Jeff might have seen. When configuring multiple events for the same frame LabVIEW will only show the event terminal that are present in all of those events. Terminals that don't exist in at least one specific event of the multiple events for that frame are not selectable anymore.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Deployment of publishing page using feature with custom layout in SP 2013 + office 365 + site Template

    Hello Everyone,
    deployed page layout as based this blog
    http://www.eliostruyf.com/provision-your-html-designs-master-pages-page-layouts-to-sharepoint-2013/, but while trying to create Publishing pages under Page
    "Error: This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout."
    my xml as below
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="PageLayouts" Url="_catalogs/masterpage" RootWebOnly="TRUE">
    <File Path="PageLayouts\DataByte_Home.html" Url="DataByte_Home.html" Level="Draft" ReplaceContent="true" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
    <Property Name="Title" Value="DataByte_Home" />
    <Property Name="MasterPageDescription" Value="DataByte_Home" />
    <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
    <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png" />
    <Property Name="PublishingAssociatedContentType" Value=";#$Resources:cmscore,contenttype_welcomepage_name;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4;#" />
    </File>
    </Module>
    <Module Name="CustomPages1" Url="Pages" Path="" RootWebOnly="FALSE">
    <File Name="Home.aspx" Url="Home.aspx" Type="GhostableInLibrary" Path="PageLayouts\DataByte_Home.html" IgnoreIfAlreadyExists="TRUE">
    <Property Name="Title" Value="Home" />
    <Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/DataByte_Home.aspx"/>
    <Property Name="ContentType" Value="Page" />
    </File>
    </Module>
    </Elements>
    as feature activation i am execution same code to upgrade .html to .aspx.
    please guide me and give me some suggestion to packaged solution in single wsp(with Publishing pages, Page layouts and master page and site template to create site with all content)?

    Hi,
    Usually I separate page layout and publishing page into two different modules. Then you deploy first the page layout module to ensure that SP will create the aspx file. After that the second module lets SP to apply the existing page layout to your publishing
    page.
    It's just an idea. I am not 100% sure. Let me know.
    Regards,
    Vinod

  • How to use Tiger Bootcamp XP partition with Leopard

    I had a Boot Camp partition installed under Tiger, which worked without any problems. Now I did a clean install with Leopard and ask myself how I can use the XP Boot Camp from Tiger?
    Do I have to reinstall Boot Camp & XP? Or can I just boot it and use it with Parallels / VMWare as I did with the Tiger version?

    http://docs.info.apple.com/article.html?path=Mac/10.5/en/15553.html

  • Protect blog made with iweb without using .mac to publish?

    Hello:
    I am getting to know my Mac and love it. I have domains and publish my first page with iweb. Everything works fine. However I wish to password protect my blog to only be seen by my familiy and friends. I know how to set it up, but it said it is not working if you do not publish to .mac. Now I don't want to do anything illegal here, but is there a way to still password protect my page or just my blog or am I out of luck. I like to have my own domain and also want to redirect to my business that way.
    I am happy to hear any suggestions. Maybe I can even ad my .com website to .mac, but for now I do not know why I should other than to password protect my page. I have dreamweaver and would like to learn how to do web design as well.
    Thanks for the help.
    binchen
    Message was edited by: binchen

    Have you tried using iWeb to publish to your website to your domain? It's built in with '08. I don't really have a lot of faith that it would help, but it's not publishing to a folder. It's publishing directly to your website. Give it a shot.
    The other option here is to mask your domain, probably not your first choice but you could do it this way. You could publish all of your stuff to .mac and then route your domain to the .mac website. Then to make it even more appealing, you can mask the .mac web address with your own domain. Thus giving you all the functionality of .mac without the .mac web address. Literally your users can just type in your domain and it will take you to it your site as it would and they would never have to know you were using .mac.
    This is beyond my expertise and I have not tried it, but it is possible, I know many people that have done it. If you're interested, just do some research and it'll happen for you.

  • Onshow event needed for using behavior with AP elements

    Lector has "onShow" and "onHide" actions for layout objects (the equivalent of AP elements). They are my favorite and most used actions. Unfortuneately, Lector will does not reveal the code, so I can't see how they accomplish the actions. I am using Dreamweaver to build my wife's elementary school library web site. I want to use the same onShow and onHide actions (events/functions) for AP elements in Dreamweaver, but they don't exist on the tag inspector list for using with behaviors. Does anyone know how I can make behaviors work when an AP element hides or shows on the screen? This is not the same thing as showing or hiding an AP elemeent for events such as onClick or onmouseover. I find it very curious why Dreamweaver does not have onShow or onHide events along with onClick, onMouseOver, etc. Thanks.

    "Lector" was a late night typo. It is "Lectora", which is an industry leading WBT development tool. My main gripe about it is its proprietary nature--over protective of the code it generates. Lectora will not allow you to see the complex xml code it generates when it creates a web page. (When I display one of the Lectora generated pages in Dreamweaver, it is all xml giberish.) But Lectora is an easy to use, well organized, powerful, automated WBT development tool. Two of its most useful actions for AP elements are the onShow and onHide actions. So when you show or hide an AP element, the physical action of the element hiding or showing will cause a behavior to occur on the same AP element or another AP element.
    For example, say the mouseover Show event for "Element0" causes "Element1" to become visible on the screen. The onShow action provided by Lectora can cause a behavior to automatically occur on Element1 when it "shows" on the screen--no mouse action on elment1 is needed to cause the behavior to happen. Dreamweaver seems to require some sort of mouse action with regard to Element1 to cause a behavior to happen. A problem seems to occur with stacking AP elements and having to use exclusively mouseover and mouseout events on an AP element to cause a behavior(s) to occur. The browser seems to always get confused as to which of the stacked AP elements is supposed to be acting on the mouse action, even if the z order is correct. That is why the onShow and onHide events are so poweful--they don't require another mouse action while the mouse pointer is over the stacked group of AP elements to cause a behavior to happen on the element that was just caused to show or one that was just exposed by another element being hidden. With Lectora's onShow and onHide actions, it works all the time--the browser never gets confused.
    The onShow and onHide actions in Lectora are my favorite because they don't require a second mouse action on an element to cause a behavior to happen. I find that very distressing in Dreamweaver in trying to create highly interactive web pages in Dreamweaver that I can't use onShow and onHide events. It is hard to imagine that only the Lectora creators have the ability/genius to create onShow and onHide code that works for AP element on web pages.
    I can't show you any examples because I create WBT for Federal government projects and I am not allowed to publicly display any of the content. And I can't tell you how Lectora accomplishes it bacause I can't understand their complex, criptic, auto-generated xml code. So I hope I have been able to adequately explain problem here.I can't use Lectora to create the web pages for my wife because she needs to be to maintain her web site using Dreamweaver.
    Thanks in advance for your help.

  • Partitioning an Existing Table using DBMS_REDEFINITION with no primary key?

    HI,
    Is it possible to partiiton a table with dbms_redefination if the table contains no primary key?
    DB version 10.2
    Thank you All..

    Yes, of course, but you'll have to use rowID with "CONS_USE_ROWID" : http://68.142.116.68/docs/cd/B19306_01/appdev.102/b14258/d_redefi.htm#CBBFDJBC
    This will be longer but it is possible.

  • Mid-process Receive (onEvent) is not picking up published event

    We have a composite (CompositeA), which has 2 BPEL processes (bpelprocess1 and bpelprocess2). bpelprocess1 is synchronous and bpelprocess2 is a one-way. bpelprocess1 receives a message from the client - then sends the message using a one-way Invoke action to bpelprocess2 - bpelprocess2 transforms the message and assigns some values - then sends the message to Event1 through an Invoke action - bpelprocess1 has a Receive activity waiting for an event from Event1 - then it will send the message back to the client as the Reply. Everything works up to the point where the bpelprocess1 Receive(onEvent) activity is waiting for an event, it sits in this "Pending" state until the SyncMaxWaitTime value has expired and then we get a timeout error (see below).
    "Waiting for response has timed out. The conversation id is null. Please check the process instance for detail."
    So our question is, why does the Receive(onEvent) in bpelprocess1 never pick up the published event? We've run some additional tests to ensure the event is being published, and that has been confirmed.
    Is it possible to receive an event that was published during the current instance of the process (i.e., since bpelprocess1 invoked bpelprocess2 which invoked the Event1 publish, can bpelprocess1 perform a mid-process Receive of the event that was just published?
    Please let us know if this makes sense or if you have any additional questions.
    On a side note, if we create an independent mediator component in the same composite and have it subscribe to Event1 as well, then just write the message out to a file. It would not pick up the message from the EDN in the scenario described above, if we set the property nonBlockingInvoke=true or bpel.config.transaction=requiresNew on the bpelprocess2 partnerlink from bpelprocess1, the Mediator would get the message from the EDN, but bpelprocess1 still timed out waiting for the event. If we setup another BPEL process (bpelprocess3) in the same composite (though not linked to bpelprocess1 and bpelprocess2) and it has a mid-process receive onEvent listening for Event1, it does not pick up the published event either, so seems to be an issue with the mid-process receive onEvent in the synchronous BPEL process.
    Any help is appreciated.

    Thanks for the reply, but there is no issue with the one-way from bpel1 to bpel2, we do not expect nor want a response from bpel2, it should just publish the event and complete. The bpel1 should continue it's flow (which it does) and the next action is a Receive action listening for an event (that was published by bpel2), but the Receive never finds the event.
    Here's a less complex use case:
    1. bpelprocess1 is a synchronous process which publishes to Event1 (this completes successful and returns a success message to the client)
    2. bpelprocess2 is an asynchronous process which has a mid-process Receive action that is listening for Event1
    3. bpelprocess3 is a process which is initiated by Event 1
    If we execute bpelprocess2 it will set at the mid-process Receive action in a PENDING state, waiting for Event1 to occur.
    If we then execute bpelprocess1 the Event1 is published and we receive a "SUCCESS" response back.
    At this point bpelprocess3 is initiated (b/c it's initial Receive is triggered by Event1)
    We would also expect the mid-process Receive in bpelprocess2, which is in a PENDING state to trigger, but it never does.
    Hopefully this use case makes more sense.

  • RE: (forte-users) Confusion with return event

    Samer,
    The return event is delivered to the calling task, which is the window in
    your first test. It is not deliverd to the event loop of the service object
    unless the call to the processor originated in the event loop, which is the
    case in your second test. The output you get from the server is exactly as I
    would expect.
    You need the following code in you client:
    event loop
    postregister
    SomeService1.StartImmediate();
    when SomeService1.Proc.ProcessEvent_return do
    task.Part.Logmgr.Putline('ProcessEvents_return');
    when SomeService1.Proc.ProcessEvent_exception do
    task.Part.Logmgr.Putline('ProcessEvents_exception');
    end event;
    Note that this logoutput will not be written to a logfile, but will appear
    in the logwindow which is opened when you start a client application.
    Pascal Rottier
    Atos Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    -----Original Message-----
    From: Samer Kanjo [mailto:skanjoyahoo.com]
    Sent: Thursday, January 18, 2001 1:54 AM
    To: ForteUsers
    Subject: (forte-users) Confusion with return event
    I have observed some odd behavior when attempting to
    catch a return event for a method invoked using start
    task. I provided the primary classes I used during my
    test and some output produced by those classes at the
    bottom of this message.
    The SomeService1 class is used to create an
    environment visible service object and the Processor
    class is one of its members. The Processor class
    starts processing when one of two things happens: the
    SomeService1 timer ticks off 10 seconds or when
    SomeService1.StartImmediate is called directly by
    another entity. Either way StartImmediate is called to
    start processing.
    The provided output is the result of starting a test
    application and invoking StartImmediate from another
    object (I used a window) and then observing what
    happens when the timer ticks. As you can see the
    invocation from the window did not result in the
    return event being received. However, the return event
    was received when the timer ticked.
    According to the Forte documentation a return event
    will only be posted to the parent task's event queue.
    Since I am making a cross partition call, the window
    and service object are not really in the same task
    (Unless my assumption is wrong). That would explain
    why the window did not cause a return event to be
    generated but was an event generated but not caught
    and if so where did the event go?
    In SomeService2 class I added an event StartProcessing
    and moved the code from StartImmediate to the
    StartProcessing event case in the event loop and
    simply posted the StartProcessing event in
    StartImmediate. I performed the same test I used when
    testing SomeService1. The Traceback output is
    identical for the window invocation but the return
    event is received this time! Why?
    It seems that to guarantee the receipt of a return
    event an asynchronous task must be initiated from
    within an event loop. Is this correct?
    I do not understand this behavior does someone have
    any thoughts on this? How can you guarantee the
    receipt of a return event?
    Samer Kanjo
    OUTPUT FROM SOMESERVICE1
    StartTaskTest_cl0: processing loop listening
    StartTaskTest_cl0:
    Traceback:
    SomeService.StartImmediate at line 1
    TestWin.Display at line 4
    C++ Method(s)
    UserApp.Run at offset 105
    StartTaskTest_cl0:
    StartTaskTest_cl0: Start processing...
    StartTaskTest_cl0: Processing complete.
    StartTaskTest_cl0:
    Traceback:
    SomeService.StartImmediate at line 1
    SomeService.ProcessingLoop at line 9
    StartTaskTest_cl0:
    StartTaskTest_cl0: Start processing...
    StartTaskTest_cl0: Processing complete.
    StartTaskTest_cl0: ProcessEvents_return
    OUTPUT FROM SOMESERVICE2
    StartTaskTest_cl0: processing loop listening
    StartTaskTest_cl0:
    Traceback:
    SomeService2.StartImmediate at line 1
    TestWin.Display at line 4
    C++ Method(s)
    UserApp.Run at offset 105
    StartTaskTest_cl0:
    StartTaskTest_cl0: Start processing...
    StartTaskTest_cl0: Processing complete.
    StartTaskTest_cl0: ProcessEvents_return
    StartTaskTest_cl0:
    Traceback:
    SomeService2.StartImmediate at line 1
    SomeService2.ProcessingLoop at line 9
    StartTaskTest_cl0:
    StartTaskTest_cl0: Start processing...
    StartTaskTest_cl0: Processing complete.
    StartTaskTest_cl0: ProcessEvents_return
    SOMESERVICE1 CLASS
    begin CLASS;
    class SomeService1 inherits from Framework.Object
    has public attribute proc: StartTaskTest.Processor;
    has public attribute processing: Framework.boolean;
    has public method Init;
    has public method ProcessingLoop;
    has public method StartImmediate;
    has property
    shared=(allow=off, override=on);
    transactional=(allow=off, override=on);
    monitored=(allow=off, override=on);
    distributed=(allow=on, override=on, default=off);
    end class;
    method SomeService1.Init
    begin
    super.Init();
    processing = FALSE;
    proc = new;
    start task ProcessingLoop();
    end method;
    method SomeService1.ProcessingLoop
    begin
    timer : Timer = new;
    timer.tickInterval = 10000;
    event loop
    task.part.logmgr.putline('processing loop
    listening');
    timer.isActive = TRUE;
    when timer.tick do
    StartImmediate();
    when proc.ProcessEvents_return do
    task.part.logmgr.putline('ProcessEvents_return');
    processing = FALSE;
    when proc.ProcessEvents_exception do
    task.part.logmgr.putline('ProcessEvents_exception');
    processing = FALSE;
    when task.shutdown do
    exit;
    end event;
    end method;
    method SomeService1.StartImmediate
    begin
    task.part.logmgr.putline(task.traceBack());
    processing = TRUE;
    start task proc.ProcessEvents() where completion =
    event;
    end method;
    end CLASS;
    SOMESERVICE2 CLASS
    begin CLASS;
    class SomeService2 inherits from Framework.Object
    has public attribute proc: StartTaskTest.Processor;
    has public attribute processing: Framework.boolean;
    has public event StartProcessing;
    has public method Init;
    has public method ProcessingLoop;
    has public method StartImmediate;
    has property
    shared=(allow=off, override=on);
    transactional=(allow=off, override=on);
    monitored=(allow=off, override=on);
    distributed=(allow=on, override=on, default=off);
    end class;
    method SomeService2.Init
    begin
    super.Init();
    processing = FALSE;
    proc = new;
    start task ProcessingLoop();
    end method;
    method SomeService2.ProcessingLoop
    begin
    timer : Timer = new;
    timer.tickInterval = 10000;
    event loop
    task.part.logmgr.putline('processing loop
    listening');
    timer.isActive = TRUE;
    when timer.tick do
    StartImmediate();
    when self.StartProcessing do
    processing = TRUE;
    start task proc.ProcessEvents() where completion =
    event;
    when proc.ProcessEvents_return do
    task.part.logmgr.putline('ProcessEvents_return');
    processing = FALSE;
    when proc.ProcessEvents_exception do
    task.part.logmgr.putline('ProcessEvents_exception');
    processing = FALSE;
    when task.shutdown do
    exit;
    end event;
    end method;
    method SomeService2.StartImmediate
    begin
    task.part.logmgr.putline(task.traceBack());
    post StartProcessing;
    end method;
    end CLASS;
    PROCESSOR CLASS
    begin CLASS;
    class Processor inherits from Framework.Object
    has public method Init;
    has public method ProcessEvents where completion =
    (return = ProcessEvents_return, exception =
    ProcessEvents_exception);
    has property
    shared=(allow=off, override=on);
    transactional=(allow=off, override=on);
    monitored=(allow=off, override=on);
    distributed=(allow=off, override=on);
    end class;
    method Processor.Init
    begin
    super.Init();
    end method;
    method Processor.ProcessEvents
    begin
    task.part.logmgr.putline('Start processing...');
    task.Delay(msecs = 1500);
    task.part.logmgr.putline('Processing complete.');
    end method;
    end CLASS;
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Yes, you're right. The return event is queued until the moment that you
    actually enter an eventloop. I stand corrected.
    Pascal Rottier
    Atos Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    -----Original Message-----
    From: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Sent: Thursday, January 18, 2001 6:13 PM
    To: Rottier, Pascal
    Cc: 'forte-userslists.xpedior.com'
    Subject: RE: (forte-users) Confusion with return event
    I think it is always safe to use start task with where complition = event
    clause before event loop. The reason is described in Forte Help in the
    Complition Clause index:
    "Requesting the return and exception events automatically registers the
    events for the calling task. When the asynchronous method completes or
    terminates, Fort&eacute; adds the appropriate event to the calling task's event
    queue.
    This registration is unlike the event registration for the event statement.
    In the event statement, the event is registered just before the event
    statement is ready to process the event. In the start task statement, the
    return and exception events are registered when the task is started, even
    though it can be much later on that your application is prepared to wait for
    those events. Therefore, only the "parent" task that executes the start task
    statement is registered for the completion event of the started task."
    and some comments from "Forte Performance and Patterns" page 18:
    "When you use the where completion = event clause in the start task
    statement, Forte automatically buffer the return event until you register
    for it. Therefore, you do not need to worry about the child task completing
    before you register for its return event".
    Regards,
    Zenon
    -----Original Message-----
    From: Rottier, Pascal [SMTP:Rottier.Pascalpmintl.ch]
    Sent: Thursday, January 18, 2001 11:16 AM
    To: 'Samer Kanjo'; ForteUsers
    Subject: RE: (forte-users) Confusion with return event
    Yes, if you want the eventloop of the service object to be informed when
    the
    method on the processor class is invoked, regardless of who invoked it,
    then
    you should simply post an event as the last statement inside the method on
    the processor class.
    The return events are only used to inform a partent task that a child-task
    has completed. So, only the calling task receives the event, only if the
    calling task is inside an event-loop at the moment the child-task
    terminates
    and only if there really is a child task (method started using "start task
    Note, that the calling task doesn't have to be inside an event loop when
    the
    asynchronous call is made. It has to be inside an eventloop when the
    asynchronous task terminates. The following piece of code works just as
    well:
    SomeService1.StartImmediate();
    self.DoSomeOtherStuff();
    event loop
    when SomeService1.Proc.ProcessEvent_return do
    task.Part.Logmgr.Putline('ProcessEvents_return');
    when SomeService1.Proc.ProcessEvent_exception do
    task.Part.Logmgr.Putline('ProcessEvents_exception');
    end event;
    However, if the asynchronous task started from within "StartImmediate"
    finishes before the client gets a chance to enter its event loop, then
    you're too late to catch the event. That's why it's safer to use the
    "postregister" function, which makes sure a certain action is not started
    untill all events from the event loop have been registered.
    Pascal Rottier
    Atos Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    -----Original Message-----
    From: Samer Kanjo [mailto:skanjoyahoo.com]
    Sent: Thursday, January 18, 2001 5:04 PM
    To: ForteUsers
    Subject: RE: (forte-users) Confusion with return event
    Pascal,
    So you are confirming that a return event can only be
    received in an event loop if a task is started from
    within that event loop.
    After making your proposed changes I was able to
    receive the return event in the window.
    I originally wanted the SomeService event loop to
    always receive the return event regardless of whether
    or not StartImmediate is called by some other entity
    or called when the timer ticks. It seems that the only
    way to do this is with events. Is that correct?
    Thank you for insight,
    Samer Kanjo
    --- "Rottier, Pascal" <Rottier.Pascalpmintl.ch>
    wrote:
    Samer,
    The return event is delivered to the calling task,
    which is the window in
    your first test. It is not deliverd to the event
    loop of the service object
    unless the call to the processor originated in the
    event loop, which is the
    case in your second test. The output you get from
    the server is exactly as I
    would expect.
    You need the following code in you client:
    event loop
    postregister
    SomeService1.StartImmediate();
    when SomeService1.Proc.ProcessEvent_return do
    task.Part.Logmgr.Putline('ProcessEvents_return');
    when SomeService1.Proc.ProcessEvent_exception do
    task.Part.Logmgr.Putline('ProcessEvents_exception');
    end event;
    Note that this logoutput will not be written to a
    logfile, but will appear
    in the logwindow which is opened when you start a
    client application.
    Pascal Rottier
    Atos Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch--
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Publish Event Calendar as Portlet

    Is it possible to publish an event calendar as a portlet? I know I can do this with a users calendar, but I have not found a way to do it with an event calendar.

    Hi,
    Officially this was never tested OR tried from what I can recall. You could try to use proxy authentication (see the posting I did about Application to Application authentication) and specify the event calendar unique id (much like you would specify a user calendar unique id) in the SOAP authentication header.
    Perhaps this may work.
    Frederic Leblanc

Maybe you are looking for

  • Album Art not showing up?

    Has anyone else had a problem with their album art not showing up in coverflip? These are all CD's that I own and ripped onto my computer with iTunes, and if I look at them in iTunes I can see the cover art. But when I turn my ipod sideways to flip t

  • Error while calling application?

    Hi all, I m getting a error while i m testing my application... Error:WebDynpro Exception: ICF service node for application /sap/public/myssocntl does not exist Note The following error text was processed in the system CGQ : WebDynpro Exception: ICF

  • How can i use an adicional speaker and the native speaker of my imac together?

    When I plug an adicional speaker or headphone on my imac, automatically it turns off the native speaker of my imac.I would like to experiment the two together, thanks

  • Bex reporting issue

    Hi gurus I m facing a typical error in Bex Reporting. This report displays the details of consumer address details. The data is successfully browsed from data tgt browser in ODS.while creating the reporting and query it gives me these 3 errors. Note:

  • Personalization:  available for ADF/Fusion developers?

    Hi, I had a questionion posited by my supervisor. He asked if the OA personalization "module" was available for Fusion/ADF developers as well? It would be really nice to be able to throw in a way to customize CSS (if personalization even allows this.