Blog Post on a Worker Pool Design Pattern without VI Server

Sometimes you think there's nothing left to discover and then someone shows you something you never thought of...
This was fascinating. Tomi, a frequent poster over at the Lava forums, posted a new blog entry on his ExpressionFlow blog on a Worker Pool design pattern that doesn't use VI Server to spawn the worker threads, but instead uses the new recursion functionality in LV8.6 and specifically 2009! This is truly an interesting premise, because it not only uses recursion, which people have wanted to use natively in LabVIEW for years, but it uses recursion in a way that standard imperative programming languages would not do well, even though they've supported recursion from the start!
Check it out.
Jarrod S.
National Instruments

I am sorry you feel uncomfortable about the license terms. Being a software company owner I know the difficulty of figuring out the license restrictions of various software components. However that is exactly I provide ExpressionFlow example code with creative commons attribution license. The creative commons licenses do not restrict where the example code can be used and the terms are rather widely known. Shoud example code have no license terms, you would not know how you would be allowed to use or share the code. Now you have it black-on-white.
Human-readable summary of the Creative Commons Attribution 3.0 Unported license:
You are free:
to Share — to copy, distribute and transmit the work
to Remix — to adapt the work
Under the following conditions:
Attribution —
You
must attribute the work in the manner specified by the author or
licensor (but not in any way that suggests that they endorse you or
your use of the work).
With the understanding that:
Waiver
Any of the above conditions can be waived if you get permission from the copyright holder.
Other Rights
In no way are any of the following rights affected by the license:
Your fair dealing or fair use rights;
The author's moral rights;
Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
Notice
— For any reuse or distribution, you must make clear to others the
license terms of this work. The best way to do this is with a link to
this web page.
Tomi Maila

Similar Messages

  • Blog post comments not working

    Hi there,
    I have a couple of sites, both set up with a blog:
    http://cyberworkshop.co.nz/blog/video-blog
    http://www.sjorakei.school.nz/blog/lorem_ipsum_dolor_3
    For some reason when you add a comment to either blog post this message appears:
    ERROR: An error occurred. Image verification failed. If you believe this is incorrect, please contact your system administrator or go back and re-submit the form.
    I definitely had comments working on the School site at one point and I cant figure out how to correct this.
    Any pointers on how to fix this would be most appreciated.
    Thanks, Ben

    Hi Ben,
    For the first site, it looks like captcha is commented out on the Blog Post Detail layout: http://screencasteu.worldsecuresystems.com/Florin/2013-10-20_1259.png
    On the second site, you also had a problem in the javascript on the blog post detail layout.
    I've corrected the Javascript now, and you get an error message pop-up when trying to submit a comment without filling in the captcha.
    Thanks,
    Florin

  • Blog Posting EVERYONE who works in APEX should read...

    Folks, this blog entry from Joel Kallman hits it right on the head, why a lot of people have issues with APEX....
    (YABAOAE) Yet Another Blog About Oracle Application Express: You don't lack APEX skills.....you lack Oracle skills
    Read it and you will understand..
    Thank you,
    Tony Miller
    LuvMuffin Software

    A very well made point by Joel. He also alludes to a higher level where a knowledge of relational database design is also an important precursor to a successful application, regardless of the RDBMS or API being used.
    Regards
    Andre

  • Working in Design View on the server

    I was given a bunch of (.tpl) files that are on a server. I have to edit them in Dreamweaver (CS3) but the thing is, in Design View I can't see what the pages actually look like. The reason for that is because the CSS isn't showing in Design View (the page looks unstyled). Is there a way to have the CSS files "work" while I'm using Design View? Thanks.

    AFAIK, DW doesn't support TPL (template) files by default.
    But you can add file extensions to DW.  See below:
    http://kb2.adobe.com/cps/164/tn_16410.html
    Once you have the TPL file open in DW Design View, it should look much like any other HTML page.
    If the TPL doesn't contain any inline styles or is not linked directly to an external CSS file, look at Design Time Stylesheets.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Design pattern for several conditions

    Hi;
    I would like to implement an search algorithm which use many conditions (search criteria).
    For Example
    Begin :
    If criteria A && B are OK => if criteria C is OK => etc...
    Else criteria D && F are OK => if criteria C is OK => etc...
    Else etc...
    which design pattern or another design correspond to my requirement ?
    Regards;

    You are missing the point somewhere. Object-oriented design patterns are tools used to design object-oriented applications. There is a certain limit to size that is associated with warranted usage.
    In other words, the issue of your post is a trivial element of conditional processing. There is no such design pattern to apply to such a thing because that is not what design patterns are used for.
    Aside, some forum "genius" is going to post some application of a design pattern to this issue and then call me crazy. Looking forward to it :o)
    Your question would be better suited if it asked for what type of conditional processing algorithm might work well. In Java there are a few to work with. If statement, do while statement , while statement, case, etc.

  • Blog Post HEAD Content

    I have posted and submitted support request about this issue before but when will we be able to insert content into the head tag of a blog post?
    While majority of the time this is not an issue there are times when this is necessary.
    Here is an example:
         <style type="text/css">
          .slideshow img { display: none }
          .slideshow img.first { display: block }
         </style>
    The above code may or may not work inside a body tag it is invalid code. I can use inline styles but this is not always desirable.
    Here is another example that will never work in the body tag:
    <meta property="og:title" content="Title Text" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="URL Link" />
    <meta property="og:image" content="Image Path" />
    <meta property="og:image:type" content="image/jpeg" />
    <meta property="og:image:width" content="620" />
    <meta property="og:image:height" content="541" />
    <meta property="og:site_name" content="My Site Name" />
    I have asked support about this two separate times, the first response was this:
    We have confirmed it is an issue, and have created a ticket with our development team to investigate and resolve this.
    The ticket number is 3014970 for your reference.
    We will let you know once this issue has been resolved.
    Then I asked again several months later thinking I may have missed an update etc. and this was the response:
    Currently the only META that can be added to a blog is by creating a separate template that you will apply only to that blog (from Blog Details tab), that will apply to the whole blog and not to individual blog posts.
    So creating the structure as:
    <html>
    <head><title></title>
    ...meta data tags...
    </head>
    <body>
    </body>
    </html> will not work, as you already concluded, because the <head></head> section you put in the blog post will be rendered in the body.
    We have logged an issue for this with our development team to investigate and resolve.
    The ticket number is #bug=3014970 for your reference.
    Unfortunately I cannot provide you a clear ETA here on when this will be fixed, however what I suggest here is to keep an eye on our blog http://businesscatalyst.com/_blog/bc_blog – that’s where the releases and the planned work is being announced.
    While I do not know what it takes to add this functionality to the system and I make this following comment with that in mind it seems like this should be a necessary feature to implement into BC.
    Is there any ETA on this issue?
    Note: Creating a template for every blog post does not work. This would mean creating a template and a new blog for every post.

    While putting CSS into the body tag seems to work without issue I would prefer to put it into the head in its proper place.
    I am using this Javascript to do that:
    var ele = document.createElement("style");
    ele.type = "text/css";
    ele.innerHTML = "CSS CODE"; // Replace with CSS code.
    document.head.appendChild(ele);
    It works in all but IE8 and below (go figure). For IE8 I just left it in the body using IE conditional comments.
    Now if only we could come up with a bit of sorcery for the meta tags! 
    kenneth_rapp said:
    But every single bit of html and css and javascript rendered by our sites ought to be available to edit as we see fit, including what gets put out by the modules.
    I could not agree more. While I can see restricting this to some level there is much more I wish we could have access to and edit.
    Thanks for the Wizardly advice. =>

  • Path issue leaving me unable to add blog post content in design view

    Hi guys,
    I am unable to add blog post content in design view when a template is applied to my blog. BC support have told me they fixed the problem by making minor changes to the paths of the css and javascript files and then told me to post on here for the solution.
    When I call the files using <link rel="stylesheet" href="/css/custom.css" /> everything displays perfectly but in BC I can't add blog post content in design view. I can edit in html but this isn't ideal for clients to update the blog.
    If I change the paths to <link rel="stylesheet" href="css/custom.css" /> it fixes the problem and I can then edit blog content in design view but all blog pages that are in folders display incorrectly. Only the main blog page display properly.
    I'm sure the answer is simple but I can't find it so any help would be greatly appreciated. Thanks
    Pete

    I took a look at your page URL and can't find any CSS issues or styles that would directly affect you editing/adding content to a blog post via the content editor.
    Make sure you either clear your cache or try in another browser to see if the problem is localized to your current browser.
    If you still have the problem can you link me to a screencast (you can use Jing if you don't have a screencast program: http://www.techsmith.com/jing.html) of what you are experiencing?

  • How to design blog post using dreamweaver ?

    I have a blog post - Tamil nadu 10th result and I want to design the post using the dreamweaver to create good design. How to do it ?

    Your blog is on Google's Blogger which uses XML templates.  If you want to change the look of your blog, use a different Blogger Template.  Unfortunately, DW isn't going to be much help with this since you must use the Blogger Dashboard to change templates, content, widgets, etc...
    Blogger Templates
    Edit the HTML of your blog's layout - Blogger Help 
    Nancy O.

  • Blog Post Links Won't Work

    Greetings!
    My blog post links at http://HealthyDayFitness.com/ won't work and I can't figure out how to remedy the problem.
    Any help would be greatly appreciated!
    Cheers!

    Thanks for the reply!
    I'm publishing to a folder and using FileZilla to upload the site. I simply click and drag all the files within my site folder onto the site. I did not click and drag the folder, because then it gives me the address http://HealthyDayFitness.com/HealthyDayFitness/Welcome.html. Looks messy in my opinion.
    I'm a little confused on what you mean by blank spaces on the page name... This is the blog page that works: http://healthydayfitness.com/Blog/Blog.html
    If you click on "First Post," that's when things go haywire, but I don't see any blank spaces in that broken URL.
    Any other thoughts? If not, I'll give the folder upload a try.

  • Edge Animate file working on main blog page but not on the individual blog post in BC

    I recently uploaded an edge animate file to my blog which is host on Business Catalyst (BC). The edge file works on the main blog page but not on the individual blog post. How can I solve this problem?
    I did the following steps:
    I added the required Adobe Edge scripts on my main blog template.
    Create folder on the server called "edge_includes" and uploaded the 'edge.5.0.0.min' file.
    Create folder on the server called "js" and uploaded the 'jquery-1.7.1.min' file.
    Copy and pasted the div to the part of the blog post I wanted the file to appear (<div id="Stage" class="EDGE-13973370"></div>).
    Uploaded the name of the js file to the root called 'World of Code_edge.'
    Uploaded the images to the existing folder called 'images.'

    I'm still unable to figure out the problem.
    Here is the link to the blog: http://goo.gl/sPW62j (the post titled "Basic Computer Science is a Fundamental Skill in the 21st Century Society").
    Here is the link to the individual post: http://goo.gl/jTSgZH
    Also, I get mixed results on the main blog page. Sometimes the image (Edge Animate file) on the main page shows and other times it does not. However, the image never shows on the individual blog post.

  • Template works on other pages except the blog posts

    Hello,
    I have several templates that I use with my BC site. But when it comes to the blog post itself, the template does not go into effect and this appears:
    "Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author."
    Sample blog post is Amazing Space X and Elon Musk.
    Any information would be highly appreciated.
    Thanks!

    The page isn't able to locate the CSS / Java files to display your page properly. Check the file path:
    For example you have:
    http://www.bigdipperworx.com/news/css/site_global.css
    When I'm sure you want:
    http://www.bigdipperworx.com/css/site_global.css
    Check your template and or content holders (wherever you have the paths located).

  • Is it possible to link to a specific Wordpress blog post within Muse?

    Hey Adobe Muse community,
    I'm currently building a site for a client who wants to have full editing capability of his blog posts. He's comfortable with Wordpress, and we've successfully embedded his blog in the Muse-built site. However, throughout the site, there will be references to specific blog posts (that would ideally link to that individual post directly) and he will probably want to promote new posts by being able to send or share the blog post url directly. Using the WP native url isn't really an option as the WP blog has been designed to fit within the Muse site (all redundant menus, call-outs, etc, have been removed), so it doesn't work well as a stand-alone. Additionally, the client doesn't want visitors to be taken away from the site in order to view the blog.
    Any help or insight would be most appreciated.
    Thanks all and happy holidays,
    Liz

    you can try using an Arrange Track (though i've found it a bit flaky):
    http://www.bulletsandbones.com/GB/GBFAQ.html#findarrangetrack
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    aside from that, see these entries for the moving and deleting:
    http://www.bulletsandbones.com/GB/GBFAQ.html#split
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    http://www.bulletsandbones.com/GB/GBFAQ.html#cutsectionnospace
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    http://www.bulletsandbones.com/GB/GBFAQ.html#lockautomation
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Customizing the blog post web part to not show entire entries

    I have a blog site, and as you know, the posts web part shows the entire contents of each listed post, rather than one paragraph, followed by a "click here to read more" link.  I know that there is no out-of-box functionality for this, because of course,
    why would there be? Who needs nice looking blogs?  Anyway, I found this on the internet:
    http://zabistop.blogspot.com/2009/02/customizing-sharepoint-blog-posts-web.html
    It knows what's up, but it's outdated and the code doesn't mesh with what I have. Are there any articles similar to this online? I can't be the first person who thought of this, and doing it from the ground up is not an option. I appreciate any help.

    In 2010 you can make the same changes using a similar method.
    Open the default.aspx page, in code view click in within the blog area. In the ribbon click on the List View tools >design. Click on Customize XSLT in the Actions panel. When you do that you will be able to see all the code.
    Find this line of code <xsl:template name="FieldRef_Note_body.Body" ddwrt:dvt_mode="body" match="FieldRef[@Name='Body']" mode="Note_body" ddwrt:ghost="hide">
    Approx line 402. It actually looks like   </xsl:template><xsl:template name="FieldRef.... so you will have to place your cursor after the template close and hit enter a few times to make space for the code.
    Directly above that line, where you have added spaces, include this code. (I cheated and grabbed this code from another site where we did the same thing - and was able to modify it slightly to work for the blog.)
    <!-- used to strip out HTML from passed-in field -->
        <xsl:template name="removeHtmlTagsFromField">
         <xsl:param name="html"/>
         <xsl:choose>
             <xsl:when test="contains($html, '&lt;')">
                 <xsl:value-of select="substring-before($html, '&lt;')"/>
                 <!-- Recurse through HTML removing all markup -->
                 <xsl:call-template name="removeHtmlTagsFromField">
                     <xsl:with-param name="html" select="substring-after($html, '&gt;')"/>
                 </xsl:call-template>
             </xsl:when>
             <xsl:otherwise>
                 <xsl:value-of select="$html"/>
             </xsl:otherwise>
         </xsl:choose>
     </xsl:template> 
    Next below the line ( should be the next line below the pasted code)   <xsl:template name="FieldRef_Note_body.Body" ddwrt:dvt_mode="body" match="FieldRef[@Name='Body']" mode="Note_body" ddwrt:ghost="hide">
    Locate the       <xsl:param name="thisNode" select="."/> and paste the following code:
      <!-- call "removeHtmlTagsFromField" template to strip out html markup from the field -->   
     <xsl:variable name="textOnlyDescription">
         <xsl:call-template name="removeHtmlTagsFromField">
             <xsl:with-param name="html" select="$thisNode/@*[name()=current()/@Name]" />
         </xsl:call-template>
     </xsl:variable>
    I have already swichted out the select content with the content that was in the xsl line that renders the body content.
    Locate the code  ( should be 2 lines down)     <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes"/>
    Comment the code out and replace with the following code:
          <xsl:value-of select="substring($textOnlyDescription, 0, 320)" disable-output-escaping="yes"/>
          <xsl:if test="string-length($textOnlyDescription)>320">...</xsl:if>
    Change the number to your desired length.
    Save your file.
    You can revert the file if you ever need to, after its checked in, by right clicking on the page and selecting reset to site definition. 
    Hope this helps. I plan on doing a post shortly covering this and will have screen shots.
    Heather Waterman SharePoint Desginer www.heatherwaterman.com

  • Observer Design Pattern: Looking for redesign ABAP OO code example

    Hello folks,
    I am looking for an example for ABAP OO code that has been redesigned by applying the Observer Design Pattern. I would be very interested in both the code before as well as the code after the pattern is being applied.
    Thanks in advance and kind regards, Alex

    Observer can be implemented using the EVENTS.
    I had recently implemented the observer at one of my client's place. I had screen with so many ALVs. One ALV was kind of editable and other were just showing the information of the current row as well as some total information. So, initially I started with the Main ALV and SUB(1 and 2) for other ALVs. Now, when I need to refresh my ALVs based on the main ALV data, I had to explicitly update the data of the each Sub ALV. The code was kind of static and requirement was not yet fixed.
    Later on we need to add one more ALV on the same screen. It was easy to change the existing method where I was doing the explicit refresh of each ALV. But I thought of using the Events.
    I created an event REFRESH_DETAILS for main ALV. so, when data gets changed (which I was catching by DATA_CHANGED event of ALV), I raise the event.
      RAISE EVENT REFRESH_DETAILS
        exporting new_data = it_Data.
    In Sub ALVs, I created the event handler method to handle the event REFRESH_DETAILS of the main ALV.
      methods: handle_refresh_details
          for event REFRESH_DETAILS of ZCL_MAIN_ALV.
    I also had to register the Handler.
      SET HANDLER me->handle_refresh_details FOR ALL INSTANCES.
    I'll soon write a post on my [ABAP Help blog|http://help-abap.zevolving.com/] with all the details.
    Regards,
    Naimesh Patel

  • Design Patterns, The Decorator

    When trying to implement the classic decorator design patterns your decorator executable might look like this:<br><br>
    <pre>
      METHOD validate.
        DATA: Validator TYPE REF TO validation_manager.
       CREATE OBJECT:
         Validator TYPE validation_manager.
        ,Validator TYPE validate_format                 EXPORTING x_validator = Validator
        ,Validator TYPE validate_values                 EXPORTING x_validator = Validator
        ,Validator TYPE validate_relation_input       EXPORTING x_validator = Validator
        ,Validator TYPE validate_relation_database EXPORTING x_validator = Validator.
        me->lst_result = validator->validate( me->lst_data ).
        WRITE: / 'Processing Validate Activity'.
      ENDMETHOD.                    "validate</pre><br><br>
    The validate method ends up in endless resurcion in the memory. The reason is that I'm using the same variable as the resulting instanse and as parameter. It seems like the constructor treats both the result and the parameter as the same field/instanse regardless import parameter such as VALUE/REFERENCE. If I change the method to use an extra field in the method validate like:
    <br><br><pre>
      METHOD validate.
        DATA:
          validator  TYPE REF TO validation_manager
         ,recursive  TYPE REF TO validation_manager.
        CREATE OBJECT validator TYPE validation_manager.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_format
          EXPORTING x_validator = recursive.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_values
         EXPORTING x_validator = recursive.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_relation_input
          EXPORTING x_validator = recursive.
        recursive ?= validator.
        CREATE OBJECT validator TYPE validate_relation_database
          EXPORTING x_validator = recursive .
        recursive ?= validator.
        me->lst_result = validator->validate( me->lst_data ).
        WRITE: / 'Processing Validate Activity'.
      ENDMETHOD.                    "validate</pre><br><br>
    Now the decorator engine works, but why does the first implementation not work when the same one executes fine in php, c++, delphi, java and other languages.<br><br>
    If you do not know what I'm trying to discuss, look up "Design Patterns - Simply", and jump to the chapter about the decorator design pattern. I'm trying to use this design pattern for a validation manager within my Business Process Engine, which needs to be able to configure what types of validation needed for on specific process (BPMN).<br><br>

    Hi Matt, Thanks for the formatting..:) I will post the complete program as it's only a prototype program. Trying to get the format under control.
    </body>
    Report  ZDP_DECORATOR_XMP01
    REPORT  zdp_decorator_xmp01.
    parameters: bestimpl  TYPE boolean_01 default 0.
    TYPES:
      BEGIN OF processdata
       ,name   TYPE char30
       ,street TYPE char30
       ,zip    TYPE char5
       ,city   TYPE char30
       ,email  TYPE char50
       ,phone  TYPE char20
    ,END OF processdata
    ,BEGIN OF result
       ,msgid  TYPE msgid
       ,msgtyp TYPE msgty
       ,msgno  TYPE msgno
       ,status TYPE char1
    ,END OF result.
    CONSTANTS:
    true     TYPE boolean_01 VALUE 1
    ,false    TYPE boolean_01 VALUE 0.
    CLASS validationmanager DEFINITION
    CLASS validation_manager DEFINITION.
      PUBLIC SECTION.
        METHODS:
          validate
            IMPORTING
              x_data             TYPE processdata
            RETURNING
              value(y_result)    TYPE result.
    ENDCLASS.
    CLASS validationmanager IMPLEMENTATION
    CLASS validation_manager IMPLEMENTATION.
      METHOD validate.
        WRITE: / 'Common validation'.
      ENDMETHOD.                    "validate
    ENDCLASS.
    CLASS Validate_Decorator DEFINITION
    CLASS validate_decorator DEFINITION INHERITING FROM validation_manager ABSTRACT .
      PUBLIC SECTION.
        DATA: validator TYPE REF TO validation_manager.
    ENDCLASS. 
    CLASS validate_format DEFINITION
    CLASS validate_format DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.   
    CLASS validate_format IMPLEMENTATION
    CLASS validate_format IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the format checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS.
    CLASS validate_values DEFINITION
    CLASS validate_values  DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.
    CLASS validate_values IMPLEMENTATION
    CLASS validate_values IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the values checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS. 
    CLASS validate_relation_input DEFINITION
    CLASS validate_relation_input DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.
    CLASS validate_relation_input IMPLEMENTATION
    CLASS validate_relation_input IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the relation input checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS.
    CLASS validate_relation_database DEFINITION
    CLASS validate_relation_database DEFINITION INHERITING FROM validate_decorator.
      PUBLIC SECTION.
        METHODS:
          constructor
           IMPORTING value(x_validator) TYPE REF TO validation_manager
         ,validate REDEFINITION.
    ENDCLASS.  
    CLASS validate_relation_database IMPLEMENTATION
    CLASS validate_relation_database IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD super->constructor( ).
        me->validator = x_validator.
      ENDMETHOD.                    "constructor
      METHOD validate.
        y_result = validator->validate( x_data ).
        IF y_result-status IS INITIAL.
          WRITE: / 'Now doing the relation database checks'.
        ENDIF.
      ENDMETHOD.                    "validate
    ENDCLASS.  
    CLASS process_execution DEFINITION
    CLASS process_execution DEFINITION.
      PUBLIC SECTION.
        METHODS:
          startevent
         ,getdata
         ,validate
         ,process
         ,endevent.
      PRIVATE SECTION.
        DATA:
          lst_data   TYPE processdata
         ,lst_result TYPE result.
    ENDCLASS.                    "process_execution DEFINITION
    CLASS process_execution IMPLEMENTATION
    CLASS process_execution IMPLEMENTATION.
      METHOD startevent.
        WRITE: / 'Processing startevent'.
      ENDMETHOD.                    "startevent
      METHOD getdata.
        me->lst_data-name        = 'Hans Andersen'.
        me->lst_data-street      = 'H.C Andersens Boulevard 112'.
        me->lst_data-zip         = '1557'.
        me->lst_data-city        = 'København'.
        me->lst_data-email       = 'hcATandersen.dk'.
        me->lst_data-phone       = '0045-31162211'.
        WRITE: / 'Processing Get_Data Activity'.
      ENDMETHOD.                    "getdata
      METHOD validate.
        DATA:
          validator  TYPE REF TO validation_manager
         ,recursive  TYPE REF TO validation_manager
        IF bestimpl = true.
          CREATE OBJECT:
            validator TYPE validation_manager
           ,validator TYPE validate_format EXPORTING x_validator = recursive
           ,validator TYPE validate_values EXPORTING x_validator = recursive
           ,validator TYPE validate_relation_input EXPORTING x_validator = recursive
           ,validator TYPE validate_relation_database EXPORTING x_validator = recursive.
        ELSE.
          CREATE OBJECT validator TYPE validation_manager.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_format
            EXPORTING x_validator = recursive.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_values
           EXPORTING x_validator = recursive.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_relation_input
            EXPORTING x_validator = recursive.
          recursive ?= validator.
          CREATE OBJECT validator TYPE validate_relation_database
            EXPORTING x_validator = recursive .
          recursive ?= validator.
        ENDIF.
      Recursive call of the validate and it's successors
        me->lst_result = validator->validate( me->lst_data ).
        WRITE: / 'Processing Validate Activity'.
      ENDMETHOD.                    "validate
      METHOD process.
        WRITE: / 'Processing Process Activity'.
      ENDMETHOD.                    "process
      METHOD endevent.
        WRITE: / 'Processing endevent'.
      ENDMETHOD.                    "endevent
    ENDCLASS.    
    CLASS mainapp DEFINITION                                             *
    CLASS mainapp DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          main.
    ENDCLASS.   
    CLASS mainapp IMPLEMENTATION                                         *
    CLASS mainapp IMPLEMENTATION.
      METHOD main.
        DATA:
          p89 TYPE REF TO process_execution.
        CREATE OBJECT p89.
        p89->startevent( ).
        p89->getdata( ).
        p89->validate( ).
        p89->process( ).
        p89->endevent( ).
      ENDMETHOD.  
    ENDCLASS.     
    START-OF-SELECTION.
      mainapp=>main( ).
    Edited by: Matt on Dec 22, 2009 2:03 PM Fixed formatting

Maybe you are looking for

  • Hierarchical query with where clause

    Hi, How can I query hierarchically a query with WHERE clause? I have a table with three fields session_id,id and root_id. When I try with the following query, select id, level from relation where session_id = 79977 connect by prior id = root_id start

  • Best way to input Apple Maps destination by voice?

    I just got Siri Eyes Free integration added to my car, so I am switching from Waze and Google Maps to Apple Maps so I can enter desitinations by voice by simply hitting  button in the steeting wheel.  However, so far I am very disappointed with Apple

  • How to set up voiemail

    i noticed when i first got my nokia e71 that my voicemail changed. it would greet everyone who called by name and the whole set up of my voicemail was much cooler. now for some reason my phone changed back to my old voicemail, with my old recording a

  • Bug: View does not resize after soft keyboard dismissal

    On Android when resizeForSoftKeyboard=true, the view does not resize after dismissing the soft keyboard. This simple app demonstrates the bug. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"             

  • How to disable "Unitilized Volume" Warning ?

    I've got multiple operating systems on my mac. Each operating system is on a unique drive. How can I disable the annoying "Uninitilized Volume" warning ?