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

Similar Messages

  • Dynamical assignment of user to task

    Hi all,
    Iu2019m trying to create a process involving two Users.
    The first User enters data and the second has to validate them.
    If the data entered by the first User is not valid the input task has to be reassigned to him.
    In the output mapping of my Human Activity I found the "Potential Owners" Node.
    Is it possible to map that User to my context-attribute and in return map that attribute to my task as a Potential Owner?
    What would you recommend?
    Regards,
    Bastian

    Hi Michael,
    Thanks for your reply.
    Your description sounds good.
    In the end my Process will be started via Web Service from a Web Dynpro.
    Have you tried that before?
    I guess I have to obtain the portal user which is using the Web Dynpro at runtime and use it as an input parameter while calling the Web Service.
    Inside the process I use that user as a potential owner.
    Would that be possible?
    Regards,
    Bastian

  • GP: Assigning multiple users on one action

    There is a need to appoint more than one user to one action. If one user is not answered, the process should not proceed to the next step.

    Refer this.
    /people/berndt.woerner/blog/2007/09/19/different-ways-to-model-dynamical-assignment-of-user-to-process-roles-using-composition-tool-guided-procedures--part-1
    If you implement by parallel dynamic block way one action is assigned to multple users with different instances.
    As it is in parallel dynamic block untill all the users did not complete the their own action, process will not move fwd. hemce this will solve your problem.
    Regards,
    Pratik khandelwal
    Edited by: Pratik Khandelwal on May 19, 2009 9:22 AM

  • Assigning database dynamically reportwise to users in Universe

    Hi,
       In our single SQL Server, we have different databases having same schema but different data in it.
       Each individual user is having its own database in this SQL Server.
       Now, what we are trying to implement using Business Objects XI 3.0 is that each time the different different users loggs into the universe, so depending upon the username/loginname can we dynamically assign database to respective user ?
        The purpose behind implementing this is once the user looggs in and request to execute report then only data related to him i.e from his database  will come
    for example if we have sqlserver  abc
    it is having suppose three database a,b,c in it  all having the similar schema but data is different and now there are three users -user1,user2,user3 are attached to the database a,b,c respectively
    and we have single universe for each user....
    Now we want that if user1 logs in then database connection that is passed to the universe will be a

    Hi Erik,
    The PDB has built-in functionality to assign users to roles, so you actually do not need the backround action for user assignments.
    What you need to do in the PDB is:
    - Integrate a "normal" block - e.g. a sequential block in it that holds the display order details actions.
    - In this block, for the role Processor of Action3 you must set the indicator Filled from Context Parameter, and select the input parameter, which will be mapped to the user ID from the first action.
    - The output parameters of the first action must be in a structure exactly the same as the multiline input structure in the PDB, so that you can map the two structures.
    The expected behaviour is that for each user ID a separate instance of the action in the PDB is created at runtime.
    You can also have a look at the following <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/68/6182410349213ce10000000a1550b0/frameset.htm">documentation</a> (follow the link for Parallel Dynamic).
    Hope this helps.
    Zornitsa

  • Dynamically Assigning Users

    Hi,
    I am trying to dynamically assign users within my process and need some guidance with it. The following two steps briefly describe what I am trying to achieve
    1. A user starts the process by filling in data into the PDF and completes the task.
    2. Based on the information filled in by the first user, I have to determine who the user for the next task is going to be and then assign the task to the user accordingly.
    I do not have the option of using multiple assign task operations and then setting the logic within the route evaluation, as there are way too many users that can be assigned for the second task ( there are more the 50 possible users from which the second user has to be selected )
    I am fairly new to Livecycle and from the options that I have seen so far, here are few questions that I need some help with
    1. The only option within the Assign Task operation that lets you assign the user dynamically is by using an XPath expression. If I were to use this, should I be embedding the logic within the form itself and then use the XPath expression to find the user by dynamically updating the form after the first user completes the task?
    2. Is there another approach to achieve this other than having the logic for selecting the user defined in the form itself? I believe embedding the logic in the form might not be a good idea as it can have performance implications and also having user information in the form itself doesnt seem right.
    3. Is there an operation that I could use, which would contain the logic that I would need to determine the next user and then assign the task to the user based on the result of the operation?
    I am hoping someone would have definitely run into this situation before so any suggestions/thoughts will be appreciated.
    Thanks,
    Varma

    "1. The only option within the Assign Task operation that lets you assign the user dynamically is by using an XPath expression."
    Yes
    "If I were to use this, should I be embedding the logic within the form itself and then use the XPath expression to find the user by dynamically updating the form after the first user completes the task?"
    I depends. If you can get to it server side, it woulb probably better. If you need to make a change to something, you don't want to change the form.
    "Is there another approach to achieve this other than having the logic for selecting the user defined in the form itself?"
    I'm not sure where the logic for the next user is located, but you could make a database or web service call from the process to get the next user instead.
    "I believe embedding the logic in the form might not be a good idea as it can have performance implications and also having user information in the form itself doesn't seem right."
    I agree.
    "Is there an operation that I could use, which would contain the logic that I would need to determine the next user and then assign the task to the user based on the result of the operation?"
    Again, I need a bit more info as to where the info (logic) is located.
    Jasmin

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

  • 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 email submission target based on form content

    We need to be able to assign the email target on a given form dynamically based on user selection out of a pre-defined set - drop-down.  Currently, you can only target the submissions to an email manually entered into the email field or have a separate form for each unique email submission target.
    We have a branch-office model company and each office interacting with a given form is going to need some things on that form to change based on which office the person filling out the form is with.
    Thanks.

    Thanks Randy.
    Say we had an Agent Sales Information Form online in our intranet/portal - embeded, and it was visable by 20 branch offices.  When a user fills out the form it needs to go to a single central office person as well as the administrative assistant and manager in the specific branch office that the user (form filler) is based out of.
    Example:
    Agent Sales Information Form
    --> user selects 'I'm with Office A' from the drop-down menu --> form needs to go to: Central Office, Admin Assistant in Office A, Manager in Office A
    --> user selects 'I'm with Office B' from the drop-down menu --> form needs to go to: Central Office, Admin Assistant in Office B, Manager in Office B
    In FormsCentral I can put an email field on the form and direct the form submission to that email address or I can share a given form with a pre-defined set of people.  What I can't do is have a single form with a drop-down menu for which branch office that user (form filler) is from and change the people the form submits to based on that choice.  Having the users manually enter the email addresses of the people the form needs to be submitted to is a deal breaker.
    While we're at it, other things on my list for an embeddable paperless forms solution:
    - user can print the form -- automatically on submission or by 'print button' on the form
    - user can download pdf copy of the form
    - user can save a form for later completion (across browser sessions)
    - upload pictures and have them display on the form (not just as attachments)
    - API functionality to allow fields to be auto-populated with data from another system (eliminating the office selection drop-down menu in this example -- our portal knows what office the logged-in user is from and can tell the form if it would listen )
    Thanks Randy.  I appreciate your taking a look at this for me. 

  • BI analysis authorisations direct assign to user in RSECADMIN

    Hello,
    In RSECADMIN it is possible to directly assign the 'analysis authorisations' to user-id's
    It is also possible to assign the 'analysis authorisations'  to a role via the authorisation object S_RS_AUTH
    Can somebody tell me
    -    what are the pros and cons of directly assigning the analysis autorisations to the users in the RSECADMIN ?
    -    In which situation is direct assigning in RSECADMIN used ?
    -     IS dirtectly assigning to users in RSECADMIN in a production environment critical?
    -     what does SAP propose: directly assigning in analysis authorisations our via a role
    In our case we have the situation of
           BI system with a large number of analysis authorisations. The values of the analysis authorisations should be  
           maintainable in production environment.
           We have also to take in mind:
                              -  Roles are added to users via CUA ( RSECADMIN is not maintainable via CUA)
                              -  Business Objects is coming. So set up the authorisations that they can be used for Business Objects
                              -  Flexible ( new autorisation relevant info Objects)  should be easy adeptable.
           What we want to use is
                                     - assigning analysis authorisations via a single role ( in a composite ) to the user
                                     -  a variable in the analysis authorisations as field value  of a characteristic. In that case the values can be  
                                        assigned dynamically in production.
                                       the data access role has the link to the analysis autorisations in the RSECADMIN.
                                      this analysis authorisation contains variables instead of a fixed field value.
                                      The values of the variables are maintained in a table in a production environment
             Is using directly assigning analysis authorisations to users in the RSECADMIN in  the production environment an  alternative  ? 
        Thanks for your answers
        With Kind Regards,
        Vincent
    Edited by: Vincent Willems on Apr 7, 2011 10:37 AM

    Hello Vincent,
    My way of working is to follow the structure you have in the providing systems. If you have created a role for a production employee then try to translate the roles for the production analysis the same way in BI. You can use the s_rs_auth object. In HR you can use structural authorizations, you can use some programs to set the structural authorizations in BI and that will be done by creating an analysis object and add this to the user involved. Also updates from structural authorizations will be done automatically by these programs. I should not add your own objects to single users, that is a lot of maintenance you do not want. Use in BI the same concept as in the providing systems, it is more clear for anyone who has to work with it.
    Have fun
    Bye
    Jan van Roest
    PS. Did you solve your problem? If so please close your question
    Edited by: J. van Roest on Jul 7, 2011 12:51 PM

  • Dynamic list of user(s) in Human task activity.

    Hello Friends,
    Warm Greetings!!!
    Here is my query:-
    Can we have dynamic list of user(s) in human task for the same role. Request will flow to executive but based on some parameter it needs to go to different executives and this would be checked at run time.
    Please provide some clue or pointers for the same.
    PK

    ===========
    Assign tasks dynamically
    You can assign users, groups, and application roles dynamically using XPath expressions. These expressions enable you to dynamically determine the task participants at runtime. For example, you may have a business requirement to create a dynamic list of task approvers specified in a payload variable. The XPath expression can resolve to zero or more XML nodes. Each node value can be either of the following:
    Ref- http://docs.oracle.com/cd/E14571_01/integration.1111/e10224/bp_introhwf.htm
    ==============
    Either You can put a Xpath expression on Owner (open Human task from composite and see the General tab ) or you can have rule based assignment for users .
    Also in Xpath - Identity related functions can be found under - Identity Service Functions (from Functions drop down)
    Regards
    Rupesh Somani

  • Routing  a human task while invalid dynamic assignment

    hi,
    we hav a confusion while using route process in human task.
    In our case when an invalid user is dynamically assigned to BPEL ,an Alert is generated for the jcooper user .As we have set "overrride default exception management" for jcooper user in adavance setting of .task file.
    When jcooper user route the task to any other user say jstein,the state of the task of jcooper is completed and also the BPEL process is completed.But in the worklist of jstein no task is shown .
    What we think is,BPEL process should not be get completed when jcooper user route the task but it should get complete when jstein act on the task.
    Regards,
    Ritesh/Nitin

    Hi
    Try to make the <messageAttribute name="ASSIGNMENT" attributeType="SIMPLE_TYPE"
    type="xsd:string" updatable="false"/>
    to
    <messageAttribute name="ASSIGNMENT" attributeType="SIMPLE_TYPE"
    type="xsd:string" updatable="true"/>

  • Runtime assignment of user to task

    Hi
    I am using getPrincipal(principalId) to dynamically assign user to a task.
    Eventhough the BPM context is getting populated with the correct uniqueId of the user, the task is not getting assigned to that user. Here is the exception I am facing in CE 7.2 SP3.
    System exception 
    [EXCEPTION]
    javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/tcbpemhimumear, BC-BMT-BPM-DSK) Exception raised from invocation of public commonj.sdo.DataObject com.sap.bpem.um.functions.GetPrincipalFunctionImpl.invokeSdo(commonj.sdo.DataObject,com.sap.glx.mapping.execution.api.invoker.SdoInvoker$InvocationContext) method on bean instance com.sap.bpem.um.functions.bean.GetPrincipalFunctionBean@886089 for bean sap.com/tcbpemhimumearannotation|sap.comtcbpemhimum~ejb.jarannotation|GetPrincipalFunctionBean in application sap.com/tcbpemhimumear.; nested exception is: java.lang.IllegalArgumentException: SourceDO must be populated
    java.lang.IllegalArgumentException: SourceDO must be populated
    at com.sap.bpem.um.functions.GetPrincipalFunctionImpl.invokeSdo(GetPrincipalFunctionImpl.java:121)
    at sun.reflect.GeneratedMethodAccessor1184.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    Am I missing any step? Can someone advice please.
    Thanks
    Vidyadhar

    Hi Vidyadhar,
    Ensure that the input/output mappings are correct and also ensure that you have selected the radio button for 'Use an expression' under Task > Roles.
    Hope this helps!!
    Regards,
    Arafat

  • Dynamic Assignment

    Hi all,
    I have created a BPEL process, using User Task Activity, via Sequential Workflow Pattern.
    I have used the wizard as desired and at assignment policy i have chosen to use "dynamic assignment using xpath expression". Although this seems like dynamic assignment it pushes me to choose even if the assignees will be users or groups. What I need here is to assign task to both users and groups together a mixture of both. when i look from BPEL process manager Audit Tab I should be observing (element of <RoutingVar1>)
    <approvers>groups("Aaa"),user("Mmm"),users("bbb")</approvers>
    how can manipulate "setRoutingPolicy" Assign activity.
    I am a new bee with XPath expression.
    Thanks for all.

    Your question is a bit difficult to understand. Please elaborate.

  • How to assign a user to a variable?

    for example:
    user name:*scott*
    under this user there is a table called employee.
    select * from scott.employee;(Normal view)
    i want to assign this user scott to variable a and view the table as
    select * from a.employee;
    Is it possible to assign a user to variable?

    skud wrote:
    Is it possible to assign a user to variable?What variable are you talking about? If SQL*Plus substitution variables, then:
    SQL> select * from &table_owner..dept
      2  /
    Enter value for table_owner: scott
    old   1: select * from &table_owner..dept
    new   1: select * from scott.dept
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> If you are talking about PL/SQL variables, you will have to use dynamic SQL:
    SQL> set serveroutput on
    SQL> declare
      2      v_table_owner varchar2(30);
      3      v_cur sys_refcursor;
      4      v_deptno number;
      5      v_dname varchar2(20);
      6      v_loc varchar2(20);
      7  begin
      8      v_table_owner := 'scott';
      9      open v_cur for 'select * from ' || v_table_owner || '.dept';
    10      loop
    11        fetch v_cur into v_deptno,v_dname,v_loc;
    12        exit when v_cur%notfound;
    13        dbms_output.put_line(rpad(v_deptno,5) || rpad(v_dname,20) || v_loc);
    14      end loop;
    15  end;
    16  /
    10   ACCOUNTING          NEW YORK
    20   RESEARCH            DALLAS
    30   SALES               CHICAGO
    40   OPERATIONS          BOSTON
    PL/SQL procedure successfully completed.
    SQL> SY.

  • How to dynamically assign BP to territory

    Hi all,
         I want to dynamically assign business partner to territory only, if the business partner is created by the user assigned to the territory.
      How can we do this, If there is any function module please send. or can we do any  customization .
    Thanks
    Hemalatha

    Hi Hemalatha,
    What Ashish told is correct
    The Main use of Territory is
    Who is responsible for a particular territory or business partner
    Which territory or employee is responsible for a business transaction (for example, sales order)
    Which business partners belong to a particular territory
    Which products can be offered in a particular territory
    According to Levels in Territory Hierarchy like Area, Region etc the BP will comes to particular Territory U does not required to assign the BP to Territory,
    The system automatically takes the Responsible Employee etc according to the Area Region etc as u ve given the level in Territory Hierarchy
    Reward points if it helpful to u
    cheers
    Ranga

Maybe you are looking for

  • SWF file not playing in flash player

    Hello All I am working on this project for a client, suddenly no-one can get the SWF file to play. https://drive.google.com/folderview?id=0ByWDl-PaRWIFY0c1SnEwbUNraUE&usp=sharing The file is there. If anyone can help please do. I know this file works

  • SQL server error log size is too big to handle

    I am working with a large database on windows sql server 2008 R2 such that it has to run continuously 24x7 because of that it is not possible to restart the server time to time. It is kind of monitoring system for big machines. Because of this SQL se

  • Adobe Acrobat 10 conversion crashes Bloomberg

    Hello I am running Acrobat Pro 10.0.0 (32bit) installed on Window 7 Pro 64bit.   I have the Adobe printer as default when printing from Bloomberg I get automatically the "Save as" window (which is fine) but before I click Save button, the Bloomberg a

  • HT2731 how do i download information from my iphone to itunes?

    how do i download information from my iphone 4s to my computer

  • Help on alter sequence

    hi friends needed help immediately can we use the statement to alter a sequence value ssss is a variable EXECUTE IMMEDIATE 'ALTER SEQUENCE abcd_SEQ MAXVALUE '||ssss||''; very urgently