Customer Portal

ExecuteGraph in JobFlow - bringing dictionary items back to JobFlow

Comments 3

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi Bruce,

    I would highly recommend using the SetJobOutput to set the dictionary value on the graph level. Then in the ExecuteGraph you can directly map the dictionary in the Output Mapping. I have also, taken the liberty of adding an example Project.

    DictionaryExample.zip
  • Avatar
    bruce
    0
    Comment actions Permalink
    Thanks.

    I follow your logic but want to understand how you're setting the dictionary value in "Reformat". The code is below. In this line $out.0.myList = myList; Is this setting the dictionary value or creating a record to be processed in the next step? I would have expected this line to say Dictionary.myList = myList.

    What am I missing?

    integer[] myList;
    integer i = 0;

    // Transforms input record into output record.
    function integer transform() {

    insert(myList, i, $in.0.myValue);
    i++;

    $out.0.myList = myList;

    return ALL;
    }
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    The "Reformat" is building the record that will be assigned to the Dictionary in the next step of the flow which in this case would be SetJobOuput. If you have questions I would recommend reading more about SetJobOutput in our documentation.

Please sign in to leave a comment.