Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: handling tasks and customizing flow of tasks using perl

by wjw (Deacon)
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:
WSIDWork_Station_Name
1(unique int)buildFrame
2(unique int)addSeats
3.. ...

List of existing routs:
would look like:
RIDRout_nameWSID_1WSID_2...
1Model_142...
2Model_273
3Model_374...

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...
  • ..by my will, and by will alone.. I set my mind in motion

Comment on Re: handling tasks and customizing flow of tasks using perl
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-08-22 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls