Write to ProcessFlow Debug Log

 5 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member
Posts: 709
Veteran Member
    Is there any way to write a value to the ProcessFlow debug log for troubleshooting purposes?   

    I'm sure there must be a way, but I can't figure it out.

    Thanks!
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Gary Davies
    Veteran Member
    Posts: 248
    Veteran Member

      If you have Integrator there is a Custom Activity node rhat has an api to write to the log but you have to develop a java bean to use it. Also with integrator you can append to any flat file on the system. Otherwise you will have to write a custom 4GL program to write to it and make an AGS call to it.
      Woozy
      Veteran Member
      Posts: 709
      Veteran Member
        Thanks Gary. I was afraid it would be something like that.
        Kelly Meade
        J. R. Simplot Company
        Boise, ID
        John Henley
        Posts: 3353
          I'm curious--why do you want to write to that log file rather than your own?

          Regardless, if you have PF integrator, you might try using the Append function of the FileAccess node...

          Otherwise you can use the SystemCommand node with rudimentary echo commands.

          Not sure, but either method may result in a "file is locked" error, in which case you could/should write to your own log file.
          Thanks for using the LawsonGuru.com forums!
          John
          Selva
          Basic Member
          Posts: 8
          Basic Member
            Since you are using PFI, Could you give a try with FILE ACCESS Node with options below, it is working for us.

            File Operation : Append to File
            Output File : provide absolute path of the log file you want to use. Can use a custom file or can also use the workunit log file.
            Input Data :   provide the error message you want to use in Input data.

            I am sure this would work. Let me know if you need furthur help

            Regards,

            Selva



            Woozy
            Veteran Member
            Posts: 709
            Veteran Member
              Thanks John and Selva. I have considered writing to my own log, and that may be the best approach. Since I'm new to PFI, I'm just trying to figure out what other people are doing. Thanks.
              Kelly Meade
              J. R. Simplot Company
              Boise, ID