ProcessFlow Variables

 6 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
MattD
Veteran Member
Posts: 94
Veteran Member

    I am new to working with ProcessFlow.  Can someone please explain to me how to get variables from the trigger to the processflow itself?  I am unsure how to call the variables from within when setting up a flow in ProcessFlow designer.  I appreciate any help anyone can offer.  Thanks.

    Terry P
    Veteran Member
    Posts: 234
    Veteran Member
      Is this a custom trigger or flow? Did you check to make sure they are defined on WF05.2? If so, then just right click on the Start node of the flow to see them there. Then to use them they are usually put accessed like this . The process flow user guide and admin manual explains it pretty well.
      Shane Jones
      Veteran Member
      Posts: 460
      Veteran Member
        Matt,

        How are you starting your process flow? Is it manually started, scheduled or are you connecting it to a personnel action?

        If the variable is somewhere in your database you just query to pull the data into the flow and if necessary assign it to a variable that you named in your start node.

        If you have variables that are not in the database...
        - A manually started flow can have additional variables setup in the Start Node.
        - A Scheduled Flow will need to have the additional variables in the Start Node or somewhere "else" within the database.
        - A flow starting from a personnel action will usually have what it needs within the personnel action.

        There is a WF form within Logan that is used to start a process flow and it has the ability to define variables before you start the process flow. I tried using this and found it to be a pain in the ..... It was easier for me to just open designer and change the values in the start node because the manual flow was only run twice a year.

        What are the variables that you are trying to get into the flow?

        Good luck
        Shane

        Shane Jones
        Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
        Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
        ** Teach others to fish...
        MattD
        Veteran Member
        Posts: 94
        Veteran Member

          Thanks for the information.  I am using a basic trigger and have added variables to the service.  I was hoping that I could pick up these variables in the processflow.  But I do not see where these are picked up in Process Flow Designer or how I define them in Process flow designer so they can be used later in the processflow.

          What I am attempting to do is have a trigger activated everytime a new employee is added to HR11.  That trigger will send the approriate information (Employee ID) to the processflow so that it can pull the information needed out of HR11 and add the new employee to RD30.  We would like to do this because we are implementing Employee Self Service and we will have a lot of user setups going forward.

          Anymore help you can offer is greatly appreciated.  Thanks.

          Shane Jones
          Veteran Member
          Posts: 460
          Veteran Member
            Okay... Wow.... This is a rather advanced Process Flow because you are jumping into more than just queries and emails... When you start writing to the database and creating records it is much more advanced.

            Are you on LSF 8 or 9? If you are on LSF 8 I would wait to create this process because it will change significantly when you move to LSF9....

            WFWK - Trigger
            WF05.2 - Variable Setup
            WF22 - Variable storage

            I would do a Personnel Action (PA50) that has workflow attached and then setup a flow to trigger automatically based on the action. This would allow the system to use Lawson's delivered trigger and would make it much easier to setup and use. I think there are quite a few documents that give step by step instructions for connecting a flow to a personnel action.

            A variable that is defined in WF05.2 can be used throughout the flow by using .... Also, you can use an assign node to assign a queried item to a variable. Nodename_fieldname.... One trick is to change - to _ in any field name, For example date-hired would be date_hired.... Variables are case sensitive so always watch your naming. (I just use all lowercase names)

            If you are still using version8 I could send you a simple flow that has a query and an assign so that you could see the basic structure. However, I would tell you that what you are trying to do is not going to be "simple". You might want to consider starting out by creating a flow that sends an email to someone that will manually create the record first and then once you have that working look at creating the web user record. You are going to need to consider activating, inactivating, name changes, and bookmark groups if you are using them/etc.... I think I have the AGS call for creating a Web User record in LSF8 if you want the AGS string??

            support.lawson.com
            Knowledgebase Article = 545353 and 95799 and 130938 (good one)
            Click: Product, Documentation, search for Process Flow... The User Guide gives a lot of helpful information


            Good luck!
            Shane Jones
            Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
            Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
            ** Teach others to fish...
            John Henley
            Posts: 3353

              Matt, since you mention RD30, that tells me you're not onto LSF9 yet. I would caution you against spending too much time on that, since RD30 goes away with LSF9, and you'd need a different method for provisioning the accounts, etc.  See this post for more info: https://www.lawsonguru.co...d/2695/Default.aspx.

              Thanks for using the LawsonGuru.com forums!
              John
              MattD
              Veteran Member
              Posts: 94
              Veteran Member

                Great thanks.