work object in rqcreatelineapproval flow to trigger rqlineapproval

Sort:
You are not authorized to post a reply.
Author
Messages
Roger French
Veteran Member
Posts: 545
Veteran Member
    For the delivered flow of rqcreatelineapproval, there are several variables in the Variables tab within the WorkObject to rqlineapproval such as:
    RL_COMPANY
    RL_REQ_NUMBER
    etc...

    We're trying to implement the line level approval for requisitions, not header. So rqcreatelineapproval triggeres also the rqlineapproval flow and passes the variables to it.
    We've got everything set up and running and when an order is created and released, the work unit error log is having trouble and problems resolving how the variables in the work object are set up:
    String RLN_COMPANY=<!RL_COMPANY>
    String RLN_REQ_NUMBER=<!RL_REQ_NUMBER>
    etc...
    ..

    RL is the query for reqline and it's trying to reference the COMPANY field from the query. But when we trigger a workunit with a new requisition, the work unit error log spits it out at exactly these variables. Here is a sample error message:

    ErrorLog in Process : rqcreatelnapprv_V04 Workunit : 256, ActivityType=WO, Activ
    Exception while evaluating expression: RLN_COMPANY = <!RL_COMPANY>;
    illegally formed XML syntax (threadScript#1)
    ErrorLog in Process : rqcreatelnapprv_V04 Workunit : 256, ActivityType=WO, Activ
    Exception while evaluating expression: RLN_REQ_NUMBER = <!RL_REQ_NUMBER>;
    illegally formed XML syntax (threadScript#1)
    ...
    ...

    I have tried different variations using RLN_COMPANY=!RL-COMPANY and RLN_COMPANY=RL_COMPANY, but they all come back with the same error message.

    This is pflow version 9.0.1.5 on Windows env 9.0.1.5

    What am I missing here? What is the correct syntax to pass variables in the WorkObject node???? Is there a patch or newer version of the rqcreatelineapproval flow availbale?

    Thanks in advance,
    Roger
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      The variables passed from the create req line service to the req line approval service are the Header variables so RLN_COMPANY = RQH_COMPANY
      David Williams
      Roger French
      Veteran Member
      Posts: 545
      Veteran Member
        Thanks David, there are some bugs in the delivered flows in 9.0.1.5 format which I had to fix.
        You are not authorized to post a reply.