Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: handling tasks and customizing flow of tasks using perl

by wjw (Curate)
on Oct 04, 2013 at 01:53 UTC ( #1056828=note: print w/replies, xml ) Need Help??

in reply to handling tasks and customizing flow of tasks using perl

Coming from a manufacturing background, I find your problem interesting. This seems to be much like an MES or ERP module for factory routing. There are two basic lists I would provide to achieve the functionality I understand you describing:

List of rout elements:
This would look like:
1(unique int)buildFrame
2(unique int)addSeats
3.. ...

List of existing routs:
would look like:

What your storage solution is does not really matter. Could be text files, XML, RDBMS, JSON, .ini....whatever...

The key is to be able to easily add "workstations", and easily add routs(ordered collections of workstations)

The workstation list is just a lookup to fill in the rout. Both the existing routs and workstation list would only be added to. (thus you never loose the history of a rout).

Really all you need is an array to hole the workstations and a hash of arrays to hold the routs. With those two structures, you can do pretty much anything you need to do for a simplistic system. Both lists could be stored in a single file if that makes it easier, or in a spreadsheet assuming you use something like Spreadsheet::WriteExcel.

I would use an RDBMS for my storage personally, but again, it hardly matters. In my experience, the priorities are in order:

  1. flexibility(mfg always changes)
  2. Maintainability (KISS)
  3. Resources(skillsets)
  4. historization(traceability)

Hope there is something useful to you in there...

  • ...the majority is always wrong, and always the last to know about it...
  • my will, and by will alone.. I set my mind in motion
      • Comment on Re: handling tasks and customizing flow of tasks using perl

Replies are listed 'Best First'.
Re^2: handling tasks and customizing flow of tasks using perl
by asham (Novice) on Oct 09, 2013 at 11:51 UTC
    Hi wjw,

    Thanks a lot for your suggestions. They are very helpful. I would try to pick some inputs from your reply and incorporate in our use case.

      Glad to know you found something useful there asham.

      I enjoy thinking about and working with process flow and find questions like yours inspiring all sorts of other questions, which is what makes them challenging and interesting, particularly when Perl is involved.

      Do feel free to use what ever was useful to you in your project and best of luck with it!

      ...the majority is always wrong, and always the last to know about it...
      Insanity: Doing the same thing over and over again and expecting different results.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056828]
[ambrus]: huh... what does "SV" mean there?
[Marshall]: stevieb wish you well with water problems, my water was off all day Monday for repairs. Any more progress on .exe info problem?.
[stevieb]: Marshall: no. I commented on the thread yesterday. Visual Studio updates the tags ok, but corrupts the exe
[stevieb]: I advised the OP that a possible workaround would be to add a version function/flag that displays the required copyright/license info instead
[Marshall]: Darn! I'll look at the thread. Must not be updatinga byte count somewhere. The .exe format is a complex critter.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-12-08 18:12 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (144 votes). Check out past polls.