Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: handling tasks and customizing flow of tasks using perl

by Laurent_R (Vicar)
on Sep 29, 2013 at 22:33 UTC ( #1056261=note: print w/ replies, xml ) Need Help??


in reply to Re^2: handling tasks and customizing flow of tasks using perl
in thread handling tasks and customizing flow of tasks using perl

Hmm,

there are many aspects to be taken into account.

I was writing last week a program template aimed at some other IT persons. The idea was to give them the (quite complicated and thoroughly tested) algorithm, and let them construct the input data, which could be summarized as follows:

('table1' => { 'index_fields' => [0, 1, 2], 'ignored_fields' => [6]}, 'table2' => { 'index_fields' => [2], 'ignored_fields' => [4, 7]}, )

It is not too complicated to give IT persons instructions on how to fill the next records in this structure to achieve the desired result.

But if your user has no IT background, this might not be workable.

I still don't think that asking them to fill an XML structure is the right idea. Asking your users to write a config file such as:

1. A -> B -> D

is clearer for your user (so long as you explained the details) and actually easier for you to parse.


Comment on Re^3: handling tasks and customizing flow of tasks using perl
Select or Download Code
Re^4: handling tasks and customizing flow of tasks using perl
by asham (Novice) on Oct 03, 2013 at 19:09 UTC
    Hi Laurent, My apologies for the late reply. Have been busy with work.

    Thanks for your reply.Regarding your reply,yes true asking users to write config file is easy. but I guess we are again missing the point.

    Idea is to come up with some design which allows customization of code and still allows to control basic flow of tasks. Till now the suggestions cover following: 1) vsespb's suggestion, covered use of known customizations. 2) your suggestion, covers control of flow and tasks.

    Also I gave it another thought and wondered if providing a template to even an inexperienced user something like following should be kind of easy to understand right?

    <xmlFile> <action name="A" execute="true" /> <action name="B" execute="true" /> </xmlFile>

    I understand its xml file. But normal user simply need to switch true to false to control flow or change order of elements (example: putting B before A) to change flow while experienced user can make use of customization tasks available. The only thing tempting me to use xml is the schema file/validations/child elements/structure offered by it which can help me mix complex and simple tasks at the same place.

    Anyway will wait a bit more for inputs before I go with any implementation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-07-26 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls