Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

by Laurent_R (Canon)
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


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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056261]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-06-24 10:20 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.