Input parameters from process

Hi,
I have a scenario where the user enters the process id as the input and once he submits it
I have to retrieve the input parameters of that process
Is it possible to get the input parameters using the GP API
Please give me a lead on how to achieve this
Thanks
Padmaja

Hi
You can achieve this using wd api, you need to create the webdynpro application
IGPProcess process = null;
     String message = "";
     String processName = "Cab Booking Process";
     try {
           IWDClientUser wdUser = WDClientUser.getCurrentUser();
           IUser user = wdUser.getSAPUser();
          // wdComponentAPI.getMessageManager().reportSuccess("current user is : " + user.getFirstName());
           IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);//, user.getLocale());
           process =GPProcessFactory.getDesigntimeManager().getActiveTemplate("7031AF6B877511DCBBB60016353AC84F",userContext);
           IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
           IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
           int rolenum = process.getRoleInfoCount();
           //wdComponentAPI.getMessageManager().reportSuccess("dyn user is : " + user.getFirstName());
           IGPProcessRoleInstance roleInstance=null;
           IGPStructure params = null;
          // wdComponentAPI.getMessageManager().reportSuccess("Title is "+ process.getTitle());
//           if (process.getTitle().equals("Cab Booking Process"))
//               wdComponentAPI.getMessageManager().reportSuccess("get process instance "user.getFirstName()"  "user.getLastName()rtm.getRunningInstances(0, new Date(2007,1,1), new Date(System.currentTimeMillis()), user));
           try {
                params = GPStructureFactory.getStructure(process.getInputParameters());
                     if (process.getTitle().equals("Cab Booking Process")) {
                         params.setAttributeValue("RequestId.4",wdContext.currentContextElement().getRequestId());
                         params.setAttributeValue("EmployeeId.4",wdContext.currentContextElement().getEmployeeId());
                         params.setAttributeValue("ApproverId.4",wdContext.nodeZhr_Emp_Sup_Info_Input().nodeOutput_Approver().node_Output().current_OutputElement().getUser_Id());
                         params.setAttributeValue("ApproverName.4",wdContext.nodeZhr_Emp_Sup_Info_Input().nodeOutput_Approver().node_Output().current_OutputElement().getName());
                         params.setAttributeValue("Name.4",wdContext.currentOrg_AssignmentElement().getName());
                         params.setAttributeValue("Grade.4",wdContext.currentOrg_AssignmentElement().getEsubgroup());
                         params.setAttributeValue("Department.4",wdContext.currentOrg_AssignmentElement().getOrgtxt());
                         params.setAttributeValue("PersonalArea.4",wdContext.currentContextElement().getPersonalSubAreaText());
                         params.setAttributeValue("CostCenter.4",wdContext.currentContextElement().getCostCenter_GuestText());
                         //params.setAttributeValue("ActionName.4","Test Cab Request From Reddy");
                         if(wdContext.currentContextElement().getResultState().equalsIgnoreCase("Submit")){
                              //setting the Action name dynamically(UWL Task Name)
                              wdContext.currentContextElement().setActionName("Approve Cab Request Of " + wdContext.currentOrg_AssignmentElement().getName());
                              params.setAttributeValue("ActionName.4", wdContext.currentContextElement().getActionName());
                              wdComponentAPI.getMessageManager().reportSuccess("Your Request Form has been sumbited for the Approval.");
                              message = "Your Request has been sumbited for the Approval.\n\tRequest ID : " + wdContext.currentContextElement().getRequestId();
                         } else {
                              //setting the Action name dynamically(UWL Task Name)
                              wdContext.currentContextElement().setActionName("Cab Booking Request from " + wdContext.currentOrg_AssignmentElement().getName());
                              params.setAttributeValue("ActionName.4", wdContext.currentContextElement().getActionName());
                              params.setAttributeValue("Extra.4",getTravelDeskPortalId());//Travel Desk Id
                              wdComponentAPI.getMessageManager().reportSuccess("Your Request has been sent to Travel Desk.");
                              message = "Your Request has been sumbited to the Travel Desk.\n\tRequest ID : " + wdContext.currentContextElement().getRequestId();
                }catch(Exception e){
                     wdComponentAPI.getMessageManager().reportSuccess("Exception in Parameter Set "+e);
           IGPProcessInstance prInstance = rtm.startProcess(process,processName,"This process has been started using the GP public API",user,roles,params,user);
           catch(Exception e){
                wdComponentAPI.getMessageManager().reportSuccess("Exception Main Try Block "+e);
           try{
           catch (Exception e){
               wdComponentAPI.getMessageManager().reportSuccess("Error in Calling Complete" +e.getMessage());

Similar Messages

  • Call a Graphical Calc view with input Parameters from a Script Based Calc View

    Hi All.
    I am trying to call a graphical calculation view with input parameters from a script based calculation view as below but getting syntax error:
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                 WITH PARAMETERS  ('PLACEHOLDER' = ('$$IP_START_DATE$$',:START_DATE),
                                     'PLACEHOLDER' = ('$$IP_END_DATE$$',:END_DATE));
    START_DATE  and END_DATE are input parameters of the script based calculation view.
    Can anyone please help me with the correct syntax for accomplishing this?
    Thanks,
    Goutham

    Hi Gautham,
    One more option  what i would like you to try is the below option , here i have just changed the order of passing nothing else.
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                   ('PLACEHOLDER' = ('$$IP_END_DATE$$','$$END_DATE$$'),
                                  'PLACEHOLDER' = ('$$IP_START_DATE$$','$$START_DATE$$'))
    Regards,
    Vinoth

  • Passing input parameters from an applet to a JSP page

    Hello all,
    Yes, its one of these questions which I have tried to find a solution from the already large number of postings but with no luck. I'm still a novice to Java/JSP so bear with me.
    Consider this scenario.
    1. An applet which has two input boxes (say First name and surname). 2. These parameters will be passed to a JSP page (so the applet will call a JSP page).
    3. The JSP will have have the necessary logic (or actually a JavaBean will) to connect to a database and add a new record with these parameters (first name and surname).
    I also need to consider editing/updating the record in the database. So a JSP page will connect to the database, retrieving the required record from the database and then display the parameters back in an applet in two input boxes (first name and surname) to be edited and saved again.
    I have been able to develop a similar application using simple HTML forms to add and update records in a database so I'm not worried about the database connectivity simply the issue of passing parameters from the applet to the JSP page and vice versa (for edit/update).
    Once i've managed to do this with input boxes, I can experiment with the other input types radios, checkboxes, select etc.
    Many thanks in advance,
    Assad

    create an URL object with u'r specified link of the java class and send the parameters..write trhis action in any buttonclick event in u'r applet.

  • How to bind values for input parameters from an adf table?

    Hi,
    The version I am using is
    Jdev TP4 11.1.1.0.0
    I need to know how to bind values for input parameters to methods.
    I have created an af:table and I have a button created using a method which is outside the af:table. This method needs to take input parameter values from the column values in the table.
    When I have an adf form instead of the table the binding works.
    Any help?
    Thanks.

    Hi Balaji,
    you need to bind you table to a backing bean and call a method in the backing bean when you hit the button. In the method you get the selected row from the table and have access to the columns of it. Then call the the method with the parameters.
    To bind the table to a bean select the properties of the table, go to behavior section and look for the advanced section 'Binding' property.
    Select the small down arrow at the right side and click edit. In the dialog select or create a bean and property for the table.
    Go to the button properties, look for 'Action', again select the small down arrow and click 'Edit'. Select the bean which holds the table property and create a method for the button.
    The method look like    public void bearbeitenQuelle(ActionEvent actionEvent)
            // Add event code here...
            RichTable lTable = getYourTable();
            Object lData = lTable.getSelectedRowData();
            FacesCtrlHierNodeBinding lNB = (FacesCtrlHierNodeBinding) lData;
            YourViewRow lRow = (YourViewRow ) lNB.getCurrentRow();
        }Hope the get you started
    Timo

  • Binding to Odata Service with Input Parameters from HANA

    Hello,
    I'm developing a UI5 application that consumes a SAP HANA OData service to search a database (using fuzzy search). This service receives an Input Parameter, used to query the database.
    So every time the user searches for something I build a new binding path and refresh the model to show the search results in the sap.m.List.
    The Model:
    var hanaModel =  new sap.ui.model.odata.ODataModel("…/services/seed.xsodata");
    this.setModel(hanaModel);
    The search event handler from sap.m.SearchField:
    var listBinding = this.getView().byId("list").getBinding("items");
    listBinding.sPath = "/FoodstuffByNameValuesParameters(P_NAME='" + searchString + "')/Results";
    this.getView().getModel().refresh();
    My question is if this is the correct approach to create the model and bind the list when we have a service with an Input Parameter, or if there is a better way to do it.
    (This approach is actually working).
    Regards,
    Paulo

    i would do
    var       filter = [];
    var selectFilter = new sap.ui.model.Filter("name", sap.ui.model.FilterOperator.Contains, sVal);
          filter.push(selectFilter);
    listBinding .filter(filter);

  • Generating DDL to accept user input parameters

    I need generate DDL which will accept input parameters from user, for example, tablespace name for indexes. What is the best way to do it?
    At present, I’ve created tablespace with name ‘&INDEX_TS’ in physical model and using it to create indexes. Is this a correct way to do it?
    Also, &INDEX_TS appears within double quotes in generated DDL. Is there a way to get rid of double quotes?
    I'm using v3.1

    Hi,
    I have just found out that there is a "substitution variable" facility within SQL*Plus and SQL Developer which allows runtime substitution when applying DDL.
    Here are some extracts from the SQL Developer Help:
    Script Runner
    The SQL*Plus features available in the script runner include @, @@, CONNECT, EXIT, QUIT, UNDEFINE, WHENEVER, and substitution variables. For example, to run a script named c:\myscripts\mytest.sql, type @c:\myscripts\mytest in the Enter SQL Statement box, and click the drop-down next to the Execute Statement icon and select Run Script.
    The following considerations apply to using the SQL Developer script runner:
    For substitution variables, the syntax &&variable assigns a permanent variable value, and the syntax &variable assigns a temporary (not stored) variable value.
    So if the name starts with &&, it will only prompt for the actual name the first time it appears.
    Note that this still works if the name is presented as a quoted identifier, e.g.
    TABLESPACE "&&INDEX_TS"
    David

  • Execute javascript with input parameters of a taskflow

    Using JDev 11g PS4
    I have a taskflow that uses some javascript. When the taskflow has been loaded, I need to execute a javascript function that uses 2 input parameters of my taskflow.
    I don't really know how I can execute the javascript with my input parameters.
    As a test, I have added a commandButton in my taskflow that will do the job:
    <af:commandButton id="btnRefresh" text="Open">
                <af:clientAttribute name="long" value="#{pageFlowScope.pLong}"/>
                <af:clientAttribute name="lat" value="#{pageFlowScope.pLat}"/>
                <af:clientListener method="doNavigate" type="click"/>
            </af:commandButton>How do I do the same when the taskflow loads instead of needing to push the button.

    Please find attached sample based on your use-case:
    http://adfsampleapplications.googlecode.com/svn/trunk/JavascriptOnLoadSample.rar
    It invokes a javascript function on pagefragment load by passing the input parameters from the taskflow.
    Thanks,
    Navaneeth

  • SOAP - XI - RFC - Input parameters

    Hi,
    I'm trying to develop a SOAP-> XI -> RFC scenario and now i'm facing the following problem: I'm invoking a RFC through XI but for some reason the input parameters are not reaching the RFC. The RFC response indicates that RFC is not receiving any input parameters from XI.
    I've already cleared the cache and de-activate and re-activate the rfc receiver communication channel.
    Anyone has a hint for this?
    Thanks in advance,
    Pedro Leal

    Pedro,
    Few weeks before I also faced the same issue. I'm not sure if it's bug or not.  You are directly sending the RFC structure using SOAP client  is it? I mean your Inbound and Outbound Structure are same.
    Do onething, just do the mapping and check, It will work for sure!
    raj.

  • Can XMLBeans validate Web Services Input Parameters in Weblogic8.1?

    Hi,
    I am very new to XMLBeans and Web Services. From my understanding, schemas can be used to validate an xml document.
    However, I would like to find out:
    1. Can I validate my web service inputs againest the generated XMLBeans objects/schema, in Weblogic 8.1?
    2. How do I validate my input parameters from the web service? My input parameters include enumerations of valid values and also numeric values.
    Fyi, the XMLBeans objects were generated from the schema which i created, and my web service is using these XMLBeans objects.
    Great Thanks!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Can XMLBeans validate Web Services Input Parameters?

    Hi,
    I am very new to XMLBeans and Web Services. From my understanding, schemas can be used to validate an xml document.
    However, I would like to find out:
    1. Can I validate my web service inputs againest the generated XMLBeans objects/schema?
    2. How do I validate my input parameters from the web service? My input parameters include enumerations of valid values and also numeric values.
    Fyi, the XMLBeans objects were generated from the schema which i created, and my web service is referencing/using these XMLBeans objects to package the results to the calling class/method.
    Great Thanks!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Passing parameters from mapping to mapping with in process flows

    I am new to OWB and i would appreciate if any one can suggest me on how to solve the issue i have.
    I am trying to pass a parameter from one mapping to another mapping.
    ex: key need to be passed
    start ----->A--->B--->C----->END
    B needs to pass the key to mapping C
    In B i have mapping Out put parameter and in C i have a mapping input parameter.
    In process flow palatte i could see Key as OUT and in C properties i could bind it to Key .
    but i try to deploy this mapping i am getting error below
    PF_PKG Create Error
    RPE-02040: Internal error: KEY cannot be converted to a constant value. Please correct the value. If the problem persists then please contact Oracle Support with the stack trace and details on how to reproduce it.
    TEST_PFCreate INFORMATIONAL
    RPE-02071: Deployment has been aborted due to a previously reported critial error.
    please suggest me how to pass parameters between mappings with in a process flow.

    Hi
    You have to use process flow variables. So the output of map A, say parameter P would bind to variable V and then the input of map B, say Q would bind to variable V. In this way you can push parameters from one activity to the other. Although the UI lets you bind B.Q to A.P, it should not, I think there is a bug reported on this.
    Cheers
    David

  • Passing Input parameters to BPEl Process

    Hi,
    The requirement is to link OBIEE report and a BPEl Process.By clcking on the link in OBIEE report , the BPEl process should be executed which accepts the input parameters at run time from the user along with the input parameters being passed from OBIEE report.I am stuck with how to pass the parameters from OBIEE report to BPEL process.I'm using OBI V 10.1.3.3 and developed the BPEL process using Oracle JDeveloper.Could someone help me in resolving this?
    Thanks,
    Vidya

    hi vid
    the bpel process talks in language of web services ie partener links , i guess there must be some way of creating web service of obi and then you can make the two talk, also you can have reverse approach by generating axis client of BPEL webservice and using this client jar in your other obiee whatever....
    hope this helps....
    amit...

  • SQLPLUS Acitivity in process flow Input parameters to the script

    I have a sqlplus Activity in the process flow. In the script section I have a update statement which has a where clause where I need to pass a date field as input paramter to this script to compare and update the records.
    Is there a way to pass Input Parameters to the script.
    update test
    set last_name = 'TEST'
    where trunc(begin_date) = :begin_date;
    Begin_date is a variable in my process flow which I need to pass to this script.
    Any ideas as to how I can accomplish this.
    Thanks in advance.

    You can Create a procedure of the Update statement with one input paramenter like
    Create Or replace procedure Update_test ( p_begin_date date )
    IS
    update test
    set last_name = 'TEST'
    where trunc(begin_date) = p_begin_date;
    End;Then call this Procedure in the Process Flow and give input parameter from PF variable.
    Cheers
    Nawneet

  • Provide Input Parameters when called only from a TCODE

    Hi Experts,
    I have a requirement where in we need to provide  a input parameters for a report when it is triggered from a TCODE.
    When this program is executed in SE38, the input parameters should not be available. The report takes a default value which is
    defined in the program.
    We need use the same program when called using the TCODE, as well as from SE38.
    Looking for a early response.
    Thanks in advance.
    Regards,
    Kumar.

    >
    saravanau wrote:
    > The  program willl be scheduled everyday which will take the default date.
    In case of Background processing SELECTION-SCREEN will not be displayed so you don't have to worry about it.
    For retriving data for a particular date i need to provide user input screen. This will be done through ZTCODE.
    You would schedule the job on a daily basis in SM36 & for individual dates you'll access the report via the T-Code. So where does SE38 come into the picture?
    @Marcin: If SY-BATCH = 'X', i don't think SELECTION-SCREEN will be available
    BR,
    SUhas

  • Getting parameters from text and file input tag. .  canyou help me ?

    Hello!
    Is there anyway of getting parameters from an
    text field input in a form like :
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >Actually I would like to insert the parameters and make the upload of an file
    on the same form. It is something likethis :
    Form.jsp
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >   
    <input type="text" id="name" name="signinName" />
    <input name="signinFile" id="fileUp" type="file" />   
    <input type="submit" id="submit_btn" name="signinSubmit"/>uploadingFile.jsp
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
    .//upload the file
    String email = request.getParameter("signinName").trim(); //this line is bringing me an NullPointerException
    %>Thanks in advance for any suggestion!!
    All the best!

    You cannot use the HttpServletRequest object to retrieve parameters from a multipart form. You'll have to use a package that can parse such a form. I suggest Apache commons FileUpload.
    http://jakarta.apache.org/commons/fileupload/
    Using this package you can get both the file upload and any other parameters.

Maybe you are looking for

  • Could not retrieve the in-memory service URL after starting the in-memory.

    A local jvm process is discovered but mission control will not connect. Both jvm process and mission control are on the same host. Any suggestion? Thanks. This is the mission control help version: Oracle® JRockit Mission Control 3.1.0 (R27.6.3-40_o,

  • Idoc Related queries

    1.     How can we view and rectify the errors or warnings caused ,while we create a new idoc ,which may be an extension of an existing basic Idoc type(at Transaction code – we30)? 2.     How can we delete an Idoc created,if its already been released

  • User cannot see tax amount while creating PO

    Hi All My user cannot see tax amount while creating PO but on displaying the PO after saving he can see the tax amount in the PO. Is there any authorisation issue or what is the proble

  • Photo Booth-like flash when using shortcuts...

    Hi there, I've been facing a weird bug since the 10.6.3 update... Indeed, whenever I'm hitting a shortcut that's grayed in the menu of whichever application, my screen flashes as if I were taking a picture with Photo Booth. That's fun and all, but it

  • Is the Lenovo Ideacentre k300 PCIe 2.0 or 1.0?

    I hope somebody knows so I can upgrade this beast Solved! Go to Solution.