User Action in Batch file

 3 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Joan Herzfeldt
Veteran Member
Posts: 74
Veteran Member

    Background: reading in a batch file (gl records); using Lawson Txn to write record to table.
    write to table Successful move to next node and then to the end of the data iterator.  
    On Error: we want the record to go to a user action node.  However we want the rest of the file to continue processing.

    1. What is the best way to accomplish this?

    ************

    2. In the user action can the user modify the record and then approve it to continue processing?
     I'm assuming we would assign variables to the fields in the record; ASSIGN the new values to the fields and then go back the the Lawson Txn again.

    I don't need exact steps to either question, just point me in the right direction please.

    thanks -Joan

    Lawson_Kid
    Basic Member
    Posts: 13
    Basic Member
      Joan it seems like the fixing of the records would have to happen in real time, Query> Transaction > Error > Fix > Continue Transaction > Next Item. A user action is a hard stop but say the user "approves" after making the selection you can have it continue the workflow.

      Maybe the best bet you have is to save all the errors, complete the first query, send the complied errors to a user action then on approval restart the beginning query. Rinse and repeat till a branch condition is met where their are no errors and ends the flow.
      Joan Herzfeldt
      Veteran Member
      Posts: 74
      Veteran Member

        Thanks - We couldn't find anything that indicated what I wanted would work.  We opted to send the errors to a msg builder.  The end user gets an email with a .csv attachment containing the records that need to be fixed.  The user can fix the records in the file and use Add-ins to upload it.  I'm sure there are other (better) ways to do this, but we are in the middle of upgrading to Infor 10 so don't have time.  It's on our post upgrade list to review again.

        Thanks again - Joan

        Bob Canham
        Veteran Member
        Posts: 217
        Veteran Member
          If you wanted to do this as a user action but continue the file, you could do it using a sub-flow. You create a flow that would take the variables associated with error records and contains the user action. Then in the main flow that is processing the file, if there is an error, it spawns the sub-flow in Asynchronous mode. That way it will spawn a bunch of user actions, one for each error, but continue processing the file.