IActivityResponse.Publish Method (IDictionary) Not Working

http://msdn.microsoft.com/en-us/library/hh457138.aspx
I cannot get this example to return results to my runbook.  I get the output fields but no output.  If I alter the line:
response.PublishRange(publishedData);
to
response.PublishRange("ID",publishedData);
I get output in the ID field as I would expect.  I also noticed I have to search for that article. If I browse through the SDK it looks like that has been removed. Was this depreciated?  How can I get this to work?
Thanks

Since I could not get the result set to retun back as a whole set like they have, I ended up having to specity my outputs in my responces. Orchestrator was intellegent enough to correlate each list as a column in the item as a whole. When it calls out to
my next runbook object, it sends the columns grouped properly for each item and fires off the object once for each item in the compiled list as I desired.
     public void Design(IActivityDesigner designer)
            //Add runbook Input/Outputs
            designer.AddInput("Incident Type").WithListBrowser(new object[] { "New Items Only", "Updated Items Only", "Both" });
            designer.AddInput("Interval");
            designer.AddOutput("Reference Num");
            designer.AddOutput("Description");
            designer.AddOutput("Group ID");
            designer.AddOutput("Open Date");
            designer.AddOutput("Handle");
            designer.AddOutput("Item Type");
        public void Execute(IActivityRequest request, IActivityResponse response)
            //Get servicedeskinfo and send it to runbook outputs
            string reqInput = request.Inputs["Incident Type"].AsString();
            double interval = request.Inputs["Interval"].AsDouble();
            string[,] gathered = GetServiceDeskInfo(reqInput, interval);
            //Parse through all results
            for (int i = 0; i < gathered.GetLength(0); i++)
                //Add each result to it's respective list
                List<object> refNums = new List<object>();
                List<object> groupIDs = new List<object>();
                List<object> descs = new List<object>();
                List<object> openDates = new List<object>();
                List<object> handles = new List<object>();
                List<object> itemType = new List<object>();
                if (gathered != null)
                    refNums.Add(gathered[i, 1]);
                    groupIDs.Add(gathered[i, 0]);
                    descs.Add(gathered[i, 2]);
                    openDates.Add(gathered[i, 3]);
                    handles.Add(gathered[i, 4]);
                    itemType.Add(gathered[i, 5]);
                //Pass lists back to Runbook
                response.PublishRange("Reference Num", refNums);
                response.PublishRange("Group ID", groupIDs);
                response.PublishRange("Description", descs);
                response.PublishRange("Open Date", openDates);
                response.PublishRange("Handle", handles);
                response.PublishRange("Item Type", itemType);
I am all set. Thanks for your response.

Similar Messages

  • ExportAsFDF javascript method is not working with Reader 10.1.1

    Hi,
    I have pdf document in which I have applied all Extendend Reader Rights. And now when I am trying to exports alll annotation in fdf with Reader 10.1.1 then it is faling to export. However it is working fine with Reader 10.0.0. Looks like this is broken in later version of 10.0.0.
    Please let me know if any alternative solution is there to export all annotation in fdf file thru code.
    Regards,
    Arvind

    I would open a formal support ticket with our developer support folks.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sun, 27 Nov 2011 22:48:35 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: exportAsFDF javascript method is not working with Reader 10.1.1
    exportAsFDF javascript method is not working with Reader 10.1.1
    created by arvindg007<http://forums.adobe.com/people/arvindg007> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4049525#4049525

  • How do I print in B&W now that I have lion? The whole "open in preview" method is not working. Thanks

    Subject says it all.....The whole "open in preview" method is not working. Any ideas or solutions would be appreciated. Thanks

    What kind of printer do you have? Have you looked at their PDEs to see if there are any settings for color/b&w?
    How is the "open in Preview" not working? Please provide some details.

  • REP-51018 -- cookie method is not working :(

    Trying to invoke a simple report from a simple form by using web.show_document()
    if I pass the userid=x/y@z then it work fine
    if I try to use the cookie method as defined in the OTN whitepaper "Secure Web.Show_Document() calls to Oracle Reports", I am bumping to the REP-51018 error.
    Tried the metalink and found primarily 2 documents, one (note#279938) is suggesting using
    SYNCHRONIZE; prior to invoking the WEB.SHOW_DOCUMENT(...), which I did - not worked,
    then I read the document (#309652.1) which tells that the cookie method will not work if not using fully qualified domain name -- I have a fully qualified domain name and I can see in the browser cookie settings that the domain is set correctly.
    I also edited the basejini.htm and basejpi.htm files and added the suggested entries as shown in the same OTN whitepaper (page #9). And recycled the entire iAS server after all the editing (reports.sh, formsweb.cfg, etc).
    I can see the cookie is saved on the client browser and the userid is displayed in the JInitiator control window.
    FrmReportsInteg0: Debugging true
    FrmReportsInteg0: Adding new userid string "zafer/mutlu@jtls5"
    FrmReportsInteg0: Default cookie domain: .rolands.com
    FrmReportsInteg0: set RW_AUTH10g
    FrmReportsInteg0: Arguments: encryptionKey=reports9i; Reports version=RW10g
    FrmReportsInteg0: Cookie value for RW10g is: zafer/mutlu@jtls5;1135302256455:30
    FrmReportsInteg0: Encoded cookie value is: W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==
    FrmReportsInteg0: Complete cookie string is: userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==
    FrmReportsInteg0: Added domain ".rolands.com" to cookie
    FrmReportsInteg0: Generated Cookie String: userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==; domain=.rolands.com; path=/
    liveconnect: JSObject::eval(document.cookie="userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==; domain=.rolands.com; path=/")
    liveconnect: the url of the applet is http://raptus.rolands.com:7778 and the permission is = false
    FrmReportsInteg0: NS Cookie Set
    network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with proxy=DIRECT
    network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with cookie "userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q=="
    network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with proxy=DIRECT
    network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with cookie "userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q=="
    The only thing I can see is this line:
    liveconnect: the url of the applet is http://raptus.rolands.com:7778 and the permission is = false
    if this is the problem how can I fix it?
    What is wrong with this cookie method? What I am doing wrong?
    Any input is appreciated very much.
    Zaf.

    Here is the code I am using in a when-button-pressed trigger in the form to invoke the report.
    And yes, the javabean USERID_BEAN is created/defined under the CONTROL block, with all the properties as explained in the OTN whitepaper.
    thank you.
    =================================================
    message('Invoking the related report...', ACKNOWLEDGE);
    message(' ', NO_ACKNOWLEDGE);
    DECLARE
    rep_url varchar2(2000);     
    user_name varchar2(40);
    passwd varchar2(40) ;
    connectstring varchar2(20) ;
    BEGIN
    user_name := LOWER(get_application_property(username));
    passwd := LOWER(get_application_property(password));
    connectstring := LOWER(get_application_property(connect_string));
    rep_url:='/reports/rwservlet?&envid=jtlsDDS&&report=readme.rdf'
    ||'&desformat=htmlcss&destype=cache&userid=';
    -- Write log messages to the Forms JInitiator console. The next line must
    -- be disabled before running this code in any production environment
    set_custom_property('CONTROL.USERID_BEAN',1,'WRITE_LOGOUTPUT','true');
    -- set userid in encrypted cookie before calling Web.Show_Document()
    set_custom_property('CONTROL.USERID_BEAN',1,'ADD_USERID',
    user_name||'/'||passwd||'@'||connectstring);
    -- writing the cookie
    set_custom_property('CONTROL.USERID_BEAN',1,'WRITE_USERID_COOKIE','10g');
    -- Add the next line to correct REP 51018 error
    SYNCHRONIZE;
    WEB.SHOW_DOCUMENT(rep_url,'_blank');
    END;

  • Instance Dependent Public Method is not working for Workflow

    Hello Experts,
    I have made Custom class for  a workflow. This class is triggering the WF fine but the problem is while trying to execute a WF task which contains a Instance Dependent & Public  method its not working , the WF task is not processing though I'm passing the instance of the class  properly from WF to WF task . When I'm changing the method to Static & Public then the workitem is executing perfectly. Can you please help & suggest the way to find the problem ?
    Thanks & Regards ,
    Jeet

    Are you absolutely sure that you have the instance of the object in the workflow container? Open the technical log the see if the object instance is there - or is the container element initial (or "not set")?
    yes it is instantiated properly no error over there.
    What about if you test the method directly in SE24 (as an instance method)? Is it working then? If you can make it work in SE24 as an instance method and you are sure that the instance exists in the workflow,
    I have checked the class in a stand alone run in this case also it runs fine as before.
    The obvious question of course is that have you implemented the IF_WORKFLOW interface methods (the two first ones).
    it is coded like below
    BI_PERSISTENT~FIND_BY_LPOR
      create object result
          type
            (lpor-typeid)
          exporting
            ip_key = lpor-instid.
    CONSTRUCTOR
       me->m_KEY    = ip_key.
       me->m_por-catid = 'CL'.
       me->m_por-typeid = CL_ZZZ'.
       me->m_por-instid = me->m_key
    BI_PERSISTENT~LPOR
    result =  me->m_por.
    Main confusion is Method is working only if declared STATIC & PUBLIC  but not for the INSTANCE DEPENDENT & PUBLIC.

  • Auto tab focus method is not working in iOS devices please share the ideas why its not working?

    Auto tab focus method is not working in iOS devices. Please share the idear i am facing this issue while developing code for devices.

    Hi there,
    I can confirm this bug.
    Not sure if this info is relevant, but this is my experience:
    I am on the FIDO network, and so are two other people I know.
    We all tried blocking numbers, and calls ring right through. Text messages are blocked successfully. (never tried facetime)
    I also tried a ROGERS device running IOS7, and was successfully able to block my phone call from ringing through. HOWEVER, my call was forwarded to their voicemail, I was able to leave a voicemail for the person, and they did get an alert that they had a new voicemail.
    I have not yet had a chance to test this on Bell, Telus, or any other carriers.
    Spoke to Apple, and they advised me to do a hard reset (hold both buttons to shut off and reboot the phone), and if that fails to do an iOS restore.
    I have yet to try this, but hopefully someone will have a better solution.

  • Repaint() method is not working in MAC IE

    Hi All
    why repaint method is not working in MAC IE ? What i am doing is in one class which is inheriting Canvas class getting the keybord input then adding it to main applet.
    Please help me i am trying it for whole week and i couldn't find any solution. I didn't put my code but if anyone is willing to help me i can post it.
    Thanks in advancs
    Shan

    Hi
    Thanks for your reply. Actually i wrote simple applets and those are working well.
    So i did debug the code and i found that when i am running the following code in Apple MAC IE, nothing is happening in handleEvent method. Especially it is not going into the if statement (if (evt.id==401)). here i am checking for KEY_PRESS. I also tried with keyDown method but same problem in MAC IE.
    I am pasting the code that is giving me problem.
    import java.awt.*;
    import java.applet.*;
    public class testApplet extends Applet
    public void init()
    setLayout(new BorderLayout());
    editableArea = new EditableArea();
    editableArea.setBackground(Color.yellow);
    add("Center", editableArea);
    EditableArea editableArea;
    import java.awt.*;
    public class EditableArea extends Canvas
    String s = "";
    public boolean handleEvent(Event evt)
    if (evt.id==401)
    if(evt.key >= 32 && evt.key <= 255)
    char c = (char)evt.key;
    s = s + c;
    repaint();
    return super.handleEvent(evt);
    public void paint( Graphics g )
    g.setColor(Color.blue);
    g.drawString( s,5,15);
    --------------------------------------------------------------------

  • Draw method is not working

    Why the drawLine() is working only inside the paint method??
    BufferedImage image = new BufferedImage(800,500,BufferedImage.TYPE_INT_ARGB);
         Graphics2D g = (Graphics2D)image.getGraphics();
    public void paint(Graphics g)
                   g.setColor(Color.black);
                             //Here, the drawLine() method works
                   g.drawLine(50,0,50,150);
    public void paintX(Graphics g,Point c)
                        //Here, the drawLine() method does not work
                        g.setColor(Color.black);
                   g.drawLine(0-e,0-e,50-e,50-e);
                   g.drawLine(0-e,50-e,50-e,0-e);
                   repaint();
         }

    er, unless you're using JDK 1.5 and it introduces methods I know nothing about, as far as I know
    public void paintX(..) is not a AWT or Swing method. Thus it will never be invoked unless you call it.

  • Captivate 7 course published to html5 not working

    I recently created an elearning course and published to both SWF and HTML5 for SCORM 1.2. However, in doing so, I could not get it to play on my iphone, and on the Mac only some browsers worked.
    I separated the two outputs in two different versions and published them to SCORMCloud with the following results:
         Published to SWF - works fine across all browsers.
         Published to HTML5 - does not work on any browser,  or iphone/ipad. I can't even get the "Preview HTML5 output in web browser" to work.
    In all cases, we simply see a blank screen. The HTML5 tracker does not show that there are any incompatibilities. The options under externalized resources are left unchecked. I have included a screen shot of the html5 settings, just in case. They seem pretty cut and dry, but is there something somewhere--here or on another screen--that I am missing?
    I am really in a bind at this point since this course was supposed to be up and running a couple days ago. Any help you can offer is appreciated. Thanks in advance.
    Best,
    Arthur

    They're all in the same boat with you.  It's not working reliably for them either.
    You need to go back to the drawing board and ask yourself (or your client) some hard questions about your target audience and your target course content.
    Is is REALLY the kind of content that you want people to view on a tiny smart phone screen?  E.g. is it desktop software training?  If not, then why bother with trying to support tiny screens?
    Are the people in your target audience REALLY likely to be viewing this content ONLY on their phones, or could they just as easily view it in their web browser on their computer? If so, tell them so.
    The truth is that most clients have no idea about the technical limitations of this brave new world we call Mobile Learning, and many are now picking up HTML5 as the latest technological buzzword they trot out to show how "with it" they are:
    "We need our content to be HTML5-compatible to accommodate the m-learning landscape and maximize shareholder expectations bulldust bulldust bulldust...ad nauseum."
    While I agree that HTML5 is probably the future of e-learning, it's causing more than it's fair share of headaches in the present.

  • Method "show_doc_meta_data" not working for me in "cl_gui_ecl_2dviewer "

    Hello all,
    I want to show the meta-data within an image, when showed with the ECL-Viewer.
    I performed the following steps in my ABAP-Code, but it is not working.
    Creating an object of the class "cl_gui_docking_container"
    Creating an object of the class "cl_gui_ecl_2dviewer" with a refernece of the container
    Calling method "create_toolbar"
    Calling method "open_document" with the path to the file and the file_type
    Up to this point everything works without any problem.
    But now I want to show my created META-DATA of the image, which I have added with the method "set_doc_meta_data".
    After calling the method "show_doc_meta_data" the appended data is not visible on my image.
    What going wrong in the method of my coding?
    I am grateful for any help.
    Best regards
    Christian

    Hi Christian
    Did you solve this issue?
    I'm trying to use Badi  DOCUMENT_ECL01 to insert watermarks on some DMS documents but it's not working, maybe you could give me some advice.
    Regards
    Daniel

  • Secondary method is not working

    Hello,
    I have a problem with my secondary method. I created a method Z_Call_ME23N for my purchase order release workflow and added it as a secondary method to my user decision step.
    In testing in swo1 is no problem. Also the authorization test in SU53 are ok.
    But when I try to open my workitem a message box comes up: 'Error when starting submethod'.
    How can I check it what I have done wrong?
    Thanks for your help,
    Christoph

    Hi Martin,
    thanks for your answer.
    I have BUS2012 in my WF container, and it is delegated to ZBUS2012 (so I was wrong to say it is ZBUS2012).
    I also have the BO in the decision step (wondered if I was wrong - I made a copy of the standard decision task to add my own container element in the copy - this is the task I am now using).
    So actually my bindings for this step is:
    BUS2012 (delegated to ZBUS2012)  -->  BUS2012
    is that right?
    Unfortunatly it is still not working.
    I also tried to clear the buffer (as it says so in others posts), checked the authorizations,etc.
    Thanks a lot for you ideas, it is still my first workflow and I don´t know where else I could take a look to get some help.
    Christoph
    Edited by: Christoph on Jan 30, 2008 3:23 AM

  • 'NAVIGATE_ABSOLUTE' method is not working in UWL

    We are working on Portal 7.0.
    Recently We have upgraded from SP 13-0 To 13-5.
    After this upgradation We are facing some problems, following is the scenario:
    1.     We have a ABAP Web DynPro Application say 'A', which has button "View Details".
    2.     On Clicking of "View_Details"  We navigate to other ABAP Web DynPro Application say 'B' .
         This was done using the 'NAVIGATE_ABSOLUTE' method of the 'IF_WD_PORTAL_INTEGRATION'.
    3.     Now The Same Application 'A' is being send as the Workitem to Approver's inbox.
    4.     Approver also was able to click on 'View_Details' button and  Application 'B' used to call using 'NAVIGATE_ABSOLUTE'.
    5.     After upgradation, Point 2 is working fine. but point 4 is not working i.e. 'NAVIGATE_ABSOLUTE' functionality is not working when the application is send as workitem.
    Please guide us for the above problem. Points assured for best solution.

    Hi
    Thanks for your reply. Actually i wrote simple applets and those are working well.
    So i did debug the code and i found that when i am running the following code in Apple MAC IE, nothing is happening in handleEvent method. Especially it is not going into the if statement (if (evt.id==401)). here i am checking for KEY_PRESS. I also tried with keyDown method but same problem in MAC IE.
    I am pasting the code that is giving me problem.
    import java.awt.*;
    import java.applet.*;
    public class testApplet extends Applet
    public void init()
    setLayout(new BorderLayout());
    editableArea = new EditableArea();
    editableArea.setBackground(Color.yellow);
    add("Center", editableArea);
    EditableArea editableArea;
    import java.awt.*;
    public class EditableArea extends Canvas
    String s = "";
    public boolean handleEvent(Event evt)
    if (evt.id==401)
    if(evt.key >= 32 && evt.key <= 255)
    char c = (char)evt.key;
    s = s + c;
    repaint();
    return super.handleEvent(evt);
    public void paint( Graphics g )
    g.setColor(Color.blue);
    g.drawString( s,5,15);
    --------------------------------------------------------------------

  • LSMW Recording method is not working for transaction code FBL5N

    Hi Experts,
    I am trying to prepare LSMW to create dispute cases for customer line items through LSMW Recording method. When i was trying to do through SHDB Recording its working properly through Program. But its not working through LSMW Recording method means its not executing to next screen, immediately its displaying session completed screen.
    Please do let me know any soution for this.
    thanks,
    Sriram.

    Hi Sriram,
    If my memory serves me correctly, a BDC will not work correctly with a list. This is mentioned somewhere in the SAP help pages.
    Now I am not familiar on how to create dispute cases but using FBL5N does not sound to me the way to go.  I assume that you use FBL5N in order to determine to which documents to link the dispute to, however you should be able to get the requested info from the BSID/BSAD tables.
    Also in case you want to change the customer line item in the accounting document, check the data transfer workbench (SXDA) as SAP delivers a standard program for this.
    Kind regards,
    Robert
    Edited by: RJ. Schamhart on Jan 14, 2011 12:35 AM
    Edited by: RJ. Schamhart on Jan 14, 2011 12:43 AM

  • Infopath systemuser() method is not working in infopath view @extrant site .

    We have a sharepoint webapplication with infopath views .We have controlled the switch view with authenticating login use id .It is working perfectly in intranet.
    When we are publishing the site to internet using public ip @ that time initially infopath forms were not opening so i have used Alternate access mapping and published the infopath forms in ip instead of server name .
    Now infopath forms are getting opened but system user() rule is not working and infopath edit forms are not working .Even list view web part with assigned to filtration is also not working . 
    I am stuck on the issue since Monday . Please suggest how to make it possible . it is very urgent.
    We want our customer to access using ad authentication.

    Jeeva,
    Did you create this form in InfoPath itself or you are modifying a list into InfoPath?
    The first screenshot shows you have selected Total "is not equal to" Jan+Feb….
    You can simply add Total field with “TextBox” and double click on it and select default value button.
    Once it will open up a pop up select “fx” button in value and insert all fields like, Jan, Feb…and then put a “+” sign in between
    This will auto populate value once you enter it into any of the month filed.
    Also it you have copied fields for several month in InfoPath it won’t work. You have to insert each field separately
    Let us know your results
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Publisher News Portlet Not Working

    Hi,
    We use Publisher 6.5 with Oracle WCI 10gR3 portal. We have a News Portlet in our home page which has suddenly stopped displaying any content. It has a huge number of news articles, i.e. around 250 Plus articles.
    We found a setting in the DET relating to max items which was set to 200, we increased it to 400, and published the whole folder, but things still did not work out.
    If we try to preview the portlet while adding to another page, we are able to see the content, but once the portlet gets added, nothing displays once again. Also in Publisher Explorer, the content item attached to the News portlet is not getting displayed if we click Preview. We get an error message "Error - Requested resource is currently unavailable. Request to the remote server has timed out. Try again later or contact your portal administrator.
    Gateway was not able to access requested content. If the error persists, contact your portal administrator. "
    Please can anyone help as this is an urgent issue

    First you should contact Oracle Support and get this set as a priority one issue and escalate it so that you get the fastest possible response.
    It sounds to me like you've blown away your index.
    I'd check the following:
    1)
    go into your publisher directory <portal home>/ptcs/publishedcontent/publish/<path to your content>
    Verify that the content is actually still there (actual html files of each of your news articles).
    2)
    go into publisher explorer and check your articles folder (in the appropriate area) and verify that your content is still there.
    3)
    Within the problematic folder, open the Content Item Index - this will contain all of the items that you've posted to your announcement portlet.
    If someone checked-out this file and then did an "undo-checkout" I believe it blows away all changes since the last "check-in" which typically is nothing, and blows away all your content - which would cause precisely the problem you are seeing.

Maybe you are looking for