Assigning and un-assigning the existing role to the existing participant

Hi,
My requirement is to assign the existing role to a participant and after doing some particular things un-assign that role from that participant
I am using oracle bpm 10g .
Any idea ?
Thanks

session as DirectorySession = DirectorySession.currentEngineSession
theRole as RoleAssignment = RoleAssignment.create(role : DirOrganizationalRole.fetch(session : session, id : "MyRoleName"), permissions : 95)
     dirHum as Fuego.Fdi.DirHumanParticipant = DirHumanParticipant.fetch(session : session, id : "MyUserId")
     curRoles as RoleAssignment[]
     curRoles = dirHum.rolesAssignment
          curRoles[] = theRole
          dirHum.rolesAssignment = curRoles
          update dirHumTo unassign the role, just remove the role from the 'curRoles' array.
HTH,
-Kevin

Similar Messages

  • Error while assigning the fallowing role to the user

    Hi,
    ERROR 2007-01-18 14:13:25
    CJS-30196  Role SAP_BC_JSF_COMMUNICATION_RO is not assigned to user SAPJSF
    i am getting the fallowing error while trying to assigning the fallowing role to the user any body through some light in to it.
    Thanks
    kiran.B

    Hi,
    Standard roles are not assigned to users directly.Make sure that copy the role from standard roles then change naming convention like your company specification.
    Ex: standard role : SAP_BC_JSF_COMMUNICATION_RO
    Step:1: go to t-code: PFCG and give the role name in role tab SAP_BC_JSF_COMMUNICATION_RO
    Step:2: press copy button and change the naming convention.
    Step:3: Assign to the user.
    I hope it will help you.
    kiran kumar.v

  • What  is difference btw project Assignment, Resource Assignment and task Assignment.

    Hi,
    I am new project accounting Module .
    what  is difference btw project Assignment, Resource Assignment and task Assignment.

    Project Assignment, Resource Assignment refers to the resource management part and Task assignment is basically the work assignment to the resource.
    An assignment/requirement is created in PJR for create demand for the resource requirement of the project and when the resource is aligned he can be assigned to the task in the work plan.
    Refers to the top down approach in this case.
    Additionally a resource can be assigned to the work plan and a assignment can be created to get the resource allocated to the project.
    Refers to the bottom up approach in this case

  • Headder assigned and activity assigned Network

    Hi,
    I am wondering whats the difference between Header assigned and activity assigned network.
    In which situation we select either of the options and what are the implications. Please clarify my question.
    Thanks
    Naveen

    The specialty of order category "Network" is that it has the capability of being operation/activity assigned. All other order categories are header-assigned by default. Here is a brief summary of each, which highlights the specific usages of both types:
    Header-assigned networks behave like other order categories. The network contains the costs for all the activities and assigned material components. These are normally used in cases where the network is assigned to a sales order without a WBS or when all the activities are assigned to a single WBS element. In this case, the assignment of network activities to WBS elements is only used for summarizing dates.
    Activity-assigned networks have network activities as account assignment objects. They are normally used in cases where activities are assigned to various WBS elements and planned/actual costs, commitments and dates can be analyzed for each activity as an account assignment object (cost object). It also provides the ability to analyze costs, commitments and assigned values at a greater detail at the WBS element level, where the network activities are assigned to various WBS elements.

  • How can I know the security role of the logged in user

    When you design an enterprise bean or Web component, you should always think about the kinds of users who will access the component. For example, an Account enterprise bean might be accessed by customers, bank tellers, and branch managers. Each of these user categories is called a security role, an abstract logical grouping of users that is defined by the person who assembles the application. When an application is deployed, the deployer will map the roles to security identities in the operational environment.
    But wondering when I log into my application with some user name and password (specified in my Oracle database),wondering how this works with the security role I created .How does J2EE know the security role of the logged in user.
    Thanks
    Manohar

    shet wrote:
    role at run time.
    When I login say as "manju" and password as "money" then how does it know that this user belongs to this security role.Is that the j2ee administrator has to say that user manju has this this security role.Programmitically how does it really work.I am confusedThe j2ee implementation assigns the roles using the JAAS module you have configured for your application on your application server. different JAAS modules get roles in different ways. many allow a single static role to be assigned using a config file. if using a database, often there will be configuration to specify additional database fields which specify the role for a given username.
    At runtime, a developer can test roles using methods like EJBContext.isCallerInRole().

  • Creating the bussiness roles for the bussiness partner using Function modul

    Hi
             How to create the business roles using the function modules for the Business partner.

    You can also assign the role at the time of creation of the business partner itself. Use the function module BAPI_BUPA_FS_CREATE_FROM_DATA to achieve the same.
    If your business partner is already there then you can use the function module BAPI_BUPA_ROLE_ADD.
    <b>Reward points if it helps.</b>

  • Value assignment and value assignment type in the specification workbench

    Hi all,
    There is this section on the specification workbench called u201CProperty Treeu201D, this section contains all the value assignment type, I have two questions on this.
    Question 1 u2013
    What is exactly the value assignment type? The SAP help portal said it is a structure specification data and information. What exactly does it mean and its usage?
    Question 2 u2013
    May I know where is the SPRO configuration that actually causes the list of value assignment types appear on the property tree section for this particular specification type which I created.
    In another word, I create this new specification with specification type u201CREAL_SUBu201C and specification category u201CSubstanceu201C in the specification workbench transaction. Next thing I know is that the property tree section for this particular specification consists of a list of value assignment type. How does the system assigned these list of value assignment types to this specification i created? Coz I didnu2019t do anything.
    Where in SPRO and the logic link it up on this??
    Thanks.
    YY

    Hello all
    EH&S contains a number of submodules (PS, DG, IH etc.). Regarding each submodule a basic customizing is delivered by SAP. One example is the specification type. Usually you will find something like
    REAL_SUB
    LIST_SUB
    etc. in the Customizing as discussed. Further more I believe with EH&S 2.7. the specification category come in place (SUBSTANCE as an example). You need to take care regarding this too.
    An value assignment type can be grouped in a property tree and a property tree can be linked to a specification type and there are cases known that one specification type is linked only to one property tree (this is a decision regarding business needs and not an IT quesition). Using the EHS& surface you can change the property tree per specification if the set up is done in Customizing. Therefore the property tree is a "view" on the data linked to a specification. (identifeirs etc. are managed different)
    A "property" is based on a value assigment type and in many cases on a related EH&S class and characteristic. You will find these types.
    A => value assignment type to be used if you need characteristics
    B => value assignment type to be used if you need specification listing
    C  => value assignment type to be used if you need composition
    .. etc.
    You can mix types. That means you can create a property of type "A" and "C" (take a look in SAP original tree; you will find examples how to do it).
    A propetry tree is a "list" of assignment type related to a object (specification). Using the property tree you can maintain necessary data. Therefore ithe property tree itself contains per specification the list of "potential" data structures you can fill with data. I belive SAP Standard is delviering now something like 250 properties (valeu assignment types): To e.g. get an MSDS you need to maintain I would assume at least something like 20 up to 50 properties
    The area of customizing regrading property tree, specification types etc.  is the most crticial to have a sucessful EH&S project running; any wrong decision gives rise to a high cost later Therefore take your time to understand what effect does which customizing acitivity have later.
    Based on the value assignemnt you will create later e.g. a WWI report (like MSDS).
    Additionally if necessary you can create customer specific value assignment types by either do a copy from SAP original to "Z" (highly recommended to do so!) or starting from basic. 
    Starting with EH&S 2.7. you have now more options to "change" EH&S using standard EH&S functionality. Take a look in customizinjg (example: you could create you own "look and feel" of the workbench (you should'nt really do that but it is possible). You can design your own "tab strips" etc.
    So once again: the "correct" set up of EH&S in the area of e.g. identifers, speficiation types, property trees etc. is the "core" activity in EH&S customizing and therefore think "twice" before you change the setup up (you need to understand what a change mean)
    With best regards
    C.B.

  • Hide the First Role in the TopLevel Navigation

    Hi,
    I am working in EP 7.0 SP14. As per my scenario, i need to be hide first role in the list of top level navigation. I have set the priority as high for this role and also one page will be assigned in this role. After login, I want to be hide the role only but page will be display in the content area. I couldnt get any clue for this.
    Please help me.
    Helpful answer are appericiated.
    Regards
    Prakash T

    Hi Prakash,
            Modify Entry Point property of the page in your role to 'TRUE'. And ensure that All the parent levels ( like Worksets and Roles Has Entry Point as False). This way you will directly see your page and Role will not be displayed in Top level navigation.
         For more info.. check this link..
    http://help.sap.com/saphelp_crm50/helpdata/en/4e/3e703e632c7937e10000000a114084/frameset.htm
         Consider reward points if helpful.
    Regards,
    Uday.

  • Adding a domain user to the admin role within the local user management breaks all metro apps for all users!!

    Hi,
    I have posted this in another large thread under the "Windows 8 General" group but have not had any appropriate feedback from MS.
    After hours of testing and working with other users I have managed to isolate a simple situation that breaks all metro ui applications within Windows 8 for all users on the machine. Here are my exact steps and notes.
    Before continuing if you are running Avast then your solution may be to turn of the behaviour shield functionality as this also breaks metro apps. This is NOT the problem we are having!
    I have performed 3 cleans installs after isolating the problem and am able to reproduce the issue every time using the same steps on two different machines. 
    First thing to say is that for us it has nothing to do with simply joining the domain, domain/group policies nor does it appear to have anything to do with the software we installed, the problem here is much more simple but the result is pretty terrible.
    Here are my exact steps of what I did to reproduce our problem:
    Complete format of HDD in preperation for a clean install
    Clean install performed
    Set up the machine initially with a local account
    Test metro apps - all working fine
    Open control panel from the desktop, click on System, change the system to join the domain, click reboot
    Log into the system using my domain account
    Test metro apps - all working fine
    Here's were the problem starts. I need my domain account to have admin rights on the local machine so I can install programs without the IT men having to come over and enter their password every 5 mins.
    I go to control panel via the desktop and click on User Accounts. From with here I then click on "Manage User Accounts". This requires the IT guys to enter their details to give me access to such functionality. This is fine
    In the dialog box that opens I can only see the local user that was initially created during setup. The "Group" for this local account shows as "Administrators" - Image included below (important to note that metro apps are working at this point)
    I click add and then add my domain account - also giving it administrator access
    Sign off or reboot to ensure the new security is applied
    Sign back in to the domain account
    Test metro - ALL BROKEN
    Sign out
    Sign in as local account
    Test Metro - NOW ALL BROKEN FOR THIS USER ALSO
    So as soon as I add my domain account to the local user accounts and set it as admin it breaks all metro apps for all users. This is on a totally clean install with nothing at all installed other than the OS.
    Annoyingly if I go back and change the domain account to a standard user or if I totally remove the domain account from the local account management system the problem does not go away for either user. basically it is now permanently broken. The only fix I
    could fathom was a full re install and not giving the domain user admin access to the local  machine.
    Screen one - this is the local user accounts window AFTER joining the domain and logging in with my domain account (All metro apps working at this point)
    Screen 2: User accounts AFTER joining the domain and AFTER adding domain account to local user management (METRO BROKEN)
    I have isolated my machine from all group policies so nothing like that is affecting me. Users I have spoken to in different companies have policies that automatically add users to the local user management. This means that metro apps break as
    soon as they join the domain which leads them to wrongly think it is group policies causing the error. Once they isolate themselves from this they can reproduce following my steps.
    Thanks

    Hi Juke,
    Thank you for the response and apologies for the delay in getting back to you. My machine was running a long task so I couldn't try your suggested solution.
    I had already tried running the registry merge suggested at the top of the thread to no avail. I had not tried deleting the OLE key totally so I did that and the problem still exists. I will post all the errors I see in event viewer below. For
    your info, since posting my initial comment I have sent out my steps to 7 different people and we can all reproduce the problem. This comes to 10 different machines (3 of them mine then the other guys) in 3 different businesses / domains. We see the same errors
    in event viewer.
    Under "Windows Logs" --> "Application" : I get two separate error events the first reads "Activation of app winstore_cw5n1h2txyewy!Windows.Store failed with error: The app didn't start. See the Microsoft-Windows-TWinUI/Operational log for additional
    information." The second arrives in the log about 15 seconds after the first and reads "App winstore_cw5n1h2txyewy!Windows.Store did not launch within its allotted time."
    Under "Windows Logs" --> "System" : I get one error that reads "The server Windows.Store did not register with DCOM within the required timeout."
    Under "Applications And Services Logs" --> "Microsoft" -->  "Windows" --> "Apps" --> "Microsoft-Windows-TWinUI/Operational" : I get one error that reads "Activation of the app winstore_cw5n1h2txyewy!Windows.Store for the
    Windows.Launch contract failed with error: The app didn't start."
    If you require any further information just let me know and I will provide as much as I can.
    Thanks

  • Impact of reinstalling the SUP role at the Central server

    Hi Experts
    Env: 1 Central Server
    15 Primary servers
    1 WSUS Server
    Multiple Active update sources (all primary servers)
    We have identified an issue with multiple WSUS update sources in the database. This is from a previous WSUS installation where in the stale entries still prevail in the database. We have determined to delete the inactive update source from the db and reinstall
    the SUP role alone. Apart from redoing the updates classification and custom site settings what impact is this going to have in the environment. e.g. on the old update lists, DMs, CIs. Am I going to lose all of that as well?
    Looking forward to a response :)

    Thanks Jason.
    Would I have to reinstall the WSUS server again?  I am indeed testing this on my lab, and my DMs and U/Ls were all in place after uninstalling the SUP role and on reinstalling I can see entries in my wsyncmgr.log such as:
    "Syncronizing sms database with wsus server"
    "Synchronizing update 
    "Incrementing CI version to '#' which I believe is pretty standard.
    and I was following the blog: http://blogs.msdn.com/b/george_bethanis/archive/2013/01/31/confmgr2007-security-updates-cannot-be-downloaded-on-a-win2008-server-with-error-on-wuahandler-log-failed-to-add-update-source-for-wuagent-of-type-and-id-error-0x80040694.aspx
    It nowhere said, we would have to reinstall the entire WSUS server!!
    Kindly clarify.. </guid>

  • The 4 Roles of the Modern MSP

    The times, they are a changin’. When I look at my roles as an MSP and integrator at the turn of the century the equation for success started with selling solutions. In the SMB space, this consisted of file servers, email systems, and application and database servers for application software like Customer Relationship Management (CRM), Accounting, and other Line of Business (LOB) software. The old model value chain was driven by products and implementation. For me, as it was for most integrators, selling the hardware and software was a big ticket deal in itself. Even for small deployments, this could run into six figure invoices with nice margins. And, of course, you get to replace it all in 3-4 years when it’s slow, failing and outdated. Then there was the implementation and ongoing maintenance. Not a bad equation....
    This topic first appeared in the Spiceworks Community

    Thank you for your previous responses.
    Im talking only about the T=0 case.
    That was my opinion to, that somehow the applet author must know in wich case the APDU command is, based on the first 4 header bytes.
    Do you know how the reading from the serial line is performed? I'm talking about the SetIncomingandRecive method, and the ReciveByte method. Those methods return the number of bytes the Card reads from the card reader. In the SetIncomingandRecive specification "This method gets as many bytes as will fit without buffer overflow in the APDU buffer following the header. It gets all the incoming bytes if they fit."
    But I'm thinking that maybe when the applet calls the SetIncomingAnd Recive method ( and we are in the case where we have lets say three times o bytes than the APDUbuffer size), maybe at that time, all the APDUBuffer is not filled with data, then the JCRE should wait more until all the buffer will be filled? This can be seen in the return result of the SetIncoming.. and ReciveBytes methods. I'm asking you since you have more experience, do those reading functions read almost as much as the APDUBuffer size, in one call of each of the functions? or they read less bytes, something like half a buffer size.
    For GemExpress X211 PK tool kit, can I donwload some applications on it without having the Gemplus special software. I do have the JCardManager working.
    Thank you very much!!

  • BAPI_PO_CREATE1 is not defaulting all the partner role in the PO

    Hi All,
    I am facing a problem while Purchase Uploads using  BAPI_PO_CREATE1 in the LSMW via Idoc .
    The BAPI is not behaving same as Txn ME21n .
    In the Txn ME21n when we enter the Vendor the partner tab is automatically filled with  all the  Partner roles .
    While when we use BAPI it is only filing the Partner role with a single partner  role VN.
    We are sending the sturcture partner role  as blank because we wanted it to be defaulted as it is in Txn ME21N.
    During the program analysis we found the following :
    BAPI is calling the Function Module MM_PARTNER_SELECT which try to fill the Partner function
    using WYT3 table . The table  Wyt3 has the plant field as empty for that particular Vendor.
    The BAPI is  using the plant to determine the partner roles .
    While in Txn ME21n the plant field is not used for determining the partner role .
    In txn Me21n once we change the vendor entered initially & then again re enter the  initial vendor  number
    then it behaves like BAPI & only display the single partner role .
    Kindly advice .
    Regards,
    Anurag Goel

    Hi All ,
    FYI
    We found the solution for  defaulting  partner role using   BAPI_PO_CREATE1,It is a customization issue .
    We have check the  Higher level indicator ( Search at higher level )  in the customization Txn OLME  Under Partner Determination -
    > Partner setting in Purchasing document -
    >Define partner schemas
    If this indicator is not set, the system only  transfer partner roles  that are maintained at plant level .
    Best regards,
    Anurag Goel .

  • Read the business role in the code

    Hi Gurus,
    My Requirement is to diffrenciate codes based on business role. More like below pseudo code
    if BRole1.
        code 1 will be executed
    elseif BRole2
       code 2 will be executed
    else.
       code 3 will be executed
    endif.
    Can you please let me know how to read the business role programatically in SAP CRM.
    Appreciate your help
    Regards
    Sudipto

    Hi Sudipto,
    Try to check here:
    Business Role of logged in user
    Kind regards,
    Garcia

  • Dinamicaly assign Worksets, Pages, iViews to a Role using the APIs ?

    Hi,
    Has someone built a Role via Webdynpro coding?
    Hope someone has done it and could help.
    Thanx in advanced!
    Kind Regards,
    Gerardo J

    Hi Shanti,
    thanx alot for the help! actually folowing documentation in the help.sap.com I found this:
    "PCD Roles: These are semantic objects that represent collections of content that can be assigned to a user.
    There is no public API for accessing these roles."
    here I paste the link
    http://help.sap.com/saphelp_nw70/helpdata/en/44/43863b2e641193e10000000a155369/frameset.htm
    I Guess then is no way to modify the Role via API to achieve this, or this is only on 7.0 and now it is posible on 7.1?
    Thanx in Advanced!
    Kind Regards,
    Gerardo J
    Edited by: Gerardo Jiménez on Jan 31, 2011 11:58 AM

  • BAPI for QP02 - to De-assign and Re-assign materials

    Hi Experts,
    Please let me know if there any BAPI available for QP02 transaction???
    My Requirement is :
    In transaction QP02, when going to the header screen, there is a button to assign materials to inspection plans. Once in that screen appears list (in my case, huge) of components. I have seen it is possible to delete them one by one by pressing the garbagge icon, but I cannnot find any way to select some of them and delete them all at once. I am speaking of deleting about 50 components of a list of 100, and that for each material in transaction QP02.
    My question is regarding the possibility of selecting all materials in a list that I want to remove and delete them leaving the list this the remainig components, all in one porcees instead of repeating it for 50 times. Is it possible to find a solution for this?
    Any inputs on this???
    Rgds,
    Lakshmiraj

    Any inputs plss???

Maybe you are looking for