Passing arguments to a WorkFlow launched from a Link field in a form

Hi. Anybody knows if it's possible to pass some argument to a WF launching it from a form?
In the form from which I call the WF, I have a var that contains a list. This list has to be passed as an argument to the WF.
The code:
<Field>
  <Display class='Link'>
    <Property name='name' value='Launch WF'/>
    <Property name='URL' value='user/processLaunch.jsp?id=My WorkFlow'/>
  </Display>
</Field>Can I add something to the URL propriety to pass the var?
Thanks,
O

add variables, prefixing them with 'op_', like the following:
<Property name='URL' value='user/processLaunch.jsp?id=My WorkFlow&op_myVar=myvalue'/>

Similar Messages

  • Warning: passing argument 2 of 'setValue:forKey:' from distinct Objective-C

    I want to keep my projects warning free. In the following line
    [tempValues setValue:@"Some Text" forKey:[NSNumber numberWithInt:0]];
    the compiler complains with an
    "warning: passing argument 2 of 'setValue:forKey:' from distinct Objective-C type" warning.
    tempValues is an NSMutableDictionary.
    Any idea how to resolve this warning?

    Essentially, the typical rationale behind this particular warning is: The compiler must not let you write code that seeks to modify a non-modifiable object without giving some warning.
    Are you in effect trying to modify a non-modifiable object?
    Remember...(and I quote because I'm too lazy otherwise) "When you have a variable of type NSMutableArray*, then anyone would think that the array it points to can be modified. So if this variable contains a pointer to an actual non-mutable array, that would be a recipe for disaster, because any attempt to actually modify the array would fail in some way. For that reason, Objective-C must not just allow an assignment assigning an NSArray* to an NSMutableArray* variable.
    The other way round is harmless: Anyone looking at a variable of type NSArray* would think the array cannot be modified and therefore won't try to modify it. If the actual object is an NSMutableArray, no harm is done."

  • How to pass arguments to a batch file from java code

    Hi
    I have a batch file (marcxml.bat) which has the following excerpt :
    @echo off
    if x==%1x goto howto
    java -cp C:\Downloads\Marcxml\marc4j.jar; C:\Downloads\Marcxml\marcxml.jar; %1 %2 %3
    goto end
    I'm calling this batch file from a java code with the following line of code:
    Process p = Runtime.getRuntime().exec("cmd /c start C:/Downloads/Marcxml/marcxml.bat");
    so ,that invokes the batch file.Till that point its ok.
    since the batch file accpets arguments(%1 %2 %3) how do i pass those arguments to the batch file from my code ...???
    %1 is a classname : for ex: gov.loc.marcxml.MARC21slim2MARC
    %2 is the name of the input file for ex : C:/Downloads/Marcxml/source.xml
    %3 is the name of the output file for ex: C:/Downloads/Marcxml/target.mrc
    could someone help me...
    if i include these parameters too along with the above line of code i.e
    Process p = Runtime.getRuntime().exec("cmd /c start C:/Downloads/Marcxml/marcxml.bat gov.loc.marcxml.MARC21slim2MARC C:\\Downloads\\Marcxml\\source.xml C:\\Downloads\\Marcxml\\target.mrc") ;
    I get the following error :
    Exception in thread main java.lang.Noclassdef foundError: c:Downloads\marcxml\source/xml
    could some one tell me if i'm doing the right way in passing the arguments to the batch file if not what is the right way??
    Message was edited by:
    justunme1

    1 - create a java class (Executer.java) for example:
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    public class Executer {
         public static void main(String[] args) {
              try {
                   for (int i = 0; i < args.length; i++) {
                        System.out.println(args);
                   Class<?> c = Class.forName(args[0]);
                   Class[] argTypes = new Class[] { String[].class };
                   Method main = c.getDeclaredMethod("main", argTypes);
                   // String[] mainArgs = Arrays.copyOfRange(args, 1, args.length); //JDK 6
                   //jdk <6
                   String[] mainArgs = new String[args.length - 1];
                   for (int i = 0; i < mainArgs.length; i++) {
                        mainArgs[i] = args[i + 1];
                   main.invoke(null, (Object) mainArgs);
                   // production code should handle these exceptions more gracefully
              } catch (ClassNotFoundException x) {
                   x.printStackTrace();
              } catch (NoSuchMethodException x) {
                   x.printStackTrace();
              } catch (IllegalAccessException x) {
                   x.printStackTrace();
              } catch (InvocationTargetException x) {
                   x.printStackTrace();
              } catch (Exception e) {
                   e.printStackTrace();
    2 - create a .bat file:
    @echo off
    java -cp C:\Downloads\Marcxml\marc4j.jar; C:\Downloads\Marcxml\marcxml.jar; Executer %TARGET_CLASS% %IN_FILE% %OUT_FILE%3 - use set command to pass variable:
    Open MS-DOS, and type the following:
    set TARGET_CLASS=MyTargetClass
    set IN_FILE=in.txt
    set OUT_FILE=out.txt
    Then run your .bat file (in the same ms dos window)
    Hope that Helps

  • Passing arguments to the jsx file from command line

    Thanks for taking my question.
    I am using the following to be able to run my script from the command line.In case you were wondering on why i would be doing this- i would need to invoke the javascript from a server side code(like java,php etc. in my case it is java)
    "c:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" "c:\path to script\myscript.jsx"
    Anyways, i have been successful in running the myscript.jsx from the command line but i am not able to figure out how i could pass arguments to "myscript.jsx" from the command line, and be able to refer to these arguments within the script.
    I have tried the following
    "c:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" "c:\path to script\myscript.jsx" "argument1" "argument2"
    and tried to refer these arguments within the script using arguments[0] and arguments[1] . But looks like this does not work.
    Any thoughts?????

    To run JavaScript from the prompt using ExtendScript Toolkit 1.0.3 or 2.0.2 you need to do the following:
    Add the line #target indesign to the top of your script otherwise ESTK will open without executing the script. Example:
    #target indesign
    //MakeDocumentWithParameters.jsx
    //An InDesign CS2 JavaScript
    //Shows how to use the parameters of the document.open method.
    //The first parameter (showingWindow) controls the visibility of the
    //document. Hidden documents are not minimized, and will not appear until
    //you add a new window to the document. The second parameter (documentPreset)
    //specifies the document preset to use. The following line assumes that
    //you have a document preset named "Flyer" on your system.
    var myDocument = app.documents.add(true, app.documentPresets.item("Flyer"));
    //SaveDocumentAs.jsx
    //An InDesign CS2 JavaScript
    //If the active document has not been saved (ever), save it.
    if(app.activeDocument.saved == false){
    //If you do not provide a file name, InDesign will display the Save dialog box.
    app.activeDocument.save(new File("/c/temp/myTestDocument.indd"));
    Ensure Indesign is open. Execute the following command:
    "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" -run "[path to script]\script.jsx"
    For example:
    "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" -run "C:\Program Files\Adobe\Adobe InDesign CS2\Presets\Scripts\test.jsx"
    This command can be easily called from Java or any other third party application of your choice.
    It took me a while to find this information, so I thought I'd share it with everyone.
    Good luck!

  • Pass argument to anonymous workflow?

    I'm using Sun IdM 8.1 and want to pass an argument to a call to an anonymous workflow:
    Update profile
    The proccess is launched, but alternateAction is null.
    I have tried to define the variable alternateAction in the workflow as external, input and both but to no avail.
    Any suggestions?
    Best regards
    Stefan

    When you invokes the button, right before the action method.
    What exactly do you want to achieve? Now I think twice about it, the design may be somewhat odd. You just want to pass an argument to the rendered attribute regardless of action?
    If so:<h:someComponent binding="#{myBean.someComponent}" rendered="#{myBean.renderSomeComponent}">
        <f:attribute name="attributeName" value="attributeValue" />
    </h:someComponent>MyBeanprivate HtmlSomeComponent someComponent; // + getter + setter
    public boolean renderSomeComponent() {
        String attributeName = (String) someComponent.getAttributes().get("attributeName"); // "attributeValue"
        // Implement return.
    }

  • How do I pass arguments to a TestStand sequence from an operator interface written in LabWindows​?

    I intend to use TS_EngineNewExecution() which takes a VARIANT parameter for the arguments.
    I have only found example code for C++ where a propertyObject containing the arguments is converted to a VARIANT using the constructor of the _variant_t class.
    How do I accomplish this in LabWindows?

    Hi webprofile,
    I did not extensively test this code, but based on the previous posts, this is what the function might look like (I bolded the changes from what ships by default):
    TERetval Eng_BeginSeqExecution(tSeqFileRec *seqFileRec, // must NOT be NULL
                                   tSeqRec *seqRec,            // must NOT be NULL
                                   ListType checkedStepList,
                                   TEBool breakAtFirstTest)
        HRESULT res = 0;
        ERRORINFO errorInfo;
        TEBool errorOccurred = FALSE;
        CAObjHandle newExeH = 0;
        VARIANT editArgsVar;
        CAObjHandle editArgsH = 0;
        CAObjHandle params = 0;
        LPDISPATCH dispPtr; // varible used to convert parameters from CAObjHandle to Variant
        // Create container that will hold two parameters. First parameter is a number, second is a string.
        oleErrChkReportErrInfo(TS_EngineNewPropertyObject (sTEEngineObj, &errorInfo, TS_PropValType_Container, VFALSE, "", 0,&params));
        TS_PropertySetValNumber (params, &errorInfo, "Param1", 1, 45);
        TS_PropertySetValString (params, &errorInfo, "Param2", 1, "This is a string");
        // Converts CAObjHandle to Dispatch pointer
        TERetChk(CA_GetDispatchFromObjHandle (params, &dispPtr));
        TERetChk(CreateEditArgsObj(0, seqFileRec->seqFileH, seqRec->seqH, checkedStepList, &editArgsH));
        if (editArgsH) {
            LPDISPATCH editArgsDispatch = NULL;
            CA_GetDispatchFromObjHandle (editArgsH, &editArgsDispatch);
            editArgsVar = CA_VariantDispatch(editArgsDispatch);
        } else
            editArgsVar = CA_DEFAULT_VAL;
        oleErrChkReportErrInfo(TS_EngineNewExecution (sTEEngineObj, &errorInfo,
                                                      seqFileRec->seqFileH,
                                                      seqRec->seqName, 0,
                                                      TEBool2VBOOL(breakAtFirstTest),
                                                      TS_ExecTypeMask_Normal,
                                                      CA_VariantDispatch(dispPtr),
                                                      editArgsVar,
                                                      CA_DEFAULT_VAL, &newExeH));
        /* we'll get this again later on the StartOfExecution event
         * so free this reference to it */
        CA_DiscardObjHandle(newExeH);
    Error:
        if (editArgsH)
            CA_DiscardObjHandle(editArgsH);
        return !(errorOccurred || res < 0); /* return TRUE if no errors occurred */

  • Firefox 3.0.6 will not launch from email links

    I've been using Thunderbird for email with Firefox as my browser for years.
    I recently downloaded & installed Firefox 3.0.6 via up2date. Now clicking on links in Thunderbird emails no longer launches Firefox (as it did before). What has Oracle modified in its version of Firefox that prevents it from working with Thunderbird? (and please, don't tell me to use Evolution - yuck!) Thanks for any help.
    James

    Hi Tommy:
    I don't see anything that looks "suspicious."
    converter.html2txt.header_strategy default integer 1
    converter.html2txt.structs default boolean true
    editor.htmlWrapColumn default integer 72
    editor.html_editor default string
    editor.lastFileLocation.html default string
    editor.use_html_editor default integer 0
    mail.default_hmtl_action user set integer 2
    mail.html_compose default boolean true
    mail.identity.default.compose_html default boolean true
    mailnews.display.html_as default integer 0
    mailnews.display.html_sanitizer.allowed_tags default string html head title body p br div (long, title) h1 h2 ...
    mailnews.hmtl_domains default string
    James
    Edit: Formatting doesn't seem to be recognized in posts, so the "status," "type," & "value" columns above are run together.
    James

  • Default size of new browser window launched from community links portlet

    Does anyone know of a way to control the size of the new browser window that is launched when the user clicks a link in a Community Links portlet (or any other links that launch a new browser window)?
    We default all users to open links in a new browser window and I can't seem to find any rhyme or reason to how it sizes the resulting window. Some community links come out really skinny and un-user friendly, while others are nicely sized to near full screen.
    Is there some way to control this?
    Thank you.
    Darla

    Darla,
    Which version of the portal are you guys running? We are currently using 6.5 and all the links/Documents/ExternalLinks/Pages open up in a new browser window with the same sizes.
    Its basically controlled by javascript.
    G

  • How to prevent user from changing a field on a Form.

    I have a form and a report on the same page. The form is used to set criteria for the report. So after the criteria is entered on the form a button is clicked, which passes the criteria to the report. The form also displays some additional data based on the criteria, i.e. I do a query on the form.
    The problem I'm having is preventing the user from changing the additional data which is displayed. I tried all the wizzard options; i.e. not updatable, not insertable etc. but the user can still change the data.
    The only options seems to be writting some Java code for one of the triggers, but I haven't written any Java before.
    So I was wondering if anyone has a non-Java solution for this problem or an example of a Java program I could use to solve the problem.
    Thanks for any help
    Larry

    Hi,
    Suppose you want Empno, Sal fields of Employee table as Query only and all other fields user updateable then
    uncheck all the three check boxes
    Mandatory , Updatable , Insertable under validation options for those fields.
    When you run the form, these fields appear as text items in query mode and will appear labels once the querying done.
    Hope it works
    Madhav

  • I need to call a batch file from java and pass arguments to that Batch file

    Hi,
    I need to call a batch file from java and pass arguments to that Batch file.
    For example say: The batch file(test.bat) contains this command: mkdir
    I need to pass the name of the directory to the batch file as an argument from My Java program.
    Runtime.getRuntime().exec("cmd /c start test.bat");
    How to pass argument to the .bat file from Java now ?
    regards,
    Krish
    Edited by: Krish4Java on Oct 17, 2007 2:47 PM

    Hi Turing,
    I am able to pass the argument directly but unable to pass as a String.
    For example:
    Runtime.getRuntime().exec("cmd /c start test.bat sample ");
    When I pass it as a value sample, I am able to receive this value sample in the batch file. Do you know how to pass a String ?
    String s1="sample";
    Runtime.getRuntime().exec("cmd /c start test.bat s1 ");
    s1 gets passed here instead of value sample to the batch file.
    Pls let me know if you have a solution.
    Thanks,
    Krish

  • Attachments from Workflow to ABAP Webdynpro launched from UWL

    Hi All,
    You might have seen a recent post from me for sending attachments from ABAP Webdynpro to Workflow.
    I could do that by just calling SAP_WAPI_ATTACHMENT_ADD. I didnt have to create an instance of the SOFM object
    by passing the ATT_ID from this function module.
    Now the next task of the workflow which is sent to UWL, automatically carries the attachements in the Workitem.
    I didnt do binding from workflow container to Task container. (I dont know how!!)
    But I need to get those attachments on my ABAP Webdynpro after it is launched from UWL.
    For this I am using SAP_WAPI_GET_ATTACHEMENTS. But this FM is giving me the BOR reference.
    How do use this to get the attachments displayed on my Webdynpro as links?
    Thanks
    Deb

    Hi Debabra,
    I have similar requirement where I want to add new attachment from Webdynpro abap to workflow and again next level want to view it in UWL in another Webdynpro abap from workflow.
    I am trying to attach the document from Webdynpro to Workflow I used FM SAP_WAPI_ATTACHMENT_ADD and looks like it attached in workflow.
    Can you please tell  how the second part was solved where I want to attach document from workflow to Webdynpro abap
    Thanks,
    ST

  • 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

  • How to execute adobe air app & pass argument from Flex ?

    Helo everyone,
    May i ask a question, How to execute adobe air app & pass argument from Flex ?
    Thanks in advanced.
    Jacky Ho.

    Hello Jacky,
    You can find an example here
    http://spreadingfunkyness.com/passing-parameters-to-adobe-air-at-startup/

  • How to pass arguments from PAPI to the process

    Can any one tell me How to pass arguments from PAPI to the process.

    The link Creating a new work item instance in a process using PAPI shows how to create instances on PAPI and pass in the variable information as they are being created.
    Provide some additional detail if you're interested in seeing how to pass in variable information using PAPI for scenarios other than instance creation.
    Dan

  • Pass arguments to javascript from plug in...

    Hi,
    I m using InDesign CS3 on MAC OS...
    I have a plugin calling a javascript. I need to pass a string value from the plug in to the script...
    I found that there is a parameter in the method RunFile in IScriptRunner.h for this purpose... But i don kno how to use this...
    virtual ErrorCode    RunFile(const IDFile& idFile, IScriptEventData* data,  bool16 showErrorAlert = kTrue, bool16 invokeDebugger = kFalse) = 0;
    where,
    @param data is used to pass arguments and return the result IN/OUT
    What does this  IScriptEventData* data carry???
    How to pass a string value as argument to javascript from plugin code and how to retrieve and use it there...
    Is there any sample code for this?
    Someone pls guide me...
    Thank you.

    Are there other command line options with extendscript, like compile to jsxbin etc.. Where is this documented?
    UDevp wrote:
    I used the below command to run script from command prompt, I'm able to run the script but not able to pass arguments to the script.
       "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS4\ExtendScript Toolkit.exe" -run "C:\Program Files\Adobe\Adobe InDesign CS4\Scripts\test.jsx"
    Any suggestion would be helpful..
    It may be possible to edit prefs file with command line and to check file in script.

Maybe you are looking for

  • Itunes 10.6.1 does not open- Windows XP

    Good Evening Gang, I recently reinstalled windows XP and downloaded the new itunes 10.6. Itunes starts with the end user agreement and does not open after I accept. I have tried everything and nothing seems to work and I cannot sync any of my apple d

  • Cisco security manager deployment issue with invalid command

    Running CSM 3.3.1, to manage an 800 series pre-configured router. The router has a number of policy ACL's and class-maps configured. When the config is imported to CSM a number of warnings are seen reporting that some of the interfaces are unprotecte

  • Is there something to connect an iPod to something with a 3.5mm jack?

    I'm looking for something to connect my iPod to my car's audio Jack wirelessly to avoid the cable confusions. any ideas? I don't like those FM transmitters either so don't even bother with that.

  • Error on office for mac

    hi purchased a new macbook, initital set up was via firewire from my powerbook, then loaded in office mac 2004 all ok except this message when i load up excel and powerpoint 'an unexpected error occured while trying to load microsoft framework' can a

  • WRT610N Version 1 - Broken link to firmware.

    Title pretty much says it all. The Support page has an option to download new firmware for Ver. 1 hardware, but the link is broken. I am pretty upset you Customer Service guys haven't fiogured it out & fixed this yet Solved! Go to Solution.