Rule with SELFITEM-SENDTASKDESCRITION task's workitem goes error

Dear all,
           I have created a workflow with an activity step that uses business object SELFITEM and method SENDTASKDESCRIPTION  with rule AC00000168.
          On executing the WF, the workitem successfully goes to right agent.
          But, when the agent executes the workitem, it goes to error state.
          In the workflow log, I get the error message as "Exception occurred Error handling for work item 000000968991 eeom division 09.07.2010 - 11:28:52 " with exception 0,error type 1 and message 0.
          Following is binding details between workflow and task container.
&MANAGER&      ->     &ADDRESSSTRINGS&
&_ATTACH_OBJECTS&      ->     &ATTACHMENTS&
&ATTENDANCEINSTANCE&     ->   &ATTENDANCE&
&EXPRESS&     ->     &EXPRESS&
&LANGUAGE& ->     &LANGUAGE&
&LINEWIDTH&     ->     &LINEWIDTH&
&TYPEID&     ->     &TYPEID&
&SELFITEM&     ->     &_WI_OBJECT_ID&
        In the above binding parameter,MANAGER. is a workflow container of ABAP data dictionary type WFSYST-AGENT where the rule's agent is collected.
Please suggest why the work item at agent inbox on execution goes error for which I will be grateful.
Thanks and regards,
S.Suresh

Hello Rick !
        Thank you so much for your fruitful solution.
        Also, I am deeply sorry for delayed reply.
       I used the function module 'SWX_GET_MANAGER' in the custom method  as you suggested.
BEGIN_METHOD FINDMANAGER CHANGING CONTAINER.
DATA:
      EXTENDEDOBJECTID TYPE OBJEC-REALO,
      addresstype like soxna-type,
      RECIPIENTADDRESS TYPE SOXNA-FULLNAME.
DATA:
      ac_container like swcont occurs 0 with
      addressstrings like soxna-fullname occu
  SWC_GET_ELEMENT CONTAINER 'ExtendedObjectID
addresstype = 'G'.
ac_container-element = 'OBJID'.
ac_container-tab_index = '000001'.
ac_container-elemlength = '008'.
ac_container-type = 'N'.
ac_container-value = EXTENDEDOBJECTID.
append ac_container.
ac_container-element = 'OTYPE'.
ac_container-tab_index = '000001'.
ac_container-elemlength = '002'.
ac_container-type = 'C'.
ac_container-value = 'P '.
append ac_container.
  CALL FUNCTION 'SWX_GET_MANAGER'
    TABLES
      ACTOR_TAB = addressstrings
      AC_CONTAINER = ac_container
    EXCEPTIONS
      NOBODY_FOUND = 01
      OTHERS = 02.
  CASE SY-SUBRC.
   WHEN 0.            " OK
   WHEN 01.    " to be implemented
    WHEN OTHERS.       " to be implemented
  ENDCASE.
  loop at addressstrings.
  if addressstrings(2) = 'P '.
  delete addressstrings.
  endif.
  endloop.
move addressstrings to recipientaddress.
  SWC_SET_ELEMENT CONTAINER 'RecipientAddress' RECIPIENTADDRESS.
END_METHOD.
Therafter, the values accumulated at RECIPIENTADDRESS is passed to the workflow container(SOXNA-FULLNAME) of SENDMAIL step.
Also, I thank every one who contributed fruitful suggestions to solve my problem.
Thanks and regards,
S.Suresh

Similar Messages

  • Having big problems with my new Mac Pro, when I launch Photoshop CC, I get an error message, can carry on but after a few tasks it starts going gar... menus go blank, when you try to save it shows a blank box.... can anybody help?

    Having big problems with my new Mac Pro, when I launch Photoshop CC, I get an error message, can carry on but after a few tasks it starts going gar... menus go blank, when you try to save it shows a blank box.... can anybody help?

    when I launch Photoshop CC, I get an error message
    and what exactly is the text of that error message?

  • GP task is not going to UWL  when defining the substitution rule

    Hi experts,
    I have defined substitution rule for user in UWL,  all task is going to assigned user's UWL
    but  GP task is not going .
    How to solve this ??
    Regards,
    Piyush

    Add a dummy execute sql task as first step inside loop and add a breakpoint to that for OnPreExecute event and check value of variable during each iteration to see if it gets value of each child package witin folder correctly.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • Result of agent resolution does not agree with agents of task

    Hello Experts,
       I am trying to configure a workflow for Employee Travel expense, the Business object am using is BUS2089 for event CREATED.
      And am configuring workflow task WS20000040 (Approve trip). and in the work flow builder I am assigning User as an Agent and fixing it to a user say "USER1" for Task 404 (Check trip facts) and for Task 416 (Approve trip facts) again am assigning User as an Agent and fixing it to user say "USER2"
    Now when the Trip is saved using PR05, this work flow is triggerred - which is what i want and it sends work item to USER1,  now when USER1 says Trip facts are consistent the work item should go to USER2 but here it is failing and the log says "Agent determination for step 0000000416 failed" and details say "Result of agent resolution does not agree with agents of task" which is  SWF_RUN 544
    Can you guys help me by telling where am going wrong.  Am i missing some configuration somewhere.
    I have changed the Task properties - Attributes i have changed the task as a General Task,(i did it by navigating through Control Tab of the task)
    appreciate your response.. Thanks
    Usman

    Thanks Novjot
        I made the task as a general task and i see a gree light adjacent to it, but still it doesn't work.
    the way i made it as a general task is as follows:
    1. in the navigation area - select task 416
    2. In the right hand side, on Control Tab in Task properties, click on the Red button and maintain Agent assignment
    3. In Agent Assignment change attributes to General Task - instead of General Forwarding allowed.
    save and activate, and generate runtime version
    Is this correct or any other way?
    Thanks
    Usman

  • Agent resolution does not agree with agents of task

    Hi Guys,
    I extended B.O-IDOCAPPL to ZIDOCAPPL to catch the inbound error for the IDOC.
    The workflow gets triggered correctly when we get the inbound error.
    In the workflow i created a custom display method....this is a dialog method. Now when the workflow comes to this point it gives the message in the technical log
    <i>" Result of agent resolution does not agree with agents of task"    </i>  
    <b>Now instead of calling this method if i just put a user decision it shows up fine in the users inbox.</b>
    I have tried SWU_OBUF , Refresh from SWUS , Refresh from Inbox
    Nothing seems to work, anyidea as to what's happening here ?
    Message was edited by:
            Abhishek Dhoundiyal

    I have tried :
    1.) hardcoding user ID
    2.) using a role
    3.) using WF initiator...
    This is set up as a general task......
    One interesting observation that i had... (If the below is irrelevant please ignore)
    If i run the task via SWUS it executes but still does not evaluate the agents.. and then if i execute the workitem in SWIA it lets me execute...
    Now if i trigger the workflow it executes but still does not evaluate the agents but it does not allow me to execute the workitem in SWIA , the technical log says workitem not found.

  • Examples for good programming practice with multiple DAQmx tasks

    I'm writing a program to continuously log data from 8 counters, 8 encoders, and 8 voltages. The proof of concept VI with a single counter was simple and elegant, but scaling up to all signals resulted in a wiring mess. I've been working through the Labview Core courses, and am currently on Core 3. I still haven't come across a discussion on how to work with multiple DAQmx tasks without making a mess of the block diagram. Can anyone point me in the right direction?
    Also, say I have a state machine that has a configure, idle, and logging states. I need to set the initial values of the encoders during configuration, and keep up with their changes while in the idle state so I have appropriate starting values when entering the logging state. Can anyone point to an example that shows how this might be accomplished?
    Thanks

    I'm very familiar with AE's/Functional Globals - but I have struggled in the past with handling multiple DAQmx tasks - particularly when you're using multiple devices and using different types of measurements which require seperate tasks/handling (e.g. such as thermocouples which require extra compensation).
    I'm not even sure I know whare the requirements are for needing multiple tasks - I know you can need multiple tasks for a single device if the type of measurement is different but can you share an Analogue Input task amongst multiple devices?
    I think in hindsight (and without too much thought now) it looks like a good case for Object Oriented LabVIEW - with a base DAQmx class (initialise, configure, start, acquire, stop, close etc.) and then child classes for each type of measurement (with one task associated with each - and private data unique to that specific class). You then hold an array of objects (one for each task) and iterate through each one with dynamic despatch to get the data.
    I don't know your particular experience level of using LabVIEW (and as such, OO may not be appropriate) - but as a wider discussion of 'best practice' it seems like an appropriate method I would use going forward.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • User-defined rules with SPIN (SPARQL CONSTRUCT)

    Hi,
    We are looking at SPIN as an alternative to define and execute user-defined rules. It is very expressive and in that point looks superior over Jena, SWRL and Oracle type of user-defined rules with IF (filter) -> THEN type of syntax. Although, SPIN is TopQuadrant's, it is entirely SPARQL, and Oracle supports SPARQL CONSTRUCT via Jena Adapter. TopBraid Composer provides and excellent tool support and rule editor for SPIN rules as well.
    There is no problem to execute SPIN rules via Jena Adapter, and I believe even via TopQuadrant's SIN API, which is TopQuadrants's SPARQL based infrence engine's API.
    My question is about whether Oracle has looked into supporting SPARQL CONSTUCT based user-defined rules in its native inference engine?
    Do you have a recommendation for how to use SPIN based user rules in combination with Oracle inference today?
    Thanks
    Jürgen

    Hi Jürgen,
    We are actually looking into a general mechanism that allows users to plug in their own queries/logic during inference. Thanks very much for bringing SPIN up. This general mechanism is very likely going to cover CONSTRUCT queries.
    To extend the existing inference engine using the existing Jena Adapter release, one possible way is as follows.
    1) Assume you have an ontology (model) A.
    2) Create an empty model B.
    3) run performInference on both A and B using OWLPrime.
    4) run SPARQL CONSTRUCT queries against A, B and inferred data
    5) store the query results (in the form of Jena models) back into model B.
    6) If the size of model B does not change, then stop. Otherwise, repeat 3)
    Note that model B is created to separate your original asserted data from inferred data.
    If you don't need such a separation, then don't create it.
    Thanks,
    Zhe Wu

  • Upgrade Business rules with Calc Manager

    Hello Gurus,
    Recently performed an upgrade from 11.1.1.3 to 11.1.2.2 by replicating the Database to a new database machine.
    I had Business rules in 11.1.1.3 and did not perform any steps to migrate the rules to Calculation manager in 11.1.2.2
    The doubt I have is,
    1. Are the business rules automatically upgraded when performing upgrade by EPM system configurator (since the database is replicated)
    2. If so, how do I see the business rules in 11.1.2.2 environment? How can I use migrate feature option.
    Thanks
    HyperionEPM.

    From 11.1.2.2 documentation:
    Upgrade Wizard
    If your application used Oracle Hyperion Business Rules, the Upgrade Wizard automatically converts Business Rules business rules to Oracle Hyperion Calculation Manager business rules. Release 11.1.2.2 supports onlyBusiness Rules business rules as the calculation module.
    Notes:
    •Classic application administration is now called Oracle Hyperion Planning application administration (versus Oracle Hyperion EPM Architect application administration).
    •The Upgrade Wizard automatically upgrades applications having Oracle Hyperion Business Rules business rules, converting them to Calculation Manager business rules. However, the Upgrade Wizard does not automatically convert Release 11.1.2.1 applications having Oracle Hyperion Calculation Manager business rules. For those upgrade instructions, see the Oracle Enterprise Performance Management System Installation and Configuration Guide.
    Business Rules Maintenance Release and Upgrade Installation PrerequisitesIf you are using Business Rules, you must migrate to Calculation Manager rules in Release 11.1.2.2. Before migrating business rules, you must perform prerequisite tasks. Note that these tasks are required if you are applying the maintenance release or if you are upgrading.
    To prepare to migrate Business Rules, perform the following tasks in your current Business Rules environment before installing Release 11.1.2.2:
    1.in Business Rules, within the Rule Editor, remove the associated outline (that is, the design time location) from each business rule. After you do this, the Associated Outline drop-down list should display the text, Select Outline.
    2.On the Locations tab of the Rule Editor, ensure that each business rule has a valid launch location, which must be an absolute location. Although “All Locations” is valid in Business Rules, when you migrate business rules, you must provide the details of a specific launch location (that is, the application type---Planning or Essbase, the server name, the application name, and the database or plan type). If you want a business rule to be valid for multiple launch locations, you must provide the details for each location. The locations must be in different applications; you cannot migrate the same business rule to different plan types in the same application within Calculation Manager.
    If the rule is a part of a sequence, then the launch location of the rule within the sequence must be one of the launch locations listed in the Locations tab of the rule.
    3.On the Access Privileges tab of the Rule Editor, ensure that each business rule has security defined for a specific location or locations and not “All Locations.” If multiple locations are defined for a business rule on its Locations tab, you must add security for each location individually.
    4.Do not modify rules in Calculation Manager until migration is completed.
    5.If you are using Business Rules with Planning, as a precaution, create a backup of the rules: Use Administration Services to export the rules to XML in Business Rules format. If you are upgrading from 11.1.1.3 or 11.1.1.4, also export the rules to Calculation Manager format. EPM System Configurator exports the rules during database configuration for use during application upgrade.
    6.If you are an Essbase-only Business Rules user, you must export business rules. To export the Essbase rule from Business Rules:
    a.From Administration Services Console, right-click the Business Rules node and select Export.
    b.Export the rules in Business Rules format and then select all of the Essbase rules in the repository. If you are upgrading from 11.1.1.3 or 11.1.1.4, also export the rules to Calculation Manager format.
    c.Specify the location to save the XML file, and then click OK. If you are upgrading, the location should be a shared drive that is accessible from the upgraded environment.
    Make a note of the location. You import the file later in the process.
    Migrating Business Rules to Calculation Manager for use with Planning
    If you applied the maintenance release to move from Planning Release 11.1.2.0 or 11.1.2.1 to Release 11.1.2.2, and you were using Business Rules rules, you must migrate the rules to Calculation Manager rules.
    Before you migrate, ensure that user directories and native users with the same SID are available when you upgrade Shared Services.
    Ensure that the Planning applications are upgraded to the current release and are available in Calculation Manager under SYSTEM View.
    To migrate Business Rules rules to Calculation Manager rules:
    1.In Calculation Manager, select the migrated Planning application, and then select Migrate.
    The data that was exported during database configuration with EPM System Configurator is imported to Calculation Manager.
    2.Repeat for each Planning application.
    3.Deploy the rules from Calculation Manager to Planning. See the Oracle Hyperion Calculation Manager Designer's Guide.
    After migrating business rules and rules security, if any of the rules had multiple launch locations and you migrated to more than one location, Calculation Manager creates a rule for the first migration, and shortcuts for all subsequent migrations. If the rule had rule-level variables, for the shortcuts that are created in the application in the new environment , its variables are moved to the Plan level. In this scenario, test rules in your environment to ensure that they work as expected.
    If you still have problems, raise an SR and we can get on a call to figure out why the rules are not coming over.
    -Sree

  • Rule with applescript does not run

    I made this script to get rid of special spam messages that the usual filter would detect, it's very effective, the only problem is that Mail does launch it from the rule I set up ...
    Weird ! Any idea welcome ...
    Fred (from France)

    Sometime Applescript is a bit like magic - you need the right incantation. I have several scripts that are fired by Mail rules, and am posting below the skeleton I use. I store the scripts in ~/Library/Scripts/Applications/Mail. I don't know if this is a requirement, but it does have the advantage of being able to run them as well from the script menu. To run them from the script menu they need the on run handler; they may run without it via a rule, but having got them working with it I am reluctant to remove it.
    In the rule I put "stop evaluating rules" after the "run applescript" action.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">using terms from application "Mail"
    on perform mail action with messages theMsges --for rule TheRule
    tell application "Mail"
    repeat with ThisOne in theMsges
    --your stuff goes here ...
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    using terms from application "Mail"
    on run
    tell application "Mail" to set sel to selection
    tell me to perform mail action with messages (sel)
    end run
    end using terms from
    </pre>

  • Workitem going to WF-ADMIN

    hi,
    I am working on a support project. On many occasions workflow goes to WF-ADMIN. Functionally when i check evrything will be alright. Then i need to debug and find out the reason. Is there any way by which i can find out why the workflow is goin to WF-ADMIN other thn debugging the BADI Z_APPROVAL_SRM->GET REMAINING APPROVERS
    Regards,
    Raj

    Hi,
    the workitem goes to WF-ADMIN when there is no one assigned to perticular woritem.So 1st check graphical log to see where workitem is.Then go for rule resolution using container values of workflow log.If you find no agent then check the rule from where it's getting agent.Then see the whether that agent has been maintened or not.
    thanks
    snehasish

  • Link rule with workflow

    Hi everyone,
    I'm new to workflows and I'm testing the creation of rules. I created the fm to determine the right agent, I created the rule, but I'm having some problems linking the rule with my workflow. Can someone point me in the right direction ?
    thanks !!

    Hi Bjorn
    Open the step you want to assign the role to in the workflow builder (make sure it is a dialog or decision task).  In the Agents section choose 'Role (or Rule dep on Release level)' and put the number of your rule in the next field to the right (do not enter the 'AC' identifier).
    Hit enter and you will see the Binding button appear.  Use this to assign elements from your workflow container to your rule parameters.
    Regards
    Gareth

  • Removed working Firefox 7, Installed Firefox 10.0, Firefox will not load. When I click on icon, firefox.exe process shows briefly in task manager, then goes away....no errors, nothing

    Removed working Firefox 7, Installed Firefox 10.0, Firefox will not load. When I click on icon, firefox.exe process shows briefly in task manager, then goes away....no errors, nothing. Never see browser panel at all. Also tried to install Firefox 9.0, but the same result was observed.

    Rather difficult to say what the problem may be at present but for general info please have a look at
    * [[safe mode]]
    *[[firefox will not start]]
    *[[firefox hangs]]
    Note sometimes you may have to wait a while for firefox to shutdown completly, and if it has hung then as explained in the above articles you may need to kill any firefox.exe process that is still running (and maybe plugincontainer.exe)
    Try starting firefox in [[safe mode]] e.g. by holding down shift key
    * do not make any changes in the first window, just click on continue<br/> ? Do you get as far as seeing the options window for safe mode ?
    If firefox is crashing see [[firefox crashes]], this is easier to work through if you can get firefox to start without crashing on startup. Currently some firefox users are finding Firefox 10 crashes on startup, and a new version Firefox 10.0.1 is being released very soon to deal with this and another cause of hangs.
    Not saying any of this applies to your case but recent issues include
    * ask tool bar causing hangs if video is used none English versions [/forums/contributors/708073]
    * possibly some crashes do not start the crash reporter and other issues [/forums/contributors/708122?page=2#post-45059]
    * some general info about current crashes [/questions/917748#answer-308124]

  • Since updating to I.O.S7 on my ipad2 all i get when i turn it on is a loading screen with a picture of a charger going into an ITUNES sign? HELP nothing will work not interactive at all?

    all i get when i turn it on is a loading screen with a picture of a charger going into an ITUNES sign? HELP nothing will work not interactive at all.aince updating to I.O.S7.0.2???
    What should i do currently have it on charge for several hours not done a thing and have been locking and unlocking and resetting

    Please see: http://support.apple.com/kb/HT1808 for further info.  It sounds like you are already in Recovery mode so if the image in Step 4 is the one you see, skip to Step 5.
    Regards,
    Steve

  • I HAVE COMPLETED SEVERAL IMOVIES AND FINALIZED JUST FINE.  NOW I GET THE FOLLOWING MESSAGE FROM MY LATEST PROJECT.  "The project could not be prepared for publishing because an error occurred.  (File already open with write permission)"!  What is going on

    I HAVE COMPLETED SEVERAL IMOVIES AND FINALIZED JUST FINE.  NOW I GET THE FOLLOWING MESSAGE FROM MY LATEST PROJECT.  "The project could not be prepared for publishing because an error occurred.  (File already open with write permission)"!  What is going on?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    Easiest way to find out if this is the problem is by:
    • Create a new User-Account
    • Log out of Your old one and into this
    • Re-try iMovie
    If it now works OK - then 99.9% the problem is iMovie pref. file that needs to be trashed.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occurs only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

Maybe you are looking for

  • Adding user-defined data

    Okay I am having problems, obviously. I am developing a program where the user will enter X and Y values and the program will calculate the relational data. However, I can't even get a start. First of all, the user defines the number of pairs of poin

  • Hyperlink events in iCal?

    Can you hyperlink events in iCal? I've been unable to do so and can find no references for it. John Kendrick

  • I've Just migrated my mac to a new iMac and CS5 is dead

    I've Just migrated my mac to a new iMac and CS5 is dead, I can't uninstall it or do anything with it. When I try to load an application it just crashes (I'm guessing because it needs registering on my new machine) and I can't uninstall it. I've been

  • Screen dims

    I have a 20" duo-core imac (white) at work and a 20" duo-core (aluminum) at home and have the same issue on both machines where the screen will dim if the computer is inactive for a brief period. Its not that the computer is going to sleep with the s

  • HR Implementation

    Hi all, Im currently facing a problem of plenty. That is to say, too much to look at, but dont know where to start. Disclaimer: Possible spoilers ahead. So, a little bit of background before I get into the real issue. Im work in a Real Estate organis