Getting Roles & Participants Dynamically in BPM

Hi,
I am trying to get the roles and particiants from external resources such as LDAP. Is there aby way to connect BPM to LDAP and retrieve the users & roles.
Thanks,
Sanjay
Edited by: Sanjay_21 on Aug 24, 2009 10:47 AM

Sanjay,
You can do this in BPM Enterprise. You have to configure a "hybrid" directory. The default is to store all the information of your organization in a database. With a hybrid configuration this will come from an LDAP.
You can read a bit about it in the docs:
http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/admin_guide/modules/dir_service/c_Hybrid_Directory_Service.html
http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/admin_guide/modules/dir_service/t_Config_Hybrid_Dir_Service.html
Inside the directory $BPM_HOME/conf you can find some configuration files for integrating with an LDAP:
generic_sunone.conf
generic_oracleldap.conf
Here you can specify how to find the participants and groups in your LDAP.
And then in your code you would search for them in the same way as always:
Participant.find("p1")
Role.find("r1")

Similar Messages

  • Participant Assignment to BPM Process Role

    Hi everyone ;
    I need to custom application for participant assignment to BPM process role. You know, this operation has been made under Business Process Workspace > Administration Areas > Organization > Roles But this page is not useful for Administrator user. I want to develop an application that it makes set Participant to BPM App Role. But, i haven't any API.
    Firstly, is this possible? And than, how can i implement it?
    Thanks.

    Is restart of the engine server on which ProcessP deployed is the only solution since the error messages shows up as 'Process Execution Engine has not re-synchronized with the Directory Service. '

  • Can I get the participants of the role of some activity using PAPI?

    Hi all,
    Can I get all participants who have the role of one activity using PAPI? how?
    thanks and regards.

    Hello,
    I have the same problem, how to get the participants of specific role using PAPI ?
    Thanks

  • Creation of Roles/Participants in BPM programmatically

    Hi ,
    I have the following requirement :
    I am creating users in Weblogic Portal using Portal API.So when i create the users at the same time i need to trigger a call to create the rol/participant information in ALBPM.
    Is there any API, to do so.Could anyone help me out in this ..its urgent!!!!
    Thanks in advance
    Regards,
    Shiny

    Use the classes located in Fuego.Fdi,
    specifically for creating a participant use:
    Fuego.Fdi.DirHumanParticipant , method create

  • Getting Roles

    Dear Friends..
    How I can get from BPM Studio all roles?
    I wrote this code:
    Role oRoles;
    oRoles = new Role("Client");
    for (Participant element : oRoles.participants) {
    // some code...
    With this code, I get Role's participants , but how I can get Roles?
    I hope any suggestions.
    Best regards,
    Danny

    Hi Danny,
    Even though it's PAPI, you can run this logic from a method inside your process since it's using the Fuego.Papi module in the catalog.
    This gets all the roles in the processes deployed. Another approach would be to pass this method an array with just the names of the specific processes you want to retrieve the roles for.
    ps as ProcessService
    rolesInAllProcesses as String[]
    do
    connectTo(ps, url : Fuego.Server.directoryURL, user : "papiUser", password : "papiUser")
    for each prc in ps.processes do
        for each r in prc.roles do
            // don't add the same role twice
             if r !in rolesInAllProcesses then
                logMessage "found: " + r
                rolesInAllProcesses[] = r
             end
        end
    end
    // sort the pup
    sort rolesInAllProcesses
    on exit
         disconnectFrom ps
    endHope this helps,
    Dan

  • Albpm Getting the participant's info

    Hi,
    In albpm 6.0, custom jsp.
    I want to get the participant's info to insert into DB in every activity.(including creation activity)
    In the creation, it is a screen flow, how can I get the creator's info in the screen flow(including his organization info)?
    And In every activity, how can I get the participant's info and his organization info?
    Thanks.

    Hi,
    Inside of a Screenflow for a Global Creation, Interactive or Grab activity there is always a Participant (note the upper case P) object to get the current particpant's information. This means that you do not have to pass in the predefined "participant" variable into or out of the argument mapping for a screenflow associated with Global Creation, Interactive or Grab activities.
    You can see all of the attributes for this object if you look in the "Project Navigator" -> Catalog -> Fuego -> Lib -> Participant. This object's type includes the "organizationalUnit", "name" and "id" attributes you are probably looking for.
    If you wanted to pass this information to a JSP used inside the Screenflow:
    1. You'd need to create a BPM Object (e.g. "MyInfoForJsp") in your catalog that has attributes like "ou", "fullName" and "identifier"
    2. Add an instance variable in your screenflow with this BPM Object's type with no input or output argument mapping for this variable (e.g. "myInfoForJsp" instance variable of the type "MyInfoForJsp").
    3. Add an Automatic task as the first step in the Screenflow to set the attributes of the instance variable using logic like this:
    <pre class="jive-pre">myInfoForJsp.ou = Participant.organizationalUnit
    myInfoForJsp.fullName = Participant.name
    myInfoForJsp.identfier = Participant.id</pre>
    4. You'd then add an "Interactive Component Call" task in your screenflow. This is where you'd tell the task to call your JSP and where you would pass in the instance variable ("myInfoForJsp" in this example) with the participant's information.
    Hope this helps,
    Dan

  • BPM roles not avaialable in BPM workspace

    Hi ,
    I am facing an issue with the BPM workspace. I deployed my BPM process in my SOA server. But I am not able to view the roles defined in my BPM application in BPM workspace. I can muanuaaly add the role under Application Roles in Fusion Middleware control by adding <composite_name>.<role_name> but I don't want to do this. I want the roles to be avaialable automatically when I deploy my BPM application. Can you please suggest me the cause of this issue and a probable solution?
    Thanks in advance!

    Hi Roshni,
    How did u added the roles .
    Generally You/Admin has to create the Applications Roles/ Users, Groups before developing the BPM Process.
    Once U created, For Human Activity/Task you will be assigning the roles like Manager, Supervisor, etc.
    Then you need to login to the BPM Workspace using same role and password so that you can Complete the tasks assigned to particular role...
    Hope this might help you..
    Regards,
    Pavan

  • Error in reciever file adapter , where i am getting file name dynamically

    hi all,
    error in reciever file adapter , where i am getting file name dynamically, please help me in this isssue , i am trying for a long time
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)'

    i am getting new error
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    this is my strcuture
    and i have changed my structure
    <HEADER>
    <ADDRESS1/>
    <ADDRESS2/>
    <ADDRESS3/>
    <ADDRESS4/>
    </HEADER>
    <HEADER_GST>
    <TAX1/>
    <TAX2/>
    <TAX3/>
    </HEADER_GST>
    <LINE>
    <QTY/>
    <UOM/>
    <UNIT_AMT/>
    <CHARGE_TO_DT/>
    </LINE>
    <FILENAME>
         <FILENAME/>
    </FILENAME>
    i have given the recordset structure as
    HEADER,HEADER_GST,LINE,FILE

  • Has anyone managed to get a 3TB dynamic disk on Windows 2003 Server?

    I just got a pair of new 3TB disks that I wanted to put on my Windows 2003 server enterprise x64 system, SP2, all updates installed.
    When I first tried to convert to dynamic, I got the error "The operation did not complete" as described in this KB article
    http://support.microsoft.com/kb/826823
    It says there is a patch, but there is not one for x64, just x86 and ia64
    I found another technet discussion here:  https://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/cb62238c-b3d0-4989-b45a-ae6de6701a7b?stoAI=10
    However its best suggestion is to use a product from AOMIE, but I tried that and it didn't even recognize the disk.  It also suggests that one needs a better version of diskpart.exe and to try to the 32 bit version.  Anyone have any experience
    with that?
    I also tried creating moving the disk to Windows 7 x64, making it dynamic there, but when I move the disk back to 2K3 it does not recognize it, and goes back to a 2TB partition.  I also saw something about needing a 512 block size for 2K3, but W7 does
    not allow anything smaller than 1K.

    Hi,
    During my research, if found the following artcle which also mentioned a 3TB disk should be supported in Windows 2003 SP1:
    Has anyone managed to get a 3TB dynamic disk on Windows 2003 Server?
    http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/a720ae72-0c04-44dd-94c0-2e6aecce530e
    So I contact the author about this issue. He said it could be caused if your hard disk is a 512e drive as the 3TB drives on the market today are normally 512e drives.
    However manufacturers stopping identifying this, and if the controller is old, FSUtil will not able to identify a 512 drive but recognized it as a normal 512n drive.
    Thus please provide the drive model so we could search on manufacturer's website for exact information.
    Also please paste the screenshot in your reply which Satish mentioned if available.
    In addition, here is an article Robert provided:
    http://www.windowsitpro.com/article/what-would-microsoft-support-do/support-advanced-format-hard-drives-141584

  • Getting column headers dynamically from input parameters in alv.

    Hi all,
    I am new to abap, can any one help me in getting column header dynamically through parameters in alv ?
    Eg:-
    i Have parametars for days field ,
    user inputs days as 10 20 30 40.
    Now I want to display in alv column headers as:-
    1st column-  'FROM 0 TO 10'
    2nd column- 'FROM 10 TO 20 '
    3rd column- 'FROM 20 TO 30'
    4th column- 'FROM 30 TO 40'
    5th column- 'FROM 40 TO 50'
    6th column- 'FROM 50 TO 60'
    thanks in advance........

    Check this code snippet:
    Step 1: Create a dynamic table based on the input in the selection screen.
    TYPE-POOLS: abap.
    DATA:
      lr_structdescr    TYPE REF TO cl_abap_structdescr,
      lr_tabledescr     TYPE REF TO cl_abap_tabledescr,
      lr_datadescr      TYPE REF TO cl_abap_datadescr,
      lt_components     TYPE abap_component_tab,
      ls_component      TYPE abap_componentdescr,
      lr_wa             TYPE REF TO data,
      lr_tab            TYPE REF TO data.
    DATA: lv_index TYPE sy-index.
    DATA: lv_index_num(5) TYPE n.
    DATA: lv_index_char(5) TYPE c,
          lv_iter TYPE i,
          lv_low TYPE numc2 VALUE 0,
          lv_high TYPE numc2 VALUE 10.
    DATA: lr_alv TYPE REF TO cl_salv_table.
    FIELD-SYMBOLS: <fs_field> TYPE ANY.
    FIELD-SYMBOLS: <fs_wa> TYPE ANY.
    FIELD-SYMBOLS: <fs_tab> TYPE table.
    PARAMETERS p_numcol(2) TYPE n DEFAULT 50.
    START-OF-SELECTION.
      lv_iter = p_numcol DIV 10.
      DO lv_iter TIMES.
        IF sy-index > 1.
          lv_low = lv_low + 10.
          lv_high = lv_high + 10.
        ENDIF.
        lv_index_num = sy-index.
        lv_index_char = lv_index_num.
        CONCATENATE 'FROM' lv_low 'TO' lv_high INTO ls_component-name
        SEPARATED BY '_'.
        ls_component-type =
        cl_abap_elemdescr=>get_p( p_length = 10 p_decimals = 2 ).
        INSERT ls_component INTO TABLE lt_components.
      ENDDO.
    * get structure descriptor -> lr_STRUCTDESCR
      lr_structdescr
      = cl_abap_structdescr=>create( p_components = lt_components
                                     p_strict = space ).
    * create work area of structure lr_STRUCTDESCR -> lr_WA
      CREATE DATA lr_wa TYPE HANDLE lr_structdescr.
      ASSIGN lr_wa->* TO <fs_wa>.
      lr_datadescr = lr_structdescr.
      lr_tabledescr
      = cl_abap_tabledescr=>create( lr_datadescr ).
    * Create dynamic internal table
      CREATE DATA lr_tab TYPE HANDLE lr_tabledescr.
      ASSIGN lr_tab->* TO <fs_tab>.
    * Populate the internal table
      DO 10 TIMES.
        DO.
          lv_index = sy-index.
          ASSIGN COMPONENT  lv_index  OF STRUCTURE <fs_wa> TO <fs_field>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          <fs_field> = sy-index.
        ENDDO.
        APPEND <fs_wa> TO <fs_tab>.
      ENDDO.

  • Is it possible for an AIR application to get the content dynamically from server in Android?

    To give you people the context we will be developing Hybrid application using HTML5 and PhoneGap which will be published on Android and iOS platforms.
    I want to know if an AIR application in android can get the content dynamically from the server. If yes, then how part comes into picture?
    PS:- I dont have any knowledge about AIR applications and i am an Android developer and exploring this integration of AIR on android.

    Yes, an AIR app on android (or iOS) can communicate with a server in several ways.
    Search 'adobe air zend amf' on the web to see some examples.

  • Can we get multiple graphs dynamically in oracle apex?

    Can we get multiple graphs dynamically in a page in oracle apex?

    Vaishalini wrote:
    Thank You riedelme and Howard.
    Below is the example, I need to dynamically displays graphs with content (somewhat) dynamically selected for client from the select list.
    Example :-
    Lets say client A contains 5 contracts as A1, A2, A3, A4, A5.
    And Client B contains 3 contracts as B1 ,B2, B3.
    created a graph for contracts on sum(unique_submissions) and sum(total_submissions).
    Requirement is :-
    When I select Client A , then the page should show 5 individual graphs based on client A contracts in same page(as client A has 5 contracts).
    Similarly when select client B , the same page should show 3 graphs (as client B has 3 contracts).
    Please let me know if you understood the example, what I was trying to explain to you (I hope)and let me know if you need further more information.
    Thanks.It sounds like you need to use Howard's idea of conditional region display. When you select client A display client A graphs, and when you select client B display those graphs. Read about conditional region display in the documentation and post back here if you have more questions

  • How can I get the participant password?

    Would someone please help me and get the participant password in ALBPM 5.7 or 6.0 enterprise just like get the participant ID (Participant.id).:-)

    The password is not stored in plaintext anywhere. You cannot read it.
    On Sun, 25 Nov 2007 21:56:50 -0300, tie lewis wrote:
    Would someone please help me and get the participant password in ALBPM
    5.7 or 6.0 enterprise just like get the participant ID
    (Participant.id).:-)--
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

  • How can I get roles by BEA API

    I use some bea api and create one role name is "test",I add one user and one group in it.
    but I input resourceId is "test",no results display,whether I use wrong?please tell me how can I get roles by bea api
    some code ,for example
    public RoleProviderDescription getRoleDefaultProvider() throws ProviderMgmtException
              RoleProviderDescription roleProviderDescription = RoleSecurityMgmtHelper.getDefaultProvider();
              return roleProviderDescription;
    public RoleManagerProxy getRoleManagerProxy()
              RoleManagerProxy roleManagerProxy = new RoleManagerProxy(getRoleDefaultProvider());
              return roleManagerProxy;
    public List<String> getRoles(String resourceId)
              String[] roles = getRoleManagerProxy().listRolesForResource(resourceId);
              List<String> list = new ArrayList<String>(roles.length);
              for(int i=0; i<roles.length; i++)
                   list.add(i, roles);
              return list;

    *{color:#0000ff}Alternatively you can try this one too:{color}*
    public static Object[][] listRolesForResource(int aResourceScope,String anEntAppName,String aWebAppName,String aResourceId)
    {color:#800000}
    Other than this if you are trying to access the roles within a portal context there is a control called DelegatedRolePolicyManagerControlFacade (com.bea.portal.tools.entitlements.controls.DelegatedRolePolicyManagerControlFacade) which can give you all the roles:
    Here is the sample code (within a pageflow action):
    @Control
    private DelegatedRolePolicyManagerControlFacade rolePolicyManagerCtrl;
    ResourceContext context = ResourceContext.createResourceContext(request, false);
    SortablePagedResult&lt;String&gt; result = rolePolicyManagerCtrl.getScopedRoles(null, null, null, false, -1, context);{color}
    Edited by: user5833069 on Jan 7, 2009 10:08 AM
    Edited by: user5833069 on Jan 7, 2009 11:38 AM

  • Role in bpm when the role is dynamic (manager of the user)

    Hi,
    Regarding the bpm I face a case as below:
    I have a bpm which in one of its step a human task would be generated for the Manager of the user that initiate this process.
    Assume that I kept the username of the initiator on one of my variable how can I set the user's manager role?
    as in the bpm I just can set the role and in the mapping of bpm role to LDAP role I can not use the xpath or dynamic thin I can just can select the LDAP user or group.
    Thanks

    Try this:
    Go to the "XXX.task" file of your user screen, you can find it in the structure tree on the left panel inside the "SOA Content" directory of your main project.
    You will see a serie of tabs in the left side of the new window. Go to "Assignment".
    There you will see a default.DefaultPerformer inside a box. Click on it and the on the pencil icon to edit it.
    In the new window you can add the participants using the "by name" or the "by expression" option. If you have the username stored in a variable, you can use it here to dynamically assign the task.
    Hope this helps.
    Let me know if this doesnt work.

Maybe you are looking for

  • HT1947 Apple remote app under ios7 won't rotate

    After the ios7 update my remote app doesn't work in landscape on my ipad 2. Anyone else experienced this?

  • CSS - some visited links always same color while others change?

    i am using CSS and links like: a { color: #00e; } a:visited { color: #551a8b; } a:hover { color: #06e; } a:focus { outline: thin dotted; } all fine here but I have main menu navigation where i want the VISITED link color to always be the same - even

  • Better than DVD Studio Pro?

    I decided the DVD Studio (although great) is limiting and I'm looking for an upgrade. Currently I'm looking at Sonic Scenarist which looks very comprehensive. But is there anything else of the same quality? Thanks for any help Tim

  • Incorrect Used Space Canvio 1.0 TB

    I've had the Canvio for about 2 or 3 weeks when I noticed that my computer displays that 965 GB's are used and only 500 some bytes remain.  when totalling up the individual folder capacities on the Canvio, only about 320 GB's are used. Anyone else ha

  • CN01 assign Material Component to internal activity

    Hello gurus; In transaction CN01 / CN02 can I assign only one Material Component to internal activity without Bill of Material (BOM)? It is possible? How can i do? Best regards, Mariano