I think you are mistaking your data for your code. Others have noted that this is a workflow process. In my day job I address this sort of problem with Lotus Workflow. The idea there is to write down the whole workflow process separate from your application and let the workflow engine do all the actual execution. (follow the link and do a brief scan of the product brief PDF to see the pretty pix). This isn't a new concept - it's just separating your data from your code.

I haven't seen anything in the perl world that even approaches LWF so that's a miss. If you can find a comfortable medium between writing an workflow engine and just hardcoding your workflow you'll be good. Anyhow, I just wanted to point out that you had the wrong orientation.


Fun Fun Fun in the Fluffy Chair


In reply to Re: Decision Trees and the Strategy Design Pattern by diotalevi
in thread Decision Trees and the Strategy Design Pattern by djantzen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.