How do I assign an action to a user at runtime in GP?

Hi All,
Can anyone give me an insight to how I can assign an action role to a user at runtime? My GP has around 7 actions. One of the actions determines a portal user via a RFC. The user id (portal id) returned by this RFC is whom I want to assign to the following action in the block. How can I achieve this?
Thanks in advance,
TM.

Interesting disucssion..:) yeah You are correct you assign user to Role. But you also assign role to action by consolidating the action in one role in role consolidation of process.
You can not assign the processor of action to action. Lets make it simple, I will try to explain the trick in simple terms.
                  Action    Input           output                                       Role              
[                        A       -                 UserId ( UniqueID )                   Inititator ][UserRoleAssignment) B      UserList-UserIdentifier                        ProcessorB   ]
                    [      C       X                   X                             ProcessorB   ]        
Now what happens in Action B is user which is input get assgined to Role ProcessorB ( becuase it is of that kind of callable object). Since once the user is (user-U) assigned to ProcessorB any of the subsequent step which needs to be performed by ProcessorB can be performed by  the same user user-U.
Now I have explicity assigned the Action C to be in the same Role ProcessorB so it will be performed by user-X
One more thing the userID which you have output is uniqueID not the logonID it has to be like USER.PRIVATE_DATASOURCE.un:00000006.
And the ProcessorB needs to be defined as RuntimeDefined.
Hope it make sense.

Similar Messages

  • How can I assign a action to a button of the many scripts in the script file.

    How can I assign one action of many actions in a script file.
    I have many actions in a script file and I want to run one of them by clicking a button on the panel. However, loading the script I can not isolate the action that interests me.

    Hello,
    Try System Preferences>Energy Saver>Options tab, uncheck Allow power button to sleep computer.
    Some possible other options...
    Control-Eject
    The dialog box "Are you sure you want to shut down your computer now?" appears with options to Restart, Sleep, Cancel or Shut Down. After the dialog appears, press the R key to Restart, press the S key to Sleep, press the Esc key to Cancel, or press the Return key to Shut Down.
    Control-Command-Eject
    Quits all applications (after giving you a chance to save changes to open documents) and restarts the computer.
    Control-Option-Command-Eject
    Quits all applications (after giving you a chance to save changes to open documents) and shuts the computer down.
    Command-Option-Eject
    Puts the computer to sleep.
    Shift-Control-Eject
    Puts all displays to sleep.
    Power button (if the computer is not responding)
    Press and hold the power button on the computer for six seconds to shut down the computer.
    http://support.apple.com/kb/ht2448

  • How can we assign an action triggered by an event to a Background job?

    Hi All,
            At the moment we are having an on click action event "EXECUTE"  [GSACTIONS/ActionOV ->eh_onexecute] , on click of this event , it is triggering a BADI which has a rewritten method "IF_EX_EXEC_METHODCALL_PPF~EXECUTE" in which we have our custom code. This BADI is being called by an action configured in "ACTION PROFILES".
            Now , we need to find is a way to implement this in the background.
    1) I was trying to use RSPPFPROCESS report,Is there any way this could get triggered automatically when the on click action(execute) is clicked.
    2)The other thing i tried is to copy the code to an executable report program , open a job for it,scheduling it in background and closing the job in the method .But the method has a return parameter "RP_STATUS" which has to get the value from the report. The problem is unless the scheduled job is done the rp_status cannot be returned and as this is in background the rp_status is by default becoming 0 which means failed.
          Any suggestions on how could i implement the above scenario.
    Thanks in advance,
    Mithun

    Hi Tapash ,
    Actually my requirement was not to submit the form to controller .
    I got the solution for that . I have registered a JavaScript function to the MessageText in PR as
    pageContext.putJavaScriptFunction("callMethod","function callMethod() { var first=document.getElementById('First').value; ");
    OAMessageTextInputBean GoalTextBean2=(OAMessageTextInputBean)webBean.findChildRecursive("Second");
    GoalTextBean2.setOnBlur("callMethod()");
    Regards ,
    Srikanth

  • How do I assign an action to view a specific page in Acrobat XI?

    I want to create a button that, when clicked, will take the user to a specific page in the same document. I do NOT want a text box to pop up asking what page to go to, I want it to automatically go to page 4 with no other input from the user.
    HELP!!!
    Thanks!

    If you want to be able to set a more exact location on the page (not just a page number) you can use the built-in "Go to a page view" action. After you add the command, just scroll to the location you want to link to and then click the Set Link button in the floating window.

  • How to assign Action to multiple Users dynamically in GP

    Hello Experts,
    I have the following scenario in GP
    I have created a Web Dynro GP Callable Object and from my Web Dynpro i need to a pass a list of Users to which a particular Action needs to be assigned.
    I am able to return a single value from web dynpro to gp.
    Can some one help me how to return a list of users to gp.
    I have done the following: In the getDescription method I have added an attribute of multiplicity 1_N:
    IGPStructureInfo outputStruct = technicalDescription.getOutputStructureInfo();
    IGPAttributeInfo list1 = outputStruct.addAttribute("List1", IGPAttributeInfo.BASE_STRING);
    list1.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_N);
    then in the complete method I am trying to set an Arraylist to this variable:
    IGPStructure output = execContext.getOutputStructure();
    output.setAttributeValue("List1", userList);
    Here userList is an Arraylist which contains the list of User Id's..
    However I get the following exception:
    com.sap.caf.eu.gp.exception.api.GPInvocationException: Multiplicity of attribute with name List1 and namespace null does not allow single values to be set/received
    at com.sap.caf.eu.gp.structure.impl.GPStructure.setAttributeValue(GPStructure.java:114)
    Can someone help me in knowing how I can return a list as an output parameter to GP from Web Dynpro...
    Regards
    Sundeep

    Hi Srinivasan,
    Of course the Role is Runtime defined...
    I would brief you again the mapping that I have performed in the Design time at the processlevel.
    From Web Dynpro I return a List of type String and Multiplicity 1..N.
    I map this List with the leaf item User Identifier contained in the User List Input parameter of the Assign User to Process Role callable object.
    However since the User Identifier parameter is of cardinality 0..1 only the first value in the returned list is getting assigned to it. Thus the task is getting assigned to only one user.
    Now it is not possible in Design time to Group or consolidate parameters of different types. Thus the List which is of type String cannot be mapped to User List or the User_Item contained within it which are both of type Structure and multiple cardinality.
    I even created a Structure in Web Dynpro of cardinality 1..N and withing it i included a List of type String and cardinality 1..N. Now I returned this Structure from Web Dynpro and tried to map it to the User Item Structure of the Assign User to Process Role Callable object, but doint this the task did not get assigned to any user..
    One question:
    Don't you think that in order for the task assignment to happen using the Assign User to Process Role Callable Object the leaf item User Identifier parameter contained in the User_List input parameter of this callable object needs to be populated with the required User Id's.
    But if the cardinality of this parameter is always 0..1 , is it possible to achive the assignment of an Action to multiple Users at runtime using this Callable Object?
    Can you please explain the parameter mapping you followed in order to achive this...
    Regards
    Sundeep
    I want to ensure that you remain in the top 3 contributors in this forum 
    I will continue to reward points for your answers
    Edited by: Sundeep Sethi on Sep 4, 2008 1:47 PM

  • How do i assign a mail Adress from a Virtual domain to a existing user?

    I Have to Domains, a primary an da Virtual.
    MAil for the primary domain Works Perfect.
    NOw i Need to assign a Second Email from the Virtual domain to a exsisting user ?
    where and how can i assign this ?
    regards

    Give the user a second username in the form of '[email protected]'

  • Icon on ALV..How to assign an action to it ?

    Hi
    I have got a LinkToAction icon in the column of an ALV table. How to assign an action to it..
      DATA: lr_icon_action    TYPE REF TO cl_salv_wd_uie_link_to_action.
      CREATE OBJECT lr_icon_action.
      lr_icon_action->set_image_source( 'ICON_INFORMATION' ).
      lr_col->set_cell_editor( lr_icon_action ).
    How to assign an action to this icon ??
    Regards
    Sukanya

    SOLVED:
    I found a solution for me:
    I forgot all the previous code and with a class implementing ActionListener like this:
    class ClickImagen implements ActionListener
    public void processAction(ActionEvent actionEvent)
    <do something>
    And assigning a ClickImage's object to my component's ActionListener turns all ok:
    miImagen.addActionListener(new ClickImagen());

  • Use WebDynpro : How to Assign a Action to Image

    Hi
    i am trying to create a ICON kind of stuff using webdynpro
    all i need is i have image , is there any way i can assign a action to the Image.
    For Example
    if you look over the
    http://<sever name>:<port no>/index.html  ---> SAP NetWeaver Administrator --- Here we find a icon as Administrator
    iam  trying to do sth similar to this.
    can any one help me on this .. its Urgent
    Thanks
    Ramesh

    Fine
    how abt using LinktoAction UI , and assign a Image to its sourcetype,
    i tried this , its working,
    But the problem is , while assinging a Action to this Link , the action will be displayed below the image. during runtime...
    is there any way to remove or make it invisible so that we see only the Image.
    Thanks
    Ramesh

  • How can i assign a Javascript variable to JSP variable

    Hi guys
    how i can assign a javascript variable to jsp expression.,
    e.g.,
    <input type = "button" value = "Add more" onclick = "return submitform1('<%=s%>')">
    function submitform1(String s)
          var s1 = s
    document.form1.action = "../intimation.do";    /* Here i want to pass the value s1 to jsp or servlets without using hidden fields and Query string*/
           document.form1.submit();
          return false;
    /*  i want to pass the values thru session whether it is possible */
    pls give sample code
    Reply
    Marimuthu

    You don't have the session.
    All you have is HTTP.
    The only way to communicate from the client to the server is via an HTTP request. The only way to send a value like that is with a parameter.
    Using a form with method="submit" as mentioned will pass the parameters without displaying them in the url bar (is that what you wanted?)

  • Assigning human task to a user not exist in the ldap - actionable task by email address

    Hello experts,
    we have a requirement to assign a task to an external user (not exist in the ldap) to perform some action by allowing the system to send an actionable email.
    Internal user will capture the external-user name & emailaddress in the task form. System should use this information and assign the task to the user by sending an actionable email. Our requirement is, these external users should not have access to bpm workspace, so we can not store the user information within the system.
    Currently I have tried assign the task to an internal user (users configured in weblogic) and system sends out an actionable email and able to set the outcome of the task by replying to the email.
    How can the same be achieved, without the user being in our system? Is it possible? I am OK to create a temporary user before assigning the task, but will be there be any impact if I delete the user after the task has been completed?

    AnilB,
    Assigning a task to a user that is not in the directory will likely result in the BPM flow going into suspended state. To avoid this, assign the task to a pre-created group, you should not get an error even if the group is empty. You can then add and remove the users to that group to control access to the task.
    Phil

  • Find roles by assigned ume actions

    Hi
    Does anybody know of a way to find out, which roles are assigned a specific UME action?
    In the identity management I can find a specific role and see all the assigned ume actions, but I want to find a specific UME action and see all the roles, that has this ume action assigned.
    Does anybody know how this is possible? May directly in DB?
    Cheers,
    Jacob Vennervald

    I have now tried to make a small java portal application that handles this but I can't seem to find at method to find which ume actions are assigned to a specific role.
    Does anybody have any input?
    /Jacob

  • How URL is assigned to different users when forms apps is launched?

    when i open my forms application, which is developed in forms 10g
    it first opens a browser which will have URL like below given one:
    https://app.company_name.com:1234/forms/frmservlet?form=first_form.fmx&otherparams=connectRow%3SAASZgPFFAGAAAgXVAAA
    then it opens the application.
    when i close the form, this web browser also get closed or vice versa.
    again when i open forms application, it opens web browser with below URL which is different from above one and then forms application
    https://app.company_name.com:1234/forms/frmservlet?form=first_form.fmx&otherparams=connectRow%3SAASZgPFFAGAAAgXVAAB
    you can see difference in AAgXVAAA and AAgXVAAB in the URL
    i want to know how this URL is assigned each time i open the application??
    FYI - i dont insert id ,password. it directly logs me in using my windows id.
    does every application user will get separate URL assigned??
    will same URL like AGAAAgXVAAA be assigned to more than one user at a time??
    above question is regarding a issue that we are facing in the production. given below is the issue :
    when i open my forms application by double clicking a shortcut,
    it first opens a browser which will have URL like below given one:
    https://app.company_name.com:1234/forms/frmservlet?form=first_form.fmx&otherparams=connectRow%3SAASZgPFFAGAAAgXVAAA
    then it opens the application.
    if i copy the URL and open other IE browser and paste the URL and change the countrow% in URL to 3SAASZgPFFAGAAAgXVAAB it logs me in as other person. that too in production. which is a security issue.
    so i want to know how to solve this issue.
    how is OAS or oracle HTTP server is assigning these URL's??
    and how to stop this??
    few end users got this issue. their application was hung up and when they again opened the application, they logged in as other person.
    to replicate the issue , i played trial and error and i could log in as other person when i changed URL .
    does single sign on helps in solving this issue? does single sign on works only when i enter login id and password??
    because in my case i didnt give any login , i directly gave the URL in browser and hit enter which opened application with other employees name.
    i saw formconfig file which had single sign on as false for some setting. i think this is creating problem as SSO is used for authentication.
    i might be wrong though
    i appreciate your help
    Thanks
    Tibbu

    When you make a forms "profile" into OID they will be redirected to the config section they belong to, try to check that in http://youserver:7777/oiddas page, for evey user.
    Greetings

  • Portal Master-detail form how to auto assign detail record sequence number

    Portal Master-detail form how to auto assign detail record sequence number.Please help me?

    You can just read the following section
    Can I specify a sequence number generator as the default value for a form column?
    Yes. Enter the following in the "default value" field for the column:
    #<schema name>.<sequence name>.nextval
    where <schema name> is the name of the schema containing the sequence, and <sequence name> is the name of the sequence. The entry is preceded by a "#".
    For example, if the schema name is "SCOTT", and the sequence name is "CUSTOMER_SEQ", the default value entry is:
    #SCOTT.CUSTOMER_SEQ.NEXTVAL
    same way you can do for master - detail form.
    for more information on forms please refer the following URL.
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    hope it helps.

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • How can we assign one attribute set to multiple business partners at a time ?

    How can we assign one attribute set to multiple business partners at a time ? Is it possible ? Can anyone explain me ?

    Hello,
    please refer to the following thread:
    How can we assign one Attribute Set to multiple Business Partners at a time? Is it possible?
    best regards,
    Johannes

Maybe you are looking for