How to get the global create tasks that a user is authorized to initiate?

Hi,
I am using SOA Suite 11g.
I want to develop a custom workspace using Workflow Service API and BPM Service API.
What I need to implement is, When a user login in into the custom workspace, I need to show him a list of processes that he is permitted to initiate as the out-of-box Workspace does. I wonder how can I implement this using API.
thank you guys!

Hey Ramy,
A bit off the top of my head, but try this:
IPortletContext PortletContext;
IRemoteSession PTSession;
PortletContext = PortletContextFactory.CreatePortletContext(Request, Response);
PTSession = PortletContext.GetRemotePortalSession();
privatevoidgetCommunities()
IObjectManager Manager = PTSession.GetObjectManager(ObjectClass.Community);
IObjectQuery Query;
Query = Manager.QueryObjects(-1, 0, -1, ObjectProperty.Name, true);
for(inti = 0; i <= Query.GetRowCount() - 1; i++) {
string sCommunityName = Query.GetRow(i).GetName();
string sCommunityID = Query.GetRow(i).GetID().ToString();
Cheers!John

Similar Messages

  • Limit the amount of tasks that a user can claim

    I have a custom worklist and I need to develop a requirement for not allowing the users to claim more than one task at a time. Does the Worklist API have something to limit the amount of tasks that a user can claim at a time?.
    Thanks in advance.
    Neuquino

    Apparently the Family Base add-on (https://my.verizonwireless.com/vzw/nos/safeguards/SafeguardProductDetails.action?productName=familybase) from Verizon will allow you to set limits on how much data a particular device can consume.  I think it is free for the first 3 months (not sure) after that it will cost $5 per month.  I have heard rumors though that it does not work well with iPhones???

  • How to assign the status profile to that particular user..?*

    Hello Everyone..
    I have created a status profile for the particulat sales order type so that a particular user can confirm the sales order and the pass it,so that further changes can be avoided.The profile has been assigned to Item category also.
    Now My problem is ,How to assign the status profile to that particular user..?
    so that only the user is allowed to change the order.
    Thanks

    Hi,
    Maintain authorization key (authorization code)  in status profile.
    We do not assign directly to user. We assign to role E.g sales manager / sales employee etc...
    We assign T.codes to role and assign role to user.
    Goto Role T.code PFCG. Enter role and click on change button.Goto Authorizations tab.
    Click on authorization data .
    Expand the  Cross-application Authorization Objects tree. Expand Status Management: Set/Delete User Status using Transaction.
    Click on Authorization key button, assign Authorization key.
    Click on status profile. assign status profile.
    Regards,
    Chandra

  • How to get the intersection of two arraylist containing user defined obj??

    How to get the intersection of two arraylist containing user defined obj??
    I can easily get the intersection of two array list which containing some simple class(Integer, String). But how to get the intersection of two arrayList which contain user defined object?
    Here is the sample code..I can not run this out...anybody can help me? thank you very much..
    The correct result should be like this:
    2
    2
    but I can only get this:
    2
    0
    import java.util.*;
    public class testRetain{
         public static void main(String[] args){
              ArrayList a = new ArrayList();
              ArrayList b = new ArrayList();
              a.add( new dog(1,2,2) );
              a.add( new dog(1,2,1) );
    System.out.println(a.size() );
              b.add( new dog(1,2,2) );
              a.retainAll(b);
    System.out.println(a.size() );
    class dog implements Comparable{     
         int head;
         int arms;
         int legs;
         dog(int head, int arms, int legs){
              this.head = head;
              this.arms = arms;
              this.legs = legs;
         public int compareTo(Object o){
              if ( ((dog)o).head > this.head )
                   return -1;
              else if ( ((dog)o).head < this.head )
                   return 1;
              else
                   return 0;
    }

    @Op. Your classes should override equals and hashCode
    Kaj

  • How to get the Newly Created Material

    Hi all,
    Iam creating Materials using BDC sessions method,My Problem is to update the Newly Created Material in a Ztable.
    so iam getting the Newly created Matnr by the following peice of code
        SELECT  matnr FROM mara INTO  TABLE v_matnr
                               WHERE ersda = sy-datum
                               ORDER BY matnr DESCENDING.
    But the thing is,we are getting Previously created material.i.e the new material will be  created only after the sessions are processed,but when i write the above code in the program we are getting previous material.
    so how to update the newly created material.
    I think we can't do  that through program because we can get new material only after processing the session..so what is the solution for this.should we use userexits for getting the newly created material.
    thanks in advance
    balaji

    Hello,
    Use the <b>BAPI_MATERIAL_SAVEDATA</b> to create the materials.
    The BAPI will return the Material number which is created at that instance by which u can update the ZTABLE.
    Vasanth

  • How to get the Global Transaction ID

    Hi
    I have a Session Bean in which I am starting a UserTransaction. Inside the Session Bean I am calling an Entity Bean and I have set the Transaction attribute as RequiresNew. I need to get the Global Transaction ID inside the Entity Bean. How do I get it.
    I tried with the below line of code:
    weblogic.transaction.TransactionHelper txHelper = TransactionHelper.getTransactionHelper();
    weblogic.transaction.Transaction tx = (weblogic.transaction.Transaction)txHelper.getTransaction();
    javax.transaction.xa.Xid xid = tx.getXID();
    xid.getGlobalTransactionId();
    The GlobalTransactionId is not same in the Session Bean and the Entity Bean.
    Please help me on this.
    Thanks in Advance
    Sundari

    hi ,
    get the data for the user from db tables usr02  usr41..
    regards,
    venkat.

  • Data aquisition board installation,how to get the operation system know that the board exsist and to give it a number?

    I'm a green hand on hardware. This question is maybe kind of a silly quetsion.
    I already have a data acquisition board installed (built-in) and there is the corresponding program to control it.
    Now I need to install another board to the computer, and make the necessary Vi to control the new board. I'm wondering what should be the procedure like? HOW to get the computer know the new board. Should there be any driving program coming along with the hardware. Or the operation system should get to know the existing of the new hardware once it's installed( i mean plug in). Thank you for your kind reply!

    Hi Fenny,
    What is the model number of the second board? If your existing driver has support for this board (which I'm assuming is a NI board, and it's plug and play), your OS (which I'm assuming is Windows) should recognize it when you start up your computer after installation. You can find out the driver support for your board and OS from the link below. If the installation was successful, you should be able to see the new board in the Measurement and Automation Explorer (MAX) under "Devices and Interfaces". If you can see the board in MAX, there will be a device number assigned to the board, which you can use in your VI to communicate with it.
    If any of the above assumptions is incorrect, please provide some details (i.e. hardware used, driver you currently have installed, OS, and the application you'd like to use this new board for), and we can work from there.
    Data Acquisition (DAQ) Installation/Configuration Troubleshooter
    Thanks,
    Lesley Y.

  • How to get the filename of document that opened my app

    Hope that makes sense. I'm relatively new to OS X programming and have built a small Cocoa app (not a document-based app). I've associated a file type (.myFileType) with my application. If I double-click a file with that file type, it opens my app automatically as expected. From within my app, how do I get the full pathname of the document that opened my app?

    I know what you're saying. IB is made to seem easy, but when you start asking "What's this?", and "What does that do when the nib is loaded??", the pretty pictures suddenly aren't as clear as they seemed. Been there!
    The File's Owner never causes the creation of an object. It's always a "proxy" (a stand-in) for an object that's created elsewhere. The actual object may be defined in another xib, or it may be created in code. In MainMenu.xib. the File's Owner is a proxy for the Application object. The Application object isn't created because of that nib, it's created by the startup code before the nib is loaded. But the "proxy" allows you to make connections to the Application object in the xib.
    I know this is clear as mud so far, but it will start to make sense after you grok a few more pieces of the puzzle. A good place to start might be Anatomy of a Nib File in the +Resource Programming Guide+.
    Nib proxies are actually easier to understand when building an iPhone app. In that case, the SDK makes it much easier to associate proxies with the objects they represent. The concept is still the same, but for example, bridging two iPhone xibs with a proxy only takes a couple mouse clicks in IB.
    Hope that helps!
    \- Ray

  • How to get the New created Hier for existing IO and IS in the Infopackage

    hello Gurus,
    I have created a new Custom hierarchy on an existing InfoObject 0Costcenter. There are many Hierarchies already existing and being fed from R3. This new hierarchy is just a regrouping of costcenters.
    Now I have created this new Hier and activated it, When I tried to create a Infopackage to load this new Hier, I am not finding the new created Hierarchy in the Hierarchy Selection tab of Infopakage.What should I do to see this new HIer.
    Thanks
    Simmi

    so, the costcenter hierarchy created by the user is not a std costcenter hierarchy, so it should be a set hierarchy. go to tcode BW07 in r/3, give the name of the table and field, if you like the name of the datasource too orelse the system woudl generate it. But the costcenter hierarchy is compounded to controlling area, you would need to write a user exit to populate the compounding object too in the datasource, orelse all the costcenters would be unassigned to controlling area. once created, you can check the same in rsa6. once you see it there, replicate the DS to BI, and after that the data flow is same. create a new infopack to load the set hierarchy, as you wont be able to see this hierarchy in the std costcenter hierarchies.
    check a few other threads:
    Tcodes BW10/BW07 - how to use these
    compounding for hierarchies:
    ZXRSAU04 - programming for compounding in hierarchy

  • How to get the list of object that are going to modify during the upgrade?

    We are upgrading sap 4.OB to ECC 6, is there any place we will get the list of standard object which are going to modify in service market place? Please let me know the link to get those details.
    Thanks

    Usually you get this list when upgrading first system (sandbox type) via SPDD and SPAU. (useful for objects modified in your system - SNOTE or mofications) - The whole list of modified objects will be huge,  many (most) objects were modified (created, even deleted) those last 13 years.
    There are also tools that may help you like [panaya|http://www.panayainc.com/] (but i'm not sure for a 4.0B, it worked fine for a 46c) - look for tools/vendor at [Partner Information Center: Search|http://www.sap.com/partners/directories/SearchSolution.epx]
    Regards,
    Raymond

  • How to get the ip of client that is using the server?

    I am doing a FTP like system using Java. I would like to get the time and the IP of the client that want to download the files from the system. Does anyone know the method to do so?

    If you're using plain sockets you may call socket's getInetAddress() or if you're using jsp / servlets you may call request.getRemoteAddr()

  • How to get the global location of a component which is inside some containers.....

    Hai,
    I have a texInput component,which is placed inside containers like following
    1) Bordercontainer start....
    2) Vbox start...............
    3) Hbox start..............
    ..........Here My TextInput.........
    3) Hbox end..............
    2) Vbox end...............
    1) Bordercontainer end....
    Now after initialization i want to get the location of my textInput with respect to Application.
    I tried with with localToGlobal(PointofLocalCoridnate), then it is not giving the correct location of textInput..Please suggest me....
    Thank you...

    What are you calling localToGlobal on?  It should be on the parent of the TextInput itself

  • How to limit the max dialog no that one user can use at the same time?

    Hi,
    I meet one performance problem that one user can open 6 sessions in the GUI and he/she can run 6 reports at the same time witch could occupy 6 dialogs in the sap R/3 instance. It makes poor performance for other users.
    Would you pls tell me how to limit the no. of sessions one user can create at the same time or how to limit the no. of dialogs one user can occupy at the same time?
    Thanks a lot!
    I used this parameters in the default profile as blew:
    rdisp/rfc_check 1
    rdisp/rfc_use_quotas 1
    rdisp/rfc_max_own_used_wp 20 (means: 20%)
    It still didn't work.
    Sean

    Hello,
    We can reserve DIA W.P by giving value to the parameter :- rdisp/rfc_min_wait_dia_wp=1(default)
    that have to necessarily remain free for other users.
    This parameter is used to reserve a number of dialog work processes for Dailog mode.
    For eg. If 10 dialog w.p. are configured for the instance(rdsip/wp_no_dia=10) and the parameter rdisp/rfc_min_wait_dia_wp=3 is set,parallel RFC's can occupy a maximum of 7 DIA W.P.3 DAI W.P. always remain free for dialog mode.
    But now the question is how we assign/restrict this free dialog w.p. to the specific user.
    Reply...
    Regards,
    JUNAID

  • How to get the Time Stamp if we use User Status

    Hi Gurus,
    We used User Status to control several Orders. Now we are required to get the "time stamp" when we change from one status to another, is that information available in the system?
    If not, how do we get the time when a user status is changed from one to another?
    please advice,

    Hi,
    To check such kind of changes you have to follow below path,
    Go to Status tab (Blue Ikon) --- >Extra -> Change Documents-> All- --- > Choose All Changes
    SAP note 390635 provide the possibility to write change records for process and production orders as modification.
    please refer this link also,
    [Link|https://www.sdn.sap.com/irj/sdn/profile?userid=3781605]
    Regards,
    R.Brahmankar

  • How to get the values from form calls in user exit?

    Hi all,
    I am not getting a specific value readily in an user exit.
    ?Can any one tell me how to find what are the fields,tables available in various form calls(visible while debugging) in an user exit.
    For example sapxkl is one ofthe callls...(sapxkl)<table>[] will hold some data.how to find what r the values available for <table>.
    Thanks.
    Edited by: sanjay_ask on Apr 16, 2010 10:43 PM

    HI ,
    Use this line of code
      field-symbols: <l_fs> type any.
      data: l_value type char20.
    Get Plant
      l_value =  '(SAPLCEI0)GV_WERKS'. " Here give the program name and variable name
      assign (l_value) to <l_fs>.
      v_werks = <l_fs>.         " Instead of V_werks use you internal table
    Thanks
    Subhankar

Maybe you are looking for

  • ITunes making duplicates in second user account

    I hope I can describe my issue properly. First of all let me start off by telling everybody that I am a new Mac user making the switch from PC so please be patient with this Mac noob. That being said, I proceeded to setup my new Mac with all the soft

  • Oracle writing data to MS SQL Server

    Hi, I need to write Oracle 7.3.4 (Unix) data into a table which resides in MS SQL server. Can anyone advise me can this be done and how? Some additional info : We don't allow MS SQL to access the Oracle server. Thank you. null

  • Problem transferring tunes from old pc to new pc

    please help me...i am having trouble seeing my ipod on my new pc to complete the tranfser ...i think that i successfully transferred the tunes from the old pc to the ipod's hard drive but now i can't complete the transfer

  • Dynamic image display Problem

    Hi I am trying to display images in 2 ways static and dynamic unfortunately the dynamic display the last 2 doesn't show anything <mx:Image height="35" width="35" styleName="MediumIcon" visible="{r.currentItem.extramedicine=='true'?true:false}" source

  • MDM Profilemanager Error "attempt to connect to 127.0.0.1:3328 (127.0.0.1) failed"

    I'm running Profilemanager on Yosemite Server. Main Problem is, that i cannot apply integrate further devces thru Profilemanager or https://URL to MDM/mydevices. Error simply nothing or Internal Server Error in the Browser HTTP Error Log shows the fo