USER ACTION in PFI

 16 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
PARTHIBANATHAN NATARAJAN
Basic Member
Posts: 13
Basic Member
    Hi All,

    Can you help me in USER ACTION in PFI.
    my Question is ,it is possible to use User Action in loop because i have  a query which has some user id so instead of uses in seperate user action for each userid from database  ,i plan to use by the DataIterator and pass the value in user action .





    Please help me .......

    Thanks
    Partihv
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      Yes, you can do this. I have a couple of flows that use this method. I use a variable for the userid and reference that in my UserAction.
      David Williams
      PARTHIBANATHAN NATARAJAN
      Basic Member
      Posts: 13
      Basic Member
        Thanks
        I have tried same ,in User action tab called "User" here i have passed the user id as variable but once we approved it get out of the loop .
        please help to resolve this issues.

        PARTHIBANATHAN NATARAJAN
        Basic Member
        Posts: 13
        Basic Member
          Thanks
          I have tried same ,in User action tab called "User" here i have passed the user id as variable but once we approved it get out of the loop .
          please help to resolve this issues.

          PARTHIBANATHAN NATARAJAN
          Basic Member
          Posts: 13
          Basic Member
            can you send me some example flow so it will be very help full..
            PARTHIBANATHAN NATARAJAN
            Basic Member
            Posts: 13
            Basic Member
              my eamil id : parthiban.msc@gmail.com
              Vijay S
              Veteran Member
              Posts: 174
              Veteran Member
                Yes ,you can use the same in Loop. While using the same in Data iterator (If you have a file say CSV )- You need two steps.
                1) Break the file into lines.
                2) Break the lines into words(for your case userids) and there you can use some variable for User ID and point it to user's inbasket.
                John Henley's Process flow tutorial in this site is quite helpful you can refer the same.
                PARTHIBANATHAN NATARAJAN
                Basic Member
                Posts: 13
                Basic Member
                  Hi ,
                  Thanks for your reply
                  I am iterate from the database .
                  1 ) i have a table called XXX ,it has some 6-9 user id .
                  2) i am iterate the user id and try to passing it to User action node in PFI .

                  but it is on "in process " when i am checking in administer tool .
                  and if am running in designer ,i am getting time out error .
                  if am running with out selecting "run on server "then it is iterating one after another..

                  please help ,i am struck with this issues for a long time.

                  Thanks in advance

                  parthiv
                  PARTHIBANATHAN NATARAJAN
                  Basic Member
                  Posts: 13
                  Basic Member
                    Hi ,

                    could you send me the link of "John Henley's Process flow tutorial"

                    Thanks
                    parthiv
                    Sam Simpson
                    Veteran Member
                    Posts: 239
                    Veteran Member
                      Can you please explain what kind of flow you are creating. It seems you are confused as to the direction of the flow when it is approve. So my question would be :1. what do you want to do after the workunit has been approved or rejected or unreleased? 2. What happens if the approver on vacation? Do you want to escalate to the next approver? 3. Are you sending emails for very actions made by the approver?
                      4. Do you have several UserAction nodes for different type of approver? 5. Are there criterias to consider when approving like item types , amounts, budgtting etc.
                      David Williams
                      Veteran Member
                      Posts: 1127
                      Veteran Member
                        It sounds like you're cycling through a list of users in an external table (Data Iterator). If one user selects Approve, are you continuing the loop or going to a node to process the approval?

                        In the Data Iterator, are you parsing by Line or Delimitor String? If you're reading by Line you will need to use a Branch to determine if you've captured all of your data elements.

                        If you email your flow to me, I will evalute it for you.
                        David Williams
                        PARTHIBANATHAN NATARAJAN
                        Basic Member
                        Posts: 13
                        Basic Member
                          Hi Sam,
                          I have only one user action node inside the sql loop.

                          According to the result set i m getting user id and position .each time the user id and position is different and i am passing to the user action node .the 1st if user approve the action ,then it will passed to the next user which is available in the result set and so on ....

                          Thank
                          parthiv
                          Sam Simpson
                          Veteran Member
                          Posts: 239
                          Veteran Member
                            Are you saying that since you have this table with 6-9 user ids, you want all of these users to get the in-basket (at the same time?) and approve the workunit? Is this HR related flows. Can you explain the logic of your flow. Thanks.
                            KK - Infor
                            Veteran Member
                            Posts: 61
                            Veteran Member
                              Parthiv,
                              According to Lawson's best practices, having a User Action node in between a Data Iterator is not recommended. However, you can still use it with caution.

                              'but it is on "in process " when i am checking in administer tool .
                              and if am running in designer ,i am getting time out error .
                              if am running with out selecting "run on server "then it is iterating one after another.. '
                              - When it is running on the server in case 1 (assuming you are triggering it from the apps); it is supposed to stay in-progress status till it loops through all the users. You can check the user's inbasket or take an Inbasket action from the Administrator tool.

                              If this doesn't help; as David said above, feel free to email me your flow. Will have to take a look at it to see what's happening.

                              Cheers,
                              KK
                              Sam Simpson
                              Veteran Member
                              Posts: 239
                              Veteran Member
                                Looks like you are using SQL node to read your XXX table and then use that user id to be used by your UserAction. As KK said this is not a good practice. I would go out of the loop then sent the information to the UserAction node. The problem here is knowing the proper order of approvers. Who's on first and the next in line. I would suggest enhancing your XXX table to include like sequence numbering or add a field as to who will be the next approver. Simply query your XXX table for the first approver, move the id's, seq nbr, next approver to a variable. Then when you repeat the query you will use the seq nbr or the next approver from the variables. You can also use a counter to see if every approver has done it then it's time to update the workunits.
                                PARTHIBANATHAN NATARAJAN
                                Basic Member
                                Posts: 13
                                Basic Member
                                  Hi KK,
                                  I hope u got my flow.
                                  I am send one after the another.
                                  1st user approve then i send to next ie 2 user to approve and so on......
                                  Thank
                                  Parthiv
                                  KK - Infor
                                  Veteran Member
                                  Posts: 61
                                  Veteran Member
                                    I didn't get the flow yet. Have sent you my personal email address too. Rename the flow with a .xyz/ zip it and send it. The mail servers might block xml extension attachments.