New NAS based job queue in 5.0

ta5ta5 Member Posts: 1,164
Where can I find info on the new nas based job queue? I have read something in the "Feature enhancement guide".

As far as I understand nas is started with the parameter JOBQUEUE. After that a single instance code unit is handling the entries in table "Job queue entry".

Somebody knows how the fields "Parameter String" and "Response Required" are used?

Thanks in advance

Thomas

Comments

  • ara3nara3n Member Posts: 9,256
    Response Required is not used anywhere. And Parameter String can be used by your codeunit. It's up to your codeunit to use it or not.

    Remember all codeunits require the job queue as parameter for onrun trigger.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • RudiRutscheRudiRutsche Member Posts: 30
    ara3n wrote:
    And Parameter String can be used by your codeunit. It's up to your codeunit to use it or not.

    But how can I access to this Parameter String in my codeunit?
  • ara3nara3n Member Posts: 9,256
    You codeunit will look like this.
    Documentation()
    
    OnRun(VAR Rec : Record "Job Queue Entry")
    
    
    message("Parameter String");
    //do stuff
    
    
    


    Your codeunit onrun property will have a property called TableNo, you need to set that to Job Queue Entry
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • RudiRutscheRudiRutsche Member Posts: 30
    ara3n wrote:
    You codeunit will look like this.
    message("Parameter String");
    

    #-o Of coursce, when "Job Queue Entry" is the "source table" i can use it`s fields....

    Thank you for opening my eyes :D
  • RudiRutscheRudiRutsche Member Posts: 30
    Another Question:

    How do I use the XML Field (Blob) in table 472 Job Queue Entry ?

    I heard you can put an xml script in there but i couldn`t find how this is supposed to be done...

    Do we need to implement this function on ourselves?
  • ara3nara3n Member Posts: 9,256
    Yes it looks like there is not manual way to insert the blob xml file.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.