BPM 11.1.1.5 Dynamic assignment of task to user

Hi,
I'm working with BPM 11.1.1.5 (without feature pack). I have a requirement to assign a task to a user dynamically, based on data that I pull from a DB query. If the task expires, I will assign it to another user once again based on a DB query.
I have not been able to find a way to do this. I have tried creating the Participant List "By Expression", where the expression is: /task:task/task:systemAttributes/task:assignees/task:id, where I have previously assigned a LDAP user id to a TaskExecutionData input variable. This does not work!
I've read a number of forum posts where people are trying to do this, but they are either not answered or answered inadequately.
I've read a number of posts where people talk about doing this using bpws:getVariableData() where the dynamic user list is stored in a variable. This would be great, if it worked for BPM as this is exactly what I'd like to do. However, this is a BPEL solution as far as I can see! I haven't been able to find a way to access a declared variable from the Expression Builder form in BPM.
Does anyone have a solution for this, please?
Any help would be greatly appreciated. Is this something that is easier to do in PS5?
Many thanks,
Brian.

Hi Brian,
Not sure if this is what you need, but to assign the BPM work item instance to a participant based on information read from a database table, one approach is to:
1. Read the table and return the userId to a process data object variable upstream of the Interactive activity.
2. Pass the variable with the user id into the Interactive activity's human task.
3. Open the human task, click the Assignment tab -> double click the performer icon in the center -> change the "Build a list of participants using" dropdown to "Names and Expressions" -> click the plus icon -> click "Add a User" -> under "Data Type" change the dropdown selection to "By Expression" -> click the "..." button under "Value" -> expand "task" -> expand "task:payload" -> select the variable that you set the user id to.
I think there is probably more to your question than this, but hopefully it's a start.
Dan

Similar Messages

  • Mass assignment of Task to User

    Hi gurus,
    In our project we have a requirement where user can select multiple tasks and assign all selected tasks to any oother user.
    Please guide me on how to achieve it?
    Thanks in advance,
    Amit

    hi Amit...
    are u talking abt the DynPage or the WebDynPro...???
    if Dynpage, there is no spl template for this...
    u can retrieve all the tasks and put them in a Table or a DefaultListModel or even in ListBox and then ....select some of the tasks....
    get the users' list in to a Dropdownlistbox...select the user ...assign ...
    that is all...
    hope i'm clear...and helpfull
    Regards,
    sudheer

  • 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.

  • OBPM 10g assigning approval tasks to a individual participant

    Hi,
    In Oracle BPM 10g, is it possible to assign approval tasks to a individual participant instead of assigning to all the participants within a role. A list of participants shall be provided to the initiator while creating the process instance. The initiator selects one of the participants and upon submission the task is assigned to only that selected participant.
    Can the selected participant set up "out of office" or vacation rule, so that the task is automatically assigned to some other participant in the same role.
    Thanks in advance

    This logic retrieves the list of participants in a certain role:
    role as Fuego.Lib.Role               
    parts as Fuego.Lib.Participant[]                         
    part as Fuego.Lib.Participant          
    role = Role.find(name : "Customer Service")
    parts = role.participantsNote that this returns an array of Participant objects and not just a list of their names or ids. Feel free to ask for help getting the list of names or ids if you need it.
    Once you've decided which participant you want to be assigned to the work item instance, you'd use logic like this to assign it to that specific participant.
    // this would make this participant the assigned one in every interactive
    //   activity everywhere downstream
    role.defaultParticipantForCurrentInstance = part
    // this simply assigns the work item instance to that person in the
    //  next interactive activity
    this.participant.next = partThere is an OOTB way to assign a replacement for a participant. Not available in Studio, but an administrator can set replacements in the Process Administrator conole.
    Dan

  • In human task, dynamically assign group doesn't work

    Oracle SOA 11.1.1.4
    My bpel process invokes a human task.
    On the human task Assignment tab, I assigned 3 users (by name), 1 group (by expression).
    The group is configured in LDAP
    When I tested the bpel process, I entered the group and other data required.
    From the worklist app, I see the task listed. It is assigned to the 3 users, but not the dynamically passed-in group.
    From the Audit trail, I saw all data I entered (include the group). Everything seems correct, but I still can’t make the dynamically-pass-group work.
    If I assign the group by name in human task, it works fine.
    The problem is: dynamically assign group doesn't work.
    Please kindly advice.

    Yes, it is possible assign a group as participant of some human task, passing the group name as parameter.
    I have tested just now.
    It works pretty well in SOA 11.1.1.4 (BPEL or BPM).
    Make sure add a data parameter in your human task definition and pass a valid group name to it.
    At the Assignment tab, in the participants' list, add a group, data type by expression, and set the value to the right xpath expression to the corresponding parameter.
    For example: /task:task/task:payload/task:group
    If it is not working look the SOA log files, probably you'll find some information about the error there. Maybe there is some problem with your jazn.com configuration.
    You can also test if there is something wrong related to the group name, trying to transfer some task to the same group by the worklist.

  • Dynamically assign value to a column in ALV LIST Display

    Hi all,
    How can I dynamically assign value to a column in ALV LIST Display without using classes and methods?
    Thanks,
    Ridhima

    Hi Vikranth,
    I am displaying one ALV list say with columns A and B.
    I have value in A but not in B. Now at runtime user selects one row, clicks on push button in application toolbar, then i have to display value in column B in the already displayed list.
    I searched and came to know it can be done with oops concept. but i am not using classes and methods.
    so how can i do this?
    Thanks,
    Ridhima.

  • How to dynamically assign Display Pattern using FormCalc in Adobe PDF Form

    I am using Adobe PDF Form Designer. I am trying to dynamically assign a display pattern like MM/DD/YYYY to the Field tab - Display Pattern property. May I know how to do that?
    I am using FormCalc scripting.

    hi,
    After placing the date field in layout from data view, u will get tabs like field,layout,border etc..
    In field tab under the edit pattern specify the pattern in which you want to display the date field.
    hope this works.
    Reward points if helpful.

  • Dynamically assigning field name and field value

    Hi all,
    logic:
    select field1 field2 from table into workarea.
    workarea-field1 will have value as 'MATNR' or 'BUKRS'  or  'KUNNR'  or............etc
    workarea-field1 will have values as '10000025' or  '2010'  or  '102536' or  ............etc
    Now i need to dynamically assign MATNR = 10000025
                                               or   BUKRS =2010
                                               or  KUNNR = 102536
    HOW CAN WE DO THIS.

    Hi,
    Use the ASSIGN COMPONENT statement.
    Regards,
    Ankur Parab

  • Regarding  dynamically assigning the where clause to select query

    hi,
      Please send the code regarding how to dynamically assign the where clause to select query.
    thanks in advance

    SELECT <fileds>
            INTO TABLE itab
            FROM dbase
            WHERE  condition.

  • Assigning Action to multiple users dynamically

    Hello,
    I have a GP Application wherein the user fills out a form which goes for approval to the Approver....the approver is determined using the 'Assign users to Process Role' Callable Object dynamically which works fine....now i want one more approver to get the same workitem in the worklist as the other....i tried to map this user to the same user identifier as done for the first user.....but it does not work.....how can i achieve this..?
    Any help would be highly appreciated..
    Regards,
    Anil

    Anil,
    Has i am not wrong are you trying to assigning a task to multiple users dynamilally?
    if so..
    Please Use parallel dynamic block and pass list of users to role.
    Reply me if you want more info.
    Regards,
    Rajesh

  • Assigning Multiple tasks in process dynamically

    Hello,
    Please help me out in solving following problem
    Scenario:
    Step 1: Query the DB get all the Products (Multiple rows).
    Step 2: For each Product merge the product information to a template, rendering it as PDF and Assigning it to a user(Assign Task Activity)
    With out waiting for the user action i would like to repeat step 2 so that i can assign all product information as different task dynamically
    Can any one please help meto achieve this?(PFA Process Design diagram)
    Thanks in advance
    Regards
    Rao

    This is more tricky than it sounds.
    You could use a gateway with one branch that goes to the User step and another branch that goes straight to the end of the gateway and set the gateway to No Wait.
    Then, from the end of the gateway object loop back to the start of the gateway so that it assigns it to the next person.
    In the next version of LiveCycle, you should be able to use the Mutli User Task operation to assign a task to multiple users in parallel.
    Jasmin

  • Dynamically assigning digital signature strategy

    Hi Experts,
      I have a requirement where I need to dynamically assign different signature strategy to document approval based on the number of approvers.
    In our case for the same document based on the level of changes number of approvers might be different ( 3 - 12). We are planning to achive this by allowing document owners to select the approver using a approval workflow
    I also know that there is a limition of 8 approver slots on the default signature strategy.
    Please advise what is the best strategy in this case.
    Thank You
    Regi

    Hi,
    You can refer Note 700495 for digital signatures.
    Thank You,
    Manoj

  • Dynamic assign in field symbols

    dynamic assign in field symbols

    Hi,
    DYNAMIC ASSIGN:
    If you do not know the name of the field that you want to assign to the field symbol when you write a program, you can use a dynamic ASSIGN statement:
    ASSIGN (<f>) TO <FS>.
    This statement assigns the field whose name is contained in the field <f> to the field symbol <FS>. You cannot use offset and length in a dynamic ASSIGN.
    At runtime, the system searches for the corresponding data object in the following order:
    If the ASSIGN statement is in a procedure, the system searches first in its local data.
    If it cannot find the object in the local data (or if the ASSIGN statement is not in a procedure), it then looks in the local data of the program.
    If the field does not exist in the global data of the program, the system looks in the table work areas declared with the TABLES statement in the main program of the current program group. A program group consists of a main program and all of the programs that are loaded into the same internal session as a result of other program calls.
    If the search is successful and a field can be assigned to the field symbol, SY-SUBRC is set to 0. Otherwise, it is set to 4, and the field symbol remains unchanged. For security reasons, you should always check the value of SY-SUBRC after a dynamic ASSIGN to prevent the field symbol pointing to the wrong area.
    Searching for the field in this way slows down the program. You should therefore only use the dynamic ASSIGN statement when absolutely necessary. If you know when you create the program that you want to assign a table work area to the field symbol, you can also use the following variant of the dynamic ASSIGN statement:
    ASSIGN TABLE FIELD (<f>) TO <FS>.
    The system then only searches within the table work areas in the main program of the current program group for the data object that is to be assigned to the field symbol. This addition is forbidden in ABAP Objects, since the latter does not support table work areas.
    Suppose we have three programs. The main program:
    REPORT demo_field_symbols_dynami_as_1.
    TABLES sbook.
    sbook-fldate = sy-datum.
    PERFORM form1 IN PROGRAM demo_form1.
    The other two programs are:
    REPORT demo_form1.
    FORM form1.
      PERFORM form2 IN PROGRAM demo_form2.
    ENDFORM.
    and
    REPORT demo_form2.
    FORM form2.
      DATA name(20) TYPE c VALUE 'SBOOK-FLDATE'.
    FIELD-SYMBOLS <fs> TYPE ANY.
      ASSIGN (name) TO <fs>.
      IF sy-subrc EQ 0.
        WRITE / <fs>.
    ENDIF.
    ENDFORM.
    The output looks something like this:
    02.06.1998
    The program group in the internal session now consists of the programs DEMO, MYFORMS1 and MYFORMS2. The field symbol <FS> is defined in MYFORMS2. After the dynamic ASSIGN statement, it points to the component FLDATE of the table work area SBOOK declared in the main program DEMO.
    REPORT demo_field_symbols_dynami_as_2 .
    TABLES sbook.
    DATA: name1(20) TYPE c VALUE 'SBOOK-FLDATE',
          name2(20) TYPE c VALUE 'NAME1'.
    FIELD-SYMBOLS <fs> TYPE ANY.
    ASSIGN TABLE FIELD (name1) TO <fs>.
    WRITE: / 'SY-SUBRC:', sy-subrc.
    ASSIGN TABLE FIELD (name2) TO <fs>.
    WRITE: / 'SY-SUBRC:', sy-subrc.
    The output is:
    SY-SUBRC:      0
    SY-SUBRC:      4
    In the first ASSIGN statement, the system finds the component FLDATE of the table work area SBOOK and SY-SUBRC is set to 0. In the second ASSIGN statement, the system does not find the field NAME1 because it is declared by the DATA statement and not by the TABLES statement. In this case, SY-SUBRC is set to 4.
    Reference: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb38d5358411d1829f0000e829fbfe/content.htm
    reward points if helpful.
    Regards,
    Ramya

  • Error message "ABAP/4 error during dynamic assign" on Contact Log creation.

    Hi,
    We are getting an error message "ABAP/4 error during dynamic assign beyond program bounds" displayed while creating contact log using transaction "BCT0".
    Please suggest what can be the cause of the error message and how we can remove this.
    Regards,
    Ankur

    Dear Andrea,
    The problem should be caused by obsolete entry in table TFAWX.
    Please use the following report for deleting this entry (test before in your TEST System) :
    report ztfawx_delete.
    tables tfawx.
    select single * from tfawx where prog = 'SAPLBAS0'
                                and bldgr = '0110'
                                and mnum  = 23
                                and bfeld = '$GENERAL'.
    if sy-subrc = 0.
      delete tfawx.
    endif.
    Buona Giornata
    Mauro

  • GP: Dynamically assignment of users

    Hello,
    i'm a newbie and i have the following question:
    Can i dynamically assign the user of the next step in a guided procedure?
    The initiator of my GP passes some data to a web service. The web service determines on the basis of the data the user of the next step in my GP. Is this possible? And how can i achieve this scenario?
    Thanks in advance and best regard,
    Matthias

    Hi Matthias,
    Unfortunately, the GP external service callable object only works for RFCs. You cannot use it for a Web Service.
    Therefore, I would propose the following solution. You can import a Web Service as an external service in CAF (using the Composite Application Services perspective in the Developer Studio). Then you can use the external service from a CAF application service. The application service can already be exposed as a callable object, and you can take the user ID as an output. Then you can use the predefined callable object Assign Users to Process Role, and map the application service output to its input. To enable the assignment of the relevant user to the next action, you must consolidate the role created for the Assign Users action to the role created for the next action, and set the type of the new role to Runtime Defined. Then, at runtime the Assign Users object is executed in the background and the user is assigned to execute the next action.
    You can find how-to guides describing how to import a Web Service in CAF and how to integrate it further into CAF in the https://www.sdn.sap.com/irj/sdn/developerareas/platform?rid=/webcontent/uuid/d8dbd703-0801-0010-c9bf-c04bc52f562f">caf [original link is broken] [original link is broken] (see tutorial N.81).
    Hope this helps a bit.
    Regards,
    Zornitsa

Maybe you are looking for