Lawson to Infor XM process flow issue

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
John Crudele
Veteran Member
Posts: 50
Veteran Member
    We are interfacing Lawson to their Inofr XM T&E product. I have a flow that is suppose to update the Vendors. it errors during the second Assign node. Here is the JAVA

    if (ACTION == "D")
     localActiveStatus = 0
    else
     if (VEN_VENDOR_STATUS == "A")
      localActiveStatus = 1
     else
      localActiveStatus = 0

    Here is the error

    ErrorLog in Process : XM_ExpOneVendor_V03 Workunit : 2820, ActivityType=ASSGN, ActivityName=Assign2440, ActivityId=ASSGN13 Date:01/27/2014 Time:09:20:28.035
    Exception while evaluating expression: if (ACTION == "D")
     localActiveStatus = 0
    else
     if (VEN_VENDOR_STATUS == "A")
      localActiveStatus = 1
     else
      localActiveStatus = 0;
    ReferenceError: "ACTION" is not defined. (threadScript#1)
    ErrorLog in Process : XM_ExpOneVendor_V03 Workunit : 2820, ActivityType=ASSGN, ActivityName=Assign2440, ActivityId=ASSGN13 Date:01/27/2014 Time:09:20:28.035
    Exception while evaluating expression: localVendorGroup = addTrailingSpaces(VEN_VENDOR_GROUP, 4, false);
    ReferenceError: "VEN_VENDOR_GROUP" is not defined. (threadScript#1)

    Any ideas would be appreciated

    We are Lawson 9.0.1 and SQL 2008
    I am also attaching the flow
    Attachments
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      Hi John,

      I looked at your flow, and I don't see any variables defined with the names "ACTION" or "VEN_VENDOR_STATUS" defined in the start node, and I don't see any fields prior to the assign that return fields with those names. Are you passing those variables from the service? From an input file? If not, where are you expecting those values to come from?

      We don't use XM, but from a pflow perspective something appears to be missing.

      Kelly
      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      Woozy
      Veteran Member
      Posts: 709
      Veteran Member
        Hi John - one more comment.

        If you are expecting these values to come from an input file (I'm guessing this is the case) then you need to reference them as "_inputData_ACTION" and "_inputData_VEN_VENDOR_STATUS". Basically, you treat the source file as a "node" named "_inputData".

        I hope this helps. Good Luck,

        Kelly
        Kelly Meade
        J. R. Simplot Company
        Boise, ID