Advice on setting up a Job to move Process Flows to History

 3 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Saurabh
Veteran Member
Posts: 94
Veteran Member

    Hi
    I  have a batch file which basically calls the MoveWorkUnitToHistory command with the Move option to Move the Completed workunits to History.

    Need advice on how i can set this up as a Job using jobdef so that i can then setup a weekly recurring schedule.

    Curently if i go into Jobdef and try to set it up, it is asking for a Productline/Form id and i am not sure if i need to give Logan as product line

    Many thanks in advance

    Regards
    Saurabh


    ***********Batch file  movewkunit.bat ****************
    perl %GENDIR%/bin/batch.pl MoveWorkUnitToHistory move

    Greg Moeller
    Veteran Member
    Posts: 1498
    Veteran Member
      You first need to set up a token via the Lawson utility tokendef
      Select option "C"
      Create or select a category (we have all of our batch files/scripts under the SCRIPTS category)
      Make up a "Form ID" and add a "Description"
      Press F6 (Define) and on the "Command" line put the complete path to your script.

      Then you can use jobdef and call the "Form ID" and set up your recurring job.
      Roger French
      Veteran Member
      Posts: 549
      Veteran Member
        Since it looks like you're on Windows, how about setting it up as a Windows Service? You would not have to create a new tokendef.
        -Roger
        Saurabh
        Veteran Member
        Posts: 94
        Veteran Member
          Greg - Thanks for the advice, i have now been able to set it up and run successfully.

          Roger - You are right , We are on windows, and i think i will try your suggestions about setting it up as a windows scheduled task. I am guessing i will have to have the enter.cmd as the first step before calling the move script so that the requisite lawson variables get set

          Many thanks to both of you for the prompt response