Handling decision step when no agents found

Hi Experts,
I have copied the standard decision step and also made it as a General Task. As in few scenarios, the users can have multiple managers, I have used multiline container element in the agent assignment under 'Expression'. This all works fine if atleast one agent is found.
Though not normal, I need to handle scenario where no agent is found.
Currently my workflow is sending workitem to all users whenever no user is found which is not ideal.
I expected the workflow would stop saying no agents found, but curently the workflow doesnot stop at decision step.
Is there any possibility where we can hold the workflow at decision step when no agents is found.
Please help.
Note: we have cleanup reports run by administrator to complete all the workflows with no agents.
Thanks in advance,
Cay.

Hello,
"So I want to know if it is possible in any way to hold the workflow at decision step without skipping the decision step or erroring out the workflow"
There is nothing wrong with having it go into error status - that would alert the workflow admin that something has to be done, and it's easy to locate the workitem (with SWI2_DIAG). You can also easily set up the system to mail the workflow admin when this happens.
But anyway, if that's what you really want, you could change the task so that it's not a General Task and define the possible agents more restrictively so that it will just end up under the category "workitems without agents". You'll have to research how to do this, I almost always use General Task.
regards
Rick Bakker
hanabi technology

Similar Messages

  • How to route the workitem to Agent, when no agent found

    1.when agent is not found, i was able to see the workitem in swi2_freq.
       If this is case, how do i send workitem to an agent?
    2. As this is a general task, but i didn't see this workitem in all user's inbox. is it true that if agent not found for a workitem,will be sent to all agents?
    3. I set my userid as workflow administrator, but still am not able to forward workitems to any user in sap.(lack of authorizations). What kind of authorizations required to forward a workitem.
    Any inputs on this...

    1. Either you can set default agents for the task (or) modify the container elements in transaction SWIA (or) complete it manually without agent.
    2. Its true that, for a task specified as general task, all users become possible agents. Remember that they dont become responsible agents. SAP agent assignment always take the intersection of possible and responsible agents. If you donts specify responsible agents, you cannot see workitem in anyone's inbox.
    3. As told earlier, if you dont have authorization, check for the auth object in SU53 and get that added to your profile. Anyways, you can also check for the SAP provided standard authorizations for the workflow users in sap.com
    regards,
    Sandeep Josyula
    *Mark if helpful

  • Decision Step In Work flow

    Hi Workflower's
    Thanks a lot for all your reply!
    I'm having one problem in Decision step when work item is generated and placed under SAP inbox while user select particular work item then decision option "Choose one of the following alternatives" Approve / Reject / Cancel need to be displayed under the same screen in down side but it's going to next screen and showing the Approve / Reject / Cancel.
    I should display these decision in the SBWP screen at downside instead of going through double clik and showing that
    Whether it's possible if please provide me details how to solve.

    Hi,
    Do you mean you want to show in the Reading pane of SBWP rather than double clicking the workitem in SBWP.
    Its not a mail... it will be a work item so you have to execute the work item.. and its a must. thats a difference between work item and a text mail
    Hope this would help you.
    Good luck
    Narin

  • User Decision step- Upon reject, auto-popup text for reason

    In a user decision step, when the user clicks the reject button, open text for rejection reason within the workitem.
    i have done the following
    1) Create a new step
    2) Create a task based on SOFM.CREATE
    3) Binded  WIOBJECT_ID => (append table) ADHOCOBJECTS
    It works fine, when the user clicks the reject button a new work item with the reason for rejection lands in the user inbox, which when clicked brings up the doc.
    I want to make it seamless for the user where as soon as the reject button is clicked, the document <b>should open right away</b> without a new work item in the inbox
    Any help will be greatly appreciated

    Hi
    If you are using the portal/UWL then search the blogs for a solution otherwise give this a try, in your step definition for the 2 steps, go to the Details tab and tick 'Advance with dialog', this will work if you execute from the business workplace.
    Good Luck!
    Ravi

  • URL in user decision step

    Dear Experts,
    I am using ecc4.7 version system. I have a user decision step. I want to display an url in objects and attachments section of user decision step. Ofcourse I found many similar threads from SDN. But they are not helping me with the solution. Please tell me how to achieve the same.
    KR,
    Bharath
    Edited by: bharath padmanabhan on Dec 21, 2009 9:08 PM

    Hi Bharath,
    Have you displayed the URL in Attachmnt & Object of UD step?. If not try this,
    If we need to display something, say URL in Attachmnet & object of UD step, we need to have a BO (instantiated) and the default method of the BO (mentioned in Basic data of SWO1) will be executed, if we click the URL in Attachment & Object.
    I am not sure, whether you have any ZBO or not, if not create a ZBO and create a key field, this key field needs to hold the URL link. Then create a method, inside the method, call the FM- "CALL_BROWSER" by passing the Exporting para of FM (URL) as object-key-<key field>. Also in the basic data tab of the SWO1, give this Zmethod name in default section tab.
    Now copy the std task of UD step and create a task container as same type of ZBO and create a WKF container as same as ZBO and instantiate this ZBO. And do the binding in the UD step,
    <WKF container of ZBO> -> <Task container of ZBO>
    Make sure before this binding, the WKF container of ZBO needs to be instantiated with the corresponding URL as key field. Now execute the WKF, you will find the Link in Attachmnet & Object and after clicking the link, it will direct to you the corresponding place. Let me know for any issues.
    Regards,
    Vinoth

  • "You can also" link in UWL work item when using user decision step in workflow

    Hi,
    Just want to check if anybody has tried adding links to this section in the UWL when using user decision step? I need to pass some custom links which will be calling some webdynpro applications and backend transactions. I have read somewhere that Ineed to modify the XML file but don' t know how the next steps once I have defined (i.e. how to handle those links).
    Thanks in advance.
    Rammel

    Hi Rammel
    I hope you are keeping well and many thanks for using the SAP Discussion Forums .
    Based upon your scenario you mentioned that:
    You want to add links to the "You Can Also" section in the UWL with user decision steps
    In an effort to pass custom links (calling web dynpro) applications.
    You wish to know how to modify the XML
    Ok now based upon the scenario there are two key points regarding XML files and efforts to change them.
    Remember that XML in terms of the UWL follow the notion of precedence. Now that means that once you make a change to an XML file you need to re-upload it to realize changes. To re-upload an XML file and realized changes you need to do so with a "High" or "Very High" priority and also ensure that the UWL Cache has been cleared of the UWL Service restarted so changes can be realized.
    The second key point is to ensure that you backup all current XML files before making any changes so you can easily revert those changes if required.
    Now reverting back to your query, the XML files and the "You Can Also" section. Kindly see the documentation outlined below as here you are going to make changes to the I-View configuration:
    Configuring the UWL
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45?overridelayout=t…
    UWL Content Configuration
    UWL Content Configuration - Configuring the Universal Worklist - SAP Library
    Kindly update me as per your findings.
    Kind Regards & All The Best
    Troy - Enterprise Portal Support Engineer

  • Error Handling in workitem---user decision step

    HI Experts,
    I have created work item through user decision step. In that decision i have given Approve & Reject Option
    now when user click on Approve that i need to do some validation based on this i need to give error also at same time i dont want to complete that workflow...i want that after getting error user must recity that error and than come back again to inbox and execute that workitem... I tried it but i am not able to do this...can anybody pls provide the hint for this requirement.
    Thanks & Regards,
    Taran

    Hi Pavan,
    I am confused i your third point.
    . In the Approved branch of the Decision step check for the condition , if it fails then raise the exception.that you have define in the Point 1. in the exception branch insert the logic so that the condition becomes true, after that step insert one more decision step.
    how i 'll raise the raise the exception do i need to create and task or any other step.
    also can you please explain below point in detail.
    in the exception branch insert the logic so that the condition becomes true, after that step insert one more decision step.
    also i am working into SAP CRM 2007 web UI environment.
    Please advice.
    Thanks,
    Taran

  • User decision step agent issue

    Hi All
    In my WF I get a user profile back from a method that check a ZTABLE for the correct user to receive mail and a user decision work item .
    The mail step is working correctly and sending mail to the user (as per the parameter returned from the method)
    The problem is that user decision step does not sent a workitem to the correct user .
    Any ideas on what the problem might be ?
    In the email step I bind to &ADDRESSSTRINGS&.Not sure what the correct binding is for the user decision step?
    Many thks
    Gerhard

    Click workflow  log (use any of the log transactions, swi1, swi2_freq swi6 etc)
    click list with technical details, shift+F9
    find the step, click on it and tick the tab container.
    But if you could just answer my previous question about how you are sending the mail, because if you directly use email address then it is of course impossible to use that as agent assignment for the user decision.
    A user decision is ultimately sent to a user id
    Kind regards, Rob Dielemans

  • Forward the mail to more than one agents in User Decision Step

    Hi All,
    I am referring blog
    http://wiki.sdn.sap.com/wiki/display/XI/User%20Decision%20step%20in%20SAP%20PI%207.1%20-%20Part%20I
    But my requirement is to forward the mail to group i.e. more than one agents in User Decision Step
    How to do this.
    Regards

    Hi,
    Even my requirement is similar one.
    I have to forward the mail to SAP Inbox of a group of user.
    Anyone of the Purchase team can process the message .
    Please suggest how to make our user decision step so that it is forwarded to multiple users for processing.
    Regards
    Henery

  • How to handle runtime error in PreUUT step when running in Parallel mode

    I would like to run Test UUTS in parallel mode, and some actions are done in PreUUT such like read serial number and fixture control.
    The process model won't goto PostUUT Step when runtime error occurs in PreUUT step, so i would like to add some actions to check if sequence error in cleanup and go back to setup in PreUUT step, but i find it skip all the actions in setup and main step?
    What should i do if i want to go back to run PreUUT again as the first time to run when runtime error occurs?
    Or, is there any good way to handle this kind of error withour restart program?
    Solved!
    Go to Solution.

    This question does not depend on PreUUT or ParallelModel at all.
    First of all:
    A Runtime Error is a situation where TestStand encounters a problem which makes further testing either impossible or senseless. So a Runtime Error always indicates a situation where proceeding the test sequence is not recommended.
    Nevertheless, there are situation where you want to handle those errors without stopping the execution. A "traditional example" for this is initialising serial/GPIB devices. If the device does not reply, there might be different issues the operator can easily resolve and (if corrected) the sequence can proceed properly. The operators action could be:
    - Check if device is switched on
    - Check connection between PC and device
    So the error state is used to inform the operator about the malfunctioning device and regarding of the actions the operator takes, the execution will either proceed or terminate.
    When TestStand encounters a Runtime Error, it initially reacts with displaying a dialog. This behavior can be modified in the Station Options >> Preferences >> On Runtime Error.
    Furthermore, you can install callback sequences which are called if an error occurs. Those would be either SequenceFilePostStepRuntimeError or ProcessModelPostStepRuntimeError (depending on the fact if you are changing the process model or simply working with client sequence file callback overrides). These are "normal" sequences you can use in order to get system information, loop on the step or....essentially do whatever you want. If you want to proceed though, you must not forget to reset the error flag.
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • No agent found

    Dear all,
    I ve created a WF with user decision where as i used rule 168 .Wf starts fine and the problem is when it reaches this step it wont go the agent found by the role determination.
    I changed the agent part from into a user fro testing purpose or recieving the WI , but still its not goin to the agent.
    Can anyone plz suggest the reason.
    Also tell me what bidings to be done if i use the default rule and b/w which containers.

    While simulating the rule from PFAC_DIS are you getting any users. If yes please check whether the defined task in Wflow is General or Not. If it is not General make it General. How to make it you can search the forum.
    If thru simulation in PFAC_DIS you do not get result then you need to setup Line Manager.
    Thanks
    Arghadip

  • Decision step with method before workitem execution

    I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method.
    When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'.
    When i see the information of the error -
    "At least one submethod could not be processed.
    See the technical Workflow log to determine the error cause."
    When i check technical log of workitem, 2 steps are in error mode.
    1.  Dialog work item executed - Error when starting submethod
    2. EXECUTE_METHODS  - System error in asynchronous method start
    This is happening in Quality system, not in DEV system.
    Any inputs to resolve this.

    Hi,
    @Sivagami: I wonder, how a container element e.g. BUS2094 that was passed to a copy of the DECISION task is automatically executed just before the decision dialog? Good stuff, if it works like this, I'll try this at a later time.
    @Indira: Depending on the Release and such things I have expirienced several smaller bugs regarding the decision steps, especially when extending the data flow (from/to workitem), using the in-place-decision Workitem exit. So maybe you're already doing everything right, but just the inbox doesn't works as designed.
    To work around this problem, you could enter the object methods as a secondary method, which then will display the Sales document in a separate window,
    or you follow the proposal of Sivagami. If the Sales document doesn't seem to appear, you could enforce the display, by globally substitute the business object DECISION to one of your own, re-define the object's method Process that read the business object fromt the work item container and executes it's display method, which is basically the same result you'd like to have.
    Best wishes,
       Florin

  • Terminating Event with Decision Step

    Hi,
    In our purchase requisition approval workflow, I need to have a decision step in which to prompt approver to either approve the req. or reject the requisition.  In this decision step, I need for it to have terminating events for "SIGNIFICANTLYCHANGED", "RELEASE", "REJECT" and "RESET".
    First, I copy the generic decision task 8267 to my my own custom decision task.  Then I added a BUS2009 in the container, releasecode and other needed elements.  In this custom decision task, I was able to add these terminating events that has been defined in the BUS2009.  I was able to setup binding, except the one binding
    Terminating Event  ->   Task
    &_EVT_OBJECT&      ->   &_WI_OBJECT_ID&
    Since the &_EVT_OBJECT& for the terminating event is BUS2009.  And the custom decision task &_WI_OBJECT_ID& is DECISION business object. They're incompatable business object.  So I replaced that binding with
    Terminating Event     ->  Task
    &_EVT_OBJECT&    ->   &PURCHASE_REQ&
    After all the configuration has been setup.  I created a new purchase requisition.  Upon the RELEASESTEPCREATED event, it create a custom decision workitem in my agent's inbox.  When I triggered the "RELEASE" event, it is however not terminating my custom decision workitem.  The workitem still sits in the agent's inbox waiting to be execute.
    Is it possible to setup terminating events for decision step?  Any kind of suggestions or inputs would be greatly appreciated.
    Thank you.
    Jennifer Tran
    System Analyst

    I will suggest you to create a fork with 2 parallel branch and 1 necessary branch. Put the approval step in 1 branch and the wait for Release step event in another branch in this way you can suffice your requirment.
    Thanks
    Arghadip

  • How can i include  'Objects and Attachments' in the Decision Step ?

    i found some relevant threads for this particular topic but not able to solve my problem , so i thought of openeing new thread.
    My requirement is to fill the 'Objects and Attachments ' in Decision step with a  display method of purchase order number.
    From SAP Inbox , when i click on Objects and Attachments , it should navigate to Display method of my BOR object with the Purchase order number.

    Hi Sanju , i did exact the same way  ,
    &_EVT_OBJECT& --> &BUS2012&  ( This is done at the start of workflow )
    Now go to you task of the user decesion and make the following binding....
    &BUS2012& --->&_ATTACH_OBJECTS&  in the biding step between decession task and workflow container.
    I am getting this error message paul,
    The Object Types '[BO.ZIPARI]'  (source) and  '[BO.SOFM]' (target) are not compatible.
    i am trying to create a method in BOR and passing back the attachment back to task container but not succeeded yet .
    My requirement is , from SAP inbox before taking decision , approver wants to review for that i need to link the PO number clickble at 'Objects and Attachments'.

  • Need Help on User decision step in BPM

    Hi All,
    I have a requirement to design the user to to system interaction in a partiular scenario.  I am trying to use the User decision step in BPM available in PI 7.1 server. I have used the User decision step and filled all the parametes as given in the sap documentation. When I am trying to execute the scenario, The outbound process is succesful but stops at the BPM workflow at the User decision step with the message (No Agent ready) .
    Can anybody help me in solving this issue.
    Thanks in advance,
    Kalpana

    Hi Shabarish and Swarup,
    I have defined the relevant user in  the Integration directory , also made sure that the user entered is defined on the integration server and there are not restrictions on the defined user. The workflow log is as follows:
    Workflow              File2File_BPM1
    Workflow instance     File2File_BPM1 http://File2File_BPMdemo
    Instance number       000000001046
    Start date            30.12.2008     Started by            WF-BATCH
    Start time            11:33:36       Current status        In Process
    View: Workflow chronicle
    Error       St Task                                          Result                                   Date       Time     Processing time
    Error Agent                     Executed Action                          Date       Time     Object               Object Name                    Object 2             Object name 2                  User Context
    File2File_BPM1 http://File2File_BPMdemo       Workflow started                         30.12.2008 11:33:36               -1s
    WF-BATCH                  Start message received                   30.12.2008 11:33:36 MIAB_BPM_OB2 / http: C532A7AB4D284B9011C0B0C7F8AFB                                                      WF-BATCH
    WF-BATCH                  Workflow started                         30.12.2008 11:33:36                                                                                WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:36 MIAB_BPM_OB2 / http: 597B946347C148AD03988B5D8BE2C                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:37 MIAB_BPM_OB1 / http: 6E0E09EE977E4F333D02DDDAE9A52                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB2 / http: 9F5491FD9BC642E50486A6FED89DA                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB1 / http: 1AE5BB06D72341AD01F8C45E6AA7E                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:58 MIAB_BPM_OB2 / http: CD698CDE5606436811BAB330011AF                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:59 MIAB_BPM_OB1 / http: 2D82C00C16E0447F1DF3B133470AD                                                      WF-BATCH
    'Good'{TYPE=SWFXST_STRING}'BAD'{TYPE=SWFXST                                           30.12.2008 11:33:37                0s         1046
    WF-BATCH                  Dialog work item created                 30.12.2008 11:33:37                                                                                WF-BATCH
    WF-BATCH                    EVALUATE_AGENT_VIA_EXPESSION           30.12.2008 11:33:37                                                                                WF-BATCH
    I hope this can help you in identifying the error.
    Thank you,
    Kalpana

Maybe you are looking for

  • Xcode: Can I create a flag visible to code on a per-configuration basis?

    Hi all, I want to be able to create or change some flag in a build configuration, so I can do something like this in my code: #ifdef (configuration flag) // add some code #endif The idea is that I want to include some code in one configuration, but s

  • Problem with scrolling pictures in thumbnail view!!!

    In thumbnail view, when I scroll over the key picture, other pictures come up that are pictures NOT from that event, but others.  Anyone know why that is and how I fix it so that the correct pictures scroll?  For example, if I have 3 events, when i s

  • How to print activities together with bar chart

    Hi, Anyone can advise how to print out an activities together with bar chart. When you try to print, an insufficient bar chart come out. Why? Thank you

  • List of available webservices that we use in XI

    Hi, I have been asked to provide the list of available webservces that we can use in SAP XI. Can some body give me the list of sap related webservices ? Appreciate your help . Thanks Suds

  • Posting assets to some depreciation areas

    Hello SAP Gurus, I have a Chart of depreciation with : 01 Corporative area (principal ledger) 02 Local area (local ledger) 03 Revaluation of local area 07 Fiscal area 08 Revaluation of fiscal area Question is, how can I post to local or fiscal area w