Multiple Conditions\Actions in a Workflow

I am in the process of creating an expense approval form with a workflow that has two Approval stages. In the first stage, however, the approver would be dynamic based on a selection in the form. The second stage approval would go to the same
person\group. What's the best\correct way to do multiple\conditions\actions in a single step? As an example of the workflow:
If Field1 equals Value1 Assign a task to Person1. If Associated Task is Approved create a new Task and Assign it to Person 10
there would be about 12 different iterations of the first step, Value2 Assign to Person 2 and so on.

Hi pjs, it depends on who the person is/how they're related to the selection on the form. If it's the user's manager, you can get that information by using the link below. If there's no real correlation to the selection made, then you'd have to make a list
with two columns- "selection" and "person to email." Then check that list against the selection and get the corresponding email for the particular approver.
http://www.sharepointanalysthq.com/2011/04/user-profile-data-in-sharepoint-designer-workflows/
cameron rautmann

Similar Messages

  • About case and switch in multiple condition step in workflow.

    i ve some information about case and switch in multiple condition in workflow.
    case - static determination
    switch - runtime determination.
    but i want brief explanation about case and switch and difference please help me.....

    hi velmurugan............
        in case,
               we can have only one value for comparison and can have any number of branches for it.
       in switch,
               we can compare any number of values and have any number of branches.
    eg:
         consider i am triggering a workflow for purchase order change and i am having a multiple condition step.
    if i am going for a case:
            i can have only on value (ie po number/vendor number.....) as a parameter and can check different values with it. ( eg vendor number < 1000
                                                                 vendor number > 1000.... so on)
            a branch will be created for each condition.
    if i am going for a switch:
            i can take any parameter needed. (eg: vendor number > 1000
                                                                    order type = 'NB' .... so on)
             so a single branch can have any number of comparisons with the help of 'and' and 'or' operators and i can have any parameter for my condition.
    ---regards,
       alex b justin

  • Mail step should be sent to all the users in multiple condition

    hi experts,
                      I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
    if >= 1000 person B can post the invoice.
    If >=2000 person C can post the invoice.
                                                                      what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

    Hi Priyanka,
    I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
    1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
        a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
            SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
        b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
            same as that of the amount field in your workflow) .
    2. Use this Rule in your workflow to send mail.
    Logic:
    ""Lokale Schnittstelle:
    *"       TABLES
    *"              ACTOR_TAB STRUCTURE  SWHACTOR
    *"              AC_CONTAINER STRUCTURE  SWCONT
    *"       EXCEPTIONS
    *"              NOBODY_FOUND
      INCLUDE <CNTAIN>.
      DATA BEGIN OF ORG_OBJECT OCCURS 0.
              INCLUDE STRUCTURE SWHACTOR.
      DATA END OF ORG_OBJECT.
      DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
              INCLUDE STRUCTURE SWCONT.
      DATA: END OF NEW_AC_CONTAINER.
      DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
      DATA: V_MAIL_INDICATOR TYPE <FLAG>.
      REFRESH: actor_tab.
    Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
      SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
    Get the org-object-type and the org-object id.
      SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    Pass the org-object, the org-object-type and the org-object-id
    to a new container.
    The org object get a new name: ORG_AGENT.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    check for V_AMOUNT and V_MAIL_INDICATOR.
    if the v_amount = 1000 .'
      if  v_mail_indicator = ' '.
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER1'.
        append actor_tab
      else.
        actor_tab-OTYPE = 'US'  . 
        actor_tab-OBJID = 'SAPUSER2'.
        append actor_tab
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER3'.
        append actor_tab
      endif.
    endif.
    Similarly write the logic for other conditions.
    This way you can use same for different purposes.
    If you pass the indicator that means you are sending mail to other approvers for information.
    Revert back if u need more help.
    Regards,
    Gautham

  • Multiple condition : Error when starting a SWITCH branch

    Hi,
    In our Z Leave Workflow,I am facing the errors listed below.
    Error when starting a SWITCH branch
    Error during CASE evaluation in SWITCH mode for node 0000000158
    Operator 'EQ': The value of the left operand cannot be determined
    Error in the evaluation of expression '<???>&REQ.STATUS&' for item '1'
    Unable to determine the value of component ''
    It gives error in Multiple condition Request Approved? which is similar to standard WF12300111 node number 158 (u can say copy of WF12300111
    This multiple condition works in some scenario But it gives dump at other scenario .
    I have checked the value of REQ.STATUS in runtime. It populates the value as 'POSTED' in runtime,
    Please suggest if any solution on this.
    Regards,
    Kalpesh

    Hi There was some problem with task which was comprising class CL_PT_REQ_WF_ATTRIBS and APPROVE method. This method is to change the status of particular leave workitem.After running this particular task ,the status was not changin instantly.This method locks particular workitem and was releasing the workitem once the WF gets completed.Hence I was getting REQ.STATUS as sent.
    I have changed that task with following code in new task...
    DATA:
          REQUEST_ID TYPE PTARQ_DEDUCTION-REQUEST_ID,
    request      TYPE REF TO if_pt_req_request,
        new_status   TYPE tim_req_status.
      SWC_GET_ELEMENT CONTAINER 'REQUEST_ID' REQUEST_ID.
    CALL FUNCTION 'ENQUEUE_EPTREQ'
        EXPORTING
          mode_ptreq_header = 'E'
          request_id        = request_id
        EXCEPTIONS
          foreign_lock      = 1
          system_failure    = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
        MESSAGE w058(hrtim_abs_req) WITH request_id.
      ELSE.
    CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id = request_id
          IMPORTING
            ex_request    = request.
    execute state transition
        CALL METHOD request->initiate_state_transition
          EXPORTING
            im_transfer_event = 'APPROVE'
          IMPORTING
            ex_new_status     = new_status.
    COMMIT WORK.
        CALL FUNCTION 'DEQUEUE_EPTREQ'
          EXPORTING
            request_id = request_id.
    ENDIF.
    This will create new status for leave item during WF processing.
    Apart from that also added Wait for  2 minutes after that task....
    Thanks for your help.
    Regards,
    Kalpesh

  • Error in multiple condition type switch

    Hi,
    I define a multiple condition as a switch for different processing branches for my
    Workflow (all my attributes in the conditions are from the object).
    I defined the Other Values outcome also.
    When one of the conditions is true I received an error SWP103 "Error when starting a SWITCH branch"
    It works fine when my process go to "other" outcome.
    Thanks in Advance,
    Ronit.

    In my workflow the same error occured while using a mutliple condition with type Switch.
    A short explanation of my workflow:
    - container operation: errorcounter = errorcounter + 1
    - multiple condition
      1. errorcounter =< 4
      2. errorcounter = 5
      3. other values
    - activity
    - loop until (depending on outcome activity).
    The first time while executing the loop went perfect, but the second time it failed and based on the message I guess it failed on the multiple condition. What I also notices in the technical view was that the errorcounter wasn't updated.
    I guess the container operation and multiple condition bumped into eachother (somehow?) and caused the error.
    My solution:
    Put a wait stap between step 1 and 2 and it works fine.
    I'm not sure this case is applicable to you, but may be a hint in the right direction. Good luck!

  • Problem running multiple folder actions at the same time

    Hi,
    Does anyone have some experience running multiple folder actions at the same time?
    I've written a Applescript folder action that processes some files. When adding some files, the script starts and all goes well. The processing of each file takes a few minutes, but all files are processed correctly.
    However, when adding some new files to the dropfolder, while the folder action is all ready processing other files dropped a few minutes earlier, the process that is all ready running immediately aborts and the folder action is relaunched on the new files, leaving the old files for what they are...
    The same problem occurs with multiple folders, each having a folder action attached. When dropping files in "Folder A", the script starts processing. But if someone droppes files in "Folder B", The script of folder A aborts, and the script of folder B starts processing. When adding more files to the folders, the result is the same. In some casses, when the last dropped files are processed, the os continues where the operation was aborted on the previous files. But this not always happens. To make things worse, when you remove the items from the folders afterwords, the folder actions starts running again on items no longer present in the folder !!!!
    Does anyone know how I can prevent the folder action being aborted when new files are dropped and placing the new files in "Hold", until the previous files are processed? How can I prevent a folder action being aborted when a item is dropped into another folder?
    I've written a small script to test this behaviour. Just create one or more folders and attach the script below. Drop a item into the folder, wait a few seconds and drop another one in the same or another folder. To monitor what happens please check the console.
    on adding folder items to this_folder after receiving added_items
              set FolderName to this_folder as string
              set ItemName to added_items as string
              repeat with theIncrementValue from 1 to 15
      delay 2
                        do shell script ("logger \"Folder: " & FolderName & "  -  Item: " & ItemName & "  -  Step: " & theIncrementValue & "\"")
              end repeat
              do shell script ("logger \"Folder: " & FolderName & "  -  Item: " & ItemName & "  -  Done...\"")
    end adding folder items to
    Thanks for any feedback.

    That is pretty much the way Folder Actions work, especially since AppleScript is not multi-threaded.  If you are using them as some intermediate step in a workflow, you might rethink the way you are handling the files (for example, use a droplet instead).  Other options would be using launchd to watch a path or a shell script on a different thread.

  • Combining Conditional Actions in Advanced Actions

    I have created a Jeopardy game in Captivate.  There are 16 questions.  I have set an Advanced Action so that
    when all 16 questions are clicked on the user will go to "final Jeopardy".  What I can't figure out is to add that after 5 questions are clicked on for the user to go a different slide before they go back to the gameboard.  Can you add two conditional statements in one advanced action?

    Hello,
    You can combine as much decisions as you want in an Advanced Conditional action. Although the default number is 3, you can add as many as you want. Perhaps this video tutorial could help you:
    Customized feedback
    In my blog you can find quite a lot of examples of condtional actions with multiple decisions as well:
    lilybiri's posterous
    Lilybiri

  • Error on multiple condition

    Hello all
    I'm having trouble with a multiple condition. I have 4 possible outputs, but in one of them the workflow is terminated, and there is no any instruction set to do this. Any ideas on what is going on?.
    Regards IA

    Please analyse the Workflow Log and also the Workflow design from PFTC_DIS.
    Following reason can result into this
    1)Use of Process Control step which is not displayed in |Wflow log
    2) Use of wait for event step in a fork as well as triggering of the event
    3) Triggering event that is a terminating event of the task placed in 1 branch of the condition step.
    Thanks
    Arghadip

  • Multiple condition does not work

    Hi,
    I took a copy of the standard Leave request workflow (WS12300111) to a new workflow (WS90000002).
    The class that was used in this workflow (CL_PT_REQ_WF_ATTRIBS) was also replaced with a copy (ZHR_CL_PT_REQ_WF_ATTRIBS).
    The workflow is used for the approval of leave requests.
    Now in the workflow there is a multiple condition which verifies whether the request was approved, rejected or withdrawn (this was also there in the standard).
    The condition contains the rules:
    Approved    &REQ.STATUS& = POSTED or &REQ.STATUS& = APPROVED or &REQ.STATUS& = ERROR
    Withdrawn  &REQ.STATUS& = WITHDRAWN
    Other values Rejected
    --> REQ is an object of the class mentioned above. The rules were created in the normal way by clicking on the object in the container.
    The workflow always stops at this condition, because it can not define the value of REQ.
    If I check the container in the workflow report, the field REQ and its STATUS are correctly filled.
    What could be wrong here?
    Thanks,
    Wim

    Hi,
    I solved it...
    Just had to add a commit work to the task that is executing the status change of the request.
    Kr,
    Wim

  • Conditional actions and variables

    Hi everyone,
    I have a slide (below) that has 3 buttons. The aim is that when each button is pressed a text box appears next to each button with additional dialogue. When the user has clicked on all 3 of the buttons, only then will the back and next button pop up, allowing the user to move on. For this example, I am only going to test it with 1 button.
    I
    The variable I have created for this slide is set with a value of 0.I have set up a conditional action ' on enter slide' , where if the variable is equal to 1, the two shapes appear. On the button which you press to make the dialogue box appear, I have set up an advanced action which assigns the variable a value of 1, and shows the dialogue box. This is triggered by clicking on the button.
    Despite this, the back and next button do not show when I click that first button. Does anybody know why that is?

    I have multiple examples of this scenario on my blog, but OK, here we go another time. The On Enter action is only executed when the slide is ENTERED again. Each action has to be triggered by an event.
    Events and (advanced) Actions - Captivate blog
    What David is asking is not a description of the action but the actual Preview of the action.
    To me it is also not very clear, which button is doing what. Please a screenshot of the timeline as well.

  • If Statement Multiple Conditions

    Using LiveCycle, FormCalc or JavaScript.
    I am trying to create an if statement with multiple conditions.
    a Sum field calculates a series of numeric input fields. I want the result in the Sum field to determine the expression in a final field. 
    If the Sum is <30MM then "50000" also if the Sum is >30MM but <60MM then "125000" also if the Sum is >60MM but <100MM then "250000" also if the Sum is >100MM but <300MM then "375000" also if the Sum is >300MM then "500000"
    I have only been able to figure out a single if then for the first condition but not able to include the whole set of conditions and the multiple results.
    Help would be much Appreciated!
    Thank you in advance.

    Tried a few variations of this and still seem not
    to be able to find a solution to this issue. I'm surprised my google searches are bringing up better examples because there seems to be an example of everything else.
    Any more detailed advive?

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • Multiple conditions for the same button.

    Is there any way you can have multiple condition (same type of the condition).
    I have button that I would like to hide it at different stages.
    For example I would like to have a button (Submit) which will be visible when
    Status = Draft
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_STATUS
    Draft
    and when also when userRole = author
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_USER_ROLE
    Author
    Robert

    Hi,
    It would depend on when the fields get their values into the session. They may be below the button on the page but if they have a value in the session then the button's condition will see this.
    If, however, you have only used a Default Value setting for the item, the value may not be in the session (even though it may be displayed on the page), so the button will not know about this value. In these cases, I set the default value using a page computation for that item that runs "On Load Before Header" and is conditional on the item being null. That puts the value into the session for other items to use if required.
    Andy

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

Maybe you are looking for

  • Final Cut Pro X crash on launch

    Need SERIOUS HELP! Running Lion on a new iMac (fully updated) and have been working on a project in Final Cut Pro X (also latest version) and it WILL NOT launch now - it crashes after "Restore Window" layout dialogue box. I have chosen DO NOT RESTORE

  • Problem with loading images dynamically in a pdf document

    dear,      I am using live cycle designer and i need to load image from a url dynamically in to the document.For this case i placed an imagefield on my document and i wrote javascript to load image in the form:ready event. My script for that was imag

  • Blank slides in slideshow

    I am using photoshop elements 5 to make a slide show.  After previewing it there were many RANDOM slides where the picture was no longer there, just a COMPLETELY BLACK SLIDE.  How do I recover these? I spent a lot of time doing this and someone needs

  • How to make "all day" the default in calendar ?

    Is there a way to make "all day" the default appointment time in calendar? Thanks

  • Mail for Exchange "System error", "error status re...

    If you are getting a "System error" and admin_log in \MailForExchange directory shows: "error status received from server (12)" The problem will be seen if you try a manual or interval (every 1 hour, etc) sync *after* you change the folders under 'In