Add workunit variables?

 6 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
vc727
Advanced Member
Posts: 44
Advanced Member

    I am trying to get a design studio inbasket working for our 9.0 upgrade. I have narrowed it down to needing to get the position level on the workunit variable list. The problem is so far the only way I know how to do this is going and manually adding it.

    So My question is how are the workunit variables created and how can I ad one either by setup change or with processflow.

     

    Roger French
    Veteran Member
    Posts: 549
    Veteran Member
      You can add your needed/required variables within the actual flow themselves, i.e. using the PF designer tool.
      KK - Infor
      Veteran Member
      Posts: 61
      Veteran Member
        In 9.0 ProcessFlow, you will need Webrun node to push Web calls to the BPM Menu.do forms to Add/ Change WorkUnit variables.
        vc727
        Advanced Member
        Posts: 44
        Advanced Member

          Where do those forms live I am looking in the API builder and am not finding anything.

           

          Right before The lawson support person told me this was not within thier scope of support he said something about the workunit variables being in a view so he wasn't sure it was possible.

          I would love to prove him wrong.

          ShawnV
          Advanced Member
          Posts: 37
          Advanced Member
            1) Create a webrun node in process flow
            2) Use the following in your Web Program: bpm/xml/workUnitVariablesForm.do
            3) Put your action in the Post String section. I used the following to add a new variable to an existing workunit: method=Add&workUnit=7774&variableName=Name&sequenceNumber=0&variableValue=Shawn
            Gary Davies
            Veteran Member
            Posts: 248
            Veteran Member
              Using a sequence number of 0 will work if only adding one variable. The delivered triggers start with seq number 1. Technically though you should first query the WFFVARIABLE table to find the last sequence number used then add 1 to it before calling the WebRun
              vc727
              Advanced Member
              Posts: 44
              Advanced Member

                Thanks that was just what I needed to make it all work.