Passing arguments to a Global Activity with Instance Access

I'm passing arguments to a Global Activity which has Instance access and then I need to assign agrument values to Instance variables. But, somehow arguments not being passed when I enable "Has Instance Access". If I turn instance access off then arguments pass but unfortunately I cannot assign due to instance not being available. Fyi, I'm using WAPI and argument names in HTML form are prefixed with "arg_" as per WAPI documentation.
I would appreciate any help in resolving the issue.
Thanks in advance.
MK

Same problem ...
I tested with JSP.parameters["arg_myArg"] ... no result

Similar Messages

  • 11g BPM Global Activity with instance access equivalent ??

    Hi,
    I want to be able to update an instance variable from a workspace view much as I could with a 10g Global Activity with Instance access.
    As always I guess there are a number of solutions (even if they dont match the scenario exactly) but which is the best approach ?
    Any help much appreciated.
    cheers
    Tony

    Same problem ...
    I tested with JSP.parameters["arg_myArg"] ... no result

  • PAPI WS: Calling a Global Activity with instance Access

    Hi,
    I have a global activity, which has instance access, and want to call it via PAPI WS. How is this possible? Usually you would use activityExecuteApplication call, but this does not seem to work for activities having instance access.
    Regards
    Matthias

    The inputs are quite simple, the ProcessID, which is '/SampleProcess' for me and the activity name, which is 'GetData'.
    But, of course, this could not work for a Global Activity having instance access. Because in this case an instance id has to be passed in some way, but I don't know, how?
    Regards
    Matthias

  • Passing BPM presentation object global activity

    Hello,
    I would like to pass a BPM presentation object from a JSP page to global actiivity using openGlobal() method. Do you know if this is possible? Any examples available you know?
    Thanks & Regards.

    Thank you Kevin, here are some more details. Please let me know if this is not clear...
    openGlobal is a local java script function in my code but internally it is calling Fuego UrlActions.runApplication().
    Basically I have an map (key & value pair) as a member of BPM object, which I am using in source JSP file. I want to send this object to a global activity which has another JSP page to display this information.
    I know we can pass a string argument this way but I am not sure how to pass map.
    Thanks.

  • How can I pass arguments to a TestStand sequence with LabWindows 6 ?

    Hi
    I have created sequences in a TestStand file.
    I want to program a sequence with Labwindows 6 which would call all these existing sequences (containing parameters).
    I don't have any problems to create the steps "SequenceCall" but i don't know how to pass arguments to the sequences with the TS API.
    I have used the look-up strings "TS.SData.SFPath", "TS.SData.SeqName", "TS.SData.ThreadOpt" to program the sequence file / sequence and the multithread option. But now how to program the arguments passing ? I think there is something with the lookup string "ST.SData.ActualArgs"...
    Thank u very much for any help

    I'm not sure if you want to pass values from TestStand to LabWindows or if you want to pass values in TestStand from a sequence call step to a called sequence.
    To get TestStand variables from LabWIndows, use the following function:
    tsErrChk (TS_PropertyGetValNumber(testData->seqContextCVI, &errorInfo, "Locals.StartPoint", 0, &dStartPt));
    iStartPt = (int)dStartPt;
    The TS_PropertyGetValNumber gets the TestStand variable Locals.StartPoint and puts it into the LabWindows variable called dStartPoint. Numbers to and from Test Stand are always a double type. The next line converts it to an integer.
    To put a LabWindows value to TestStand, use TS_PropertyPutValNumber.
    To pass values from a sequence call step to a called sequence, create variables in the Parameters t
    ab on your main sequence. Create same variables on the Parameters tab of the called sequence. In main, specify module to be called in calling step. There is a paramters section on the Edit Sequence Call dialog box which appears. Check the Use Prototype of the Selected Sequence box. You can then list all the parameter variables in the parameters section.
    Hope this is what you want.
    - tbob
    Inventor of the WORM Global

  • Automatic Global Activity: Obtain instance vars from "BusinessProcess"

    Hi,
    I need obtain instance vars from BusinessProcess, but i can't find the method for this operation.
    Can some one give me answers about this problem?
    Thank you...

    You have to use the PAPI api inside the designer.
    You have to do something like this:
    Instance myInstance = BusinessProcess.getInstance(Strign instanceId)
    Object instanceVarValue = myInstance.getVar("myInstanceVarName");
    Hope this helps.
    -Pal

  • How to create a new instance of a global activity

    Hi,
    I have one global activity and three interactive tasks. I need a mechanism, which allows me to invoke the global activity from the interactive tasks.
    The global activity should have some information of the task that invoked it and initiate another process.
    Thanks for your help

    Hi Eve,
    Thanks.
    First, it looks like you might be trying to create an instance in a process that is not in your current project. Is it possible that this is the case? Although you can have more than one project open at one time in Studio, you should not do this. Even if you have more than one project open, Studio's runtime components (the Engine, the Workspace, Tomcat and the Derby database) are only working against one project at a time. On Enterprise, this will not be an issue but on Studio you cannot do this.
    Second, if the process that you're trying to create instances on is inside the same project, could you double check the id of the process you are trying to create instances in again? In the Project Navigator tab, right mouse click the process's name -> click "Properties" and look at the read only italisized text beside the "Id" label. It's going to be a String that has no space characters. Is this the String you are using in the method you are using to create instances? Here's an example. If your process's name is "My Process" then its id that you will use to create instances with it might be "MyProcess".
    idOfProcess = "MyProcess"
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn")Note I used the work "might". You can decide to change the name of your process at any time, but the id is always going to stay the same. So if you change your process to be "My Fantastic Process", its id is still going to be "MyProcess".
    Third, have you defined an Organizational Unit (OU) for your processes (just asking - I am not at all encouraging you to do this)? If you've deployed this using an organization unit (OU) then you'd need to prefix this to the string also. To see if you've defined an OU for your processes right mouse click the project in the Project Navigator tab -> click "Engine Preferences" -> on the left side click "Deployment" -> in the "Organizational Unit" column do you see any entries? Doubt that you do, but if you have an OUs then I'd encourage you to take them out until you get this working.
    Fourth, put logMessage statements before and after your logic where you are creating the instance in the other process just to make sure this where your error is occuring. One of your logMessage statements might look something like this:
    logMessage "Before creating instance in process " + idOfProcess using severity = DEBUGFifth, if none of these ideas have been helpful - please post your logic on this thread. Put the text "{code}" before and after your logic so it reads a little better.
    Thanks,
    Dan

  • How to run a java class from a shell script with passing arguments

    hi,
    I have a jar with all the required classes. I was using ant to run the classes i needed.
    But now i want to use a shell script to run the class, also the class accepts some arguments so when script is run it should accept arguments.
    So can any one tell me how to set class paths, jar location and call the required class from shell script or batch file with passing arguments to it.
    Thanks in advance.

    Let's say that the order of arguments is as below
    1. Jar file name
    2. Classpath
    Your shell script would look like this
    java -cp $CLASSPATH:$2 -jar $1 I am assuming that your jar file has the required main-class entry in its manifest. Note that $1...$9 represent the arguments to this shell script.
    The same goes for a batch file
    java -cp %CLASSPATH%;%2 -jar %1

  • Problem passing arguments with air.swf

    I'm attempting to launch my AIR application using
    launchApplication() in air.swf. I'm having problems passing
    arguments to my application due to what appears to be some
    restriction in allowed characters. To get around this, I've even
    tried URL encoding and Base-64 encoding my arguments to make them
    more friendly, but it's still failing:
    Error: Invalid argument: PG5vIGlkZW50aWZpZXI+
    at AIR$/escapeArguments()
    at AIR/launchApplication()
    at
    adlm_launcher/onDownloadClick()[E:\adlm\launcher\src\adlm_launcher.mxml:181]
    It seems that any kind of punctuation is not allowed in
    arguments. URL encoding them doesn't work either because the % is
    rejected. Is there any other way around this?

    Yes; it's a security restriction. Browser invocation require
    process creation, and many process creation APIs giving special
    meanings to certain characters. Letting those characters through
    has in the past been a source of security vulnerabilities. While we
    also try to avoid using APIs with this behavior, extra layers of
    defense are also good.
    I think + and / may actually be safe choices; you make a good
    point that they're useful for Base64. If you could submit a feature
    request at www.adobe.com/go/wish, we'll definitely consider it.
    Another option, btw, is to use the LocalConnection API to
    pass data between the web page and your application once your app
    is launched. LocalConnection has fewer restrictions on the data
    passed.

  • Passing arguments with spaces through to asc.jar

    According to the docs, we can pass arguments through to llc using -fllvm-llc-opt.  Additionally, with llc we can pass arguments through to asc.jar using -ascopt.  Let's say I want to define an AS3 variable in my flascc swf/swc.  asc.jar says that I can do this using "-config <ns::name=value>".
    So it seems like I should be able to do this:
    gcc ... -fllvm-llc-opt=-ascopt=-config CONFIG::RELEASE=true
    But this doesn't work, as the "-config" parameter takes its next argument via a space and not an equals, which throws the whole thing off.  gcc thinks its another argument.  Trying it with spaces like this:
    gcc ... "-fllvm-llc-opt=-ascopt=-config CONFIG::RELEASE=true"
    also doesn't work.  The toolchain outputs:
    Error:
    LLVM ERROR: Failed to run /usr/bin/java with args:
    -Xmx1500M -jar /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/asc2.jar -merge -md -abcfuture -AS3
    -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/builtin.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/playerglobal.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/BinaryData.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/Exit.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/LongJmp.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/ISpecialFile.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/IBackingStore.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/InMemoryBackingStore.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/IVFS.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/CModule.abc
    -config CONFIG::RELEASE=false -d /var/folders/cn/hjz9nbt53bdfpn1rzn6wdb900000gr/T//ccQPoczK.lto.2.as /var/folders/cn/hjz9nbt53bdfpn1rzn6wdb900000gr/T//ccZDGxMF.lto.1.as -outdir . -out output
    As you can see, the "-config" command made it to asc.jar.  What I think is happening is that its being passed to asc.jar as one argument (not two).  For example, I can copy-paste this command into bash and it will work-- just not when done from gcc.
    So: how do I pass arguments with spaces through to asc.jar?

    I believe you should be able to do this by splitting it across two fllvm-llc-opt flags:
    gcc ... -fllvm-llc-opt=-ascopt=-config -fllvm-llc-opt=-ascopt=CONFIG::release=true
    The Makefile in the 12_Stage3D sample that ships with the FlasCC SDK demonstrates this.

  • Problems with passing arguments to app

    Hi.
    I have a litle problem with passing arguments. I create a dynamic jnlp file using jsp. This is my code:
    <%
    response.setContentType("application/x-java-jnlp-file");
    String l = request.getParameter("login");
    String p = request.getParameter("pass");
    out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    out.println("<jnlp spec=\"1.0+\" codebase=\"http://212.244.104.27:8080/PzP_INSTALL/\" href=\"pzp.jsp\">");
    out.println("<information>");
    out.println("<title>xxx</title>");
    out.println("<vendor>xxxx</vendor>");
    out.println("<homepage href=\"main.jsp\"/>");
    out.println("<description>text</description>");
    out.println("<offline-allowed/>");
    out.println("</information>");
    out.println("<security>");
    out.println("<all-permissions/>");
    out.println("</security>");
    out.println("<resources>");
    out.println("<j2se version=\"1.4+\"/>");
    out.println("<jar href=\"jars/pzp.jar\" main=\"true\" download=\"eager\"/>");
    out.println("<jar href=\"jars/config.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/commons-beanutils.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/commons-collections.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/commons-digester.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/commons-logging.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/commons-validator.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/easclient.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/easj2ee.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/jakarta-oro-2.0.7.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/jbcl.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/log4j-1.2.7.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/jdom.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jars/xercesImpl.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<property name =\"javaws.login \"  " + "value=" + "\"" + l + "\"" + "/>");
    out.println("<property name =\"javaws.pass \"  " + "value=" + "\"" + p + "\"" + "/>");
    out.println("</resources>");
    out.println("<application-desc main-class=\"aaa.bbb.ccc.MyClass\"/>");
    out.println("</jnlp>");
    %>My problem is when i have the href tag filled, the arguments that i passed equlas null, when i remove the href everything is ok besides that the app doesnt show in application manager and doesnt create an icon on the desktop.
    out.println("<jnlp spec=\"1.0+\" codebase=\"http://62.89.104.27:8080/PzP_INSTALL/\" href=\"pzp.jsp\">");
    Any help would be appreciated.

    Hello again.
    Thanks for your replay but unfortunetly it doesnt work too :-(
    I've tried to use the out.println statemants in the servlet instead of using a jsp page but the error is the same. Please look at my code and tell me if you can what could be wrong.
    This is the error message:
    An error occurred while launching/running the application.
    Title: PZP
    Vendor: SPEED
    Category: Download Error
    Unable to load resource: http://212.89.104.27:8080/PzP_INSTALL/ServletPZP
    Servlet code.
    package pzp_install;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pzp_install.LoginBean;
    import javax.swing.JOptionPane;
    public class ServletPZP extends HttpServlet {
      public void init(ServletConfig config) throws ServletException {
      super.init(config);
      config.getServletContext().setAttribute("ServletPZP", this);
      public void doPost(HttpServletRequest request, HttpServletResponse resp)
      throws IOException {
      PrintWriter out = resp.getWriter();
    // Get the value of the request parameter
      String login = request.getParameter("login");
      String pass = request.getParameter("pass");
    resp.setContentType("application/x-java-jnlp-file");
    out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    out.println("<jnlp spec=\"1.0+\" codebase=\"http://212.89.104.27:8080/PzP_INSTALL/\" href=\"/servletpzp\">");
    out.println("<information>");
    out.println("<title>PZP</title>");
    out.println("<vendor>SPEED</vendor>");
    out.println("<homepage href=\"main.jsp\"/>");
    out.println("<description>Aplikacja wspomagajaca zarzadzanie zleceniami</description>");
    out.println("<offline-allowed/>");
    out.println("</information>");
    out.println("<security>");
    out.println("<all-permissions/>");
    out.println("</security>");
    out.println("<resources>");
    out.println("<j2se version=\"1.4+\"/>");
    out.println("<jar href=\"pzp.jar\" main=\"true\" download=\"eager\"/>");
    out.println("<jar href=\"config.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"commons-beanutils.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"commons-collections.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"commons-digester.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"commons-logging.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"commons-validator.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"easclient.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"easj2ee.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jakarta-oro-2.0.7.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jbcl.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"log4j-1.2.7.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"jdom.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<jar href=\"xercesImpl.jar\" main=\"false\" download=\"eager\"/>");
    out.println("<property name =\"javaws.login \"  " + "value=" + "\"" + login + "\"" + "/>");
    out.println("<property name =\"javaws.pass \"  " + "value=" + "\"" + pass + "\"" + "/>");
    out.println("</resources>");
    out.println("<application-desc main-class=\"pl.speednet.pzp.PzP\"/>");
    out.println("</jnlp>");
      public void destroy() {
      super.destroy();
    This is the brief of code which starts the servlet
    <form action="http://212.89.104.27:8080/PzP_INSTALL/servletpzp" method="post">
      <input type="hide" name="login" value=<%=l%>>
      <input type="hide" name="pass" value=<%=p%>>
      <input type=submit value=Start PZP>
    </form>
    This is the web.xml file code.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <servlet>
        <servlet-name>ServletPZP</servlet-name>
        <servlet-class>pzp_install.ServletPZP</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>ServletPZP</servlet-name>
        <url-pattern>/servletpzp</url-pattern>
      </servlet-mapping>
      <mime-mapping>
        <extension>jar</extension>
        <mime-type>application/x-java-archive</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>jnlp</extension>
        <mime-type>application/x-java-jnlp-file</mime-type>
      </mime-mapping>
    </web-app>

  • Global Creation with Input args

    I create a Global Creation activity with a screenflow task. The screenflow has both a integer input argument (call it sfIntArg) and a output argument (of BPM object).
    When I right-click on the Global creation activity and go to argument mapping, I have trouble mapping the screenflow input argument. I am not sure what to specify in the "Value" field to map to sfIntArg.
    1. when I specify nothing to map to sfIntArg (sfIntArg = empty/null), then I get the message "express is expected".
    2. when I do not specify the argument mapping, I get "All arguments must be satisfied"
    3. when I choose a instance variable of the process, I get "xxx is not a static member of project.process.instance"
    I want to invoke the Global Creation with WAPI and pass the value for sfIntArg to the Global Creation.

    Hi,
    It's odd that you see no errors in your project.
    1. Make sure that you just have one project open in your Project Navigator tab.
    2. In the Project Navigator tab, double click the name of the process. Look at the "Outline" tab directly below the Project Navigator tab (click Window -> Reset Perspective if you don't see the Outline tab). Expand Methods and double click each of the methods to find the offending logic with the "var1" syntax that is causing your problem. Do this for each of your processes.
    Dan

  • PAPI - Run Global Activity

    Hi people,
    I have one simple process in my BPM application with a "global creation" activity and im trying to call this activity with papi, but without success.
    When i call this activty, i have this error:
    EJB Exception: ; nested exception is:
    com.bea.control.ServiceControlException: soapenv:Server.userExceptionjava.lang.RuntimeException: Activity '/Principal#Default-1.0/gc' task 'null' could not execute successfully.renault.ideais.local
    caused by: : com.bea.control.ServiceControlException: soapenv:Server.userExceptionjava.lang.RuntimeException: Activity '/Principal#Default-1.0/gc' task 'null' could not execute successfully.renault.ideais.local
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    com.bea.control.ServiceControlException: soapenv:Server.userExceptionjava.lang.RuntimeException: Activity '/Principal#Default-1.0/gc' task 'null' could not execute successfully.renault.ideais.local
    at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:102)
    at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:307)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:284)
    at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObject.java:168)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:56)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:161)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceHandleImpl.java:436)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl._invoke(WlwProxyImpl.java:326)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(WlwProxyImpl.java:315)
    at $Proxy17.runGlobalActivity(Unknown Source)My code is very simple:
    //user
    org.xmlsoap.schemas.soap.encoding.String user = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    user.set("eu2");
    //pass
    org.xmlsoap.schemas.soap.encoding.String pass = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    pass.set("eu2");
    //session
    org.xmlsoap.schemas.soap.encoding.String session = wsLocalControl.createSession(user, pass, true);
    // activity
    org.xmlsoap.schemas.soap.encoding.String activity = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    activity.set("/Principal#Default-1.0/gc");    
    // parameters      
    br.com.ideais.ws.ProcessServiceLocalControl.KeyValuePair[] argsGlobal = new KeyValuePair[1];
    argsGlobal[0] = new KeyValuePair();
    org.xmlsoap.schemas.soap.encoding.String key   = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    key.set("BeginIn");
    org.xmlsoap.schemas.soap.encoding.String value = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    value.set("");
    argsGlobal[0].key   = key;
    argsGlobal[0].value = value;
    // call the global method      
    br.com.ideais.ws.ProcessServiceLocalControl.GlobalExecutionResult result =  wsLocalControl.runGlobalActivity(session, activity, argsGlobal);Anyone knows the problem?

    It is just a simple code to run a global activity. The global activity is creating instances.
    The issue is: The instances get created by running the global activity from PAPI, but this exception is thrown.
    I am using Oracle 10G and weblogic 9.2
    I have defined 2 JMS connector.
    Also i have defined 2 JDBC Data source and I have not used Transaction for one of the database source.
    Also I am using the thin driver and not the XA driver.
    All this has been configured by following the document:
    http://edocs.bea.com/albsi/docs57/adminguide/index.html
    Regards
    Right Chord

  • Passing arguments to VBScript Program Object - Without WScript.Arguments?

    I am trying to create a program object with a VBScript that will change the name of a PDF created by a scheduled report. I need to be able to tack on the string "OH_2010_Qtr_1" (or whatever state - OH is used as an example) before the file extension - the VBScript creates that string based on the date the report is run. I want to be able to pass parameters to this script but when I try to do so I get the error "Variable is undefined 'WScript'" when trying to run the program object. I tried creating a batch file that would pass in the parameters and I get a generic error.
    How can I pass arguments to my VBScript? The arguments are necessary because this is for multiple instances of the same report, run for different states.

    For VBScript Program Objects, some injected objects:
    For Each arg in Script.Args
        ' Do something interesting with String arg here
        Script.Writeln(arg) ' Output to stdout
    Next
    and
    ' Get InfoStore
    Set infoStore = Session.Service("", "InfoStore")
    Sincerely,
    Ted Ueda

  • How can we pass argument to static block of code????

    hi ,
    My question is we can use static initialization block for having functionality like constructors for initializing static variable ,but we cannot pass arguments to static initialization block then how can I create functionality like parametrized constructors.Whats the alternative shall I use a static method to perform this functionality,since all methods in given class are static and
    there is no need of creating instance of class.

    jduprez wrote:
    Hello Jussi,Salut Jérôme
    That's probably a more maintenable design.
    However what do you base your remark on - I'm struck by the word obviously?
    Is there some design principle from which this advice so naturally ensues that it is obvious ?Yes I read my posting later on and thought about changing it, since it's not necessarily an obvious solution. I was making assumptions that I didn't clarify from the OP.
    In the OP's case, the "state" on which those methods operate is apparently fixed, presumably at the beginning of the program, so what's wrong with all this staticness?
    I can list:
    - threading issues (a non-issue after some initialization phase), that you wouldn't have with immutable instances
    - harder unit-testing (that's not an OO design problem, more a methodology problem)
    - mix and confusion between static and non-static state if the class ever happens to have both, in future maintenance. All good points, I see all-static classes as a "code smell" and especially in this case when there's parametrization involved.
    Now we just need to have the OP explain his situation a bit better.

Maybe you are looking for

  • Multiselect,checkbox,shuffle in a report

    ID:, NAME: 1, FIRST 2, SECOND report has: select multiselect_field ID from table -- 1:2 If I use a multiselect,checkbox,shuffle in a report it shows the ID# of the record.. but I want to show the name that is stored in the table the LOV is using.. ho

  • Change package for Customer Exit

    How can I change a package for Customer Exit? I can't find the Cusomter Exits project by using SE80 transaction... :/

  • No phone since Tropical Storm Lee and all we get is a $5.00 credit?

    We notified customer service several times on our cell phones that our phone was down since September 9th and we got answers like we know, and we will be credited, and they are still working on the lines .It was the whole town. Last week we finally g

  • Is is possible to shuffle a playlist?

    have a 30GB color iPod, have several playlists, but it appears that the shuffle function only works on my entire library (really don't want to mix classical, country, and rock). is it possible to shuffle a playlist? got this new 3 days ago, just gett

  • SQLJ on Rdb ?

    My customer is planning to start development of J2EE applications to be deployed on VMS / Oracle-Rdb. Question 1: when is planned the official release of native JDBC for Rdb ? Question 2: is there any plan to have SQLJ for Rdb ? Thanks, Bernard