Do you know where your variables are? | |
PerlMonks |
Re^2: handling tasks and customizing flow of tasks using perlby asham (Novice) |
on Sep 29, 2013 at 18:28 UTC ( [id://1056252]=note: print w/replies, xml ) | Need Help?? |
Hi Laurent,
Thanks a lot for looking into this.
Yes true xml are not used for such code mix but it would be kind of configuration file only right? as it holds details related to tasks. exampple: should a task be executed or not and if yes than with what configuration parameters. The only extra thing I was thinking of adding was the pre/post tasks which may vary for some users. (also idea of this post is to come up with some good design to handle the use case.) Regarding the building graph/hash suggested by you, I had considered that but I was not convinced with the idea because doing that means I am kind of fixing the flow of tasks. Any changes in future require update of code rather than just a tiny update in xml/properties file which can be even exposed to user. (i generally prefer xml/properties file compared to such code updates because of more flexibility and ease of use. As end user may not know the code and can just update the xml file to change/control the flow.) Just to let you know that mixing xml/perl is not the best design and that's why I am looking for inputs here. I wanted to check if people were using it or apis are for this. (note: jsp/jsf mix html and java. so thought something on those lines.) Regarding paths: 1) A->B->C->D 2) A->C->D 3) A->B->C 4) A->D These are just for example, you can check the xml file shared in my first post. note its rough design and any such redundancies will be handled when we actually finalize an approach. regarding the details requested by you. I am updating original question with a real life example. Please check, hope it helps in understanding the case more.
In Section
Seekers of Perl Wisdom
|
|