Find if in sequence editor API call

I swear I found this somewhere once but can't find it now.  What is the API call (or other mechanism) to determine if I'm running from the sequence editor versus a UI?
What I want to do is if running from sequence editor, make one call, but if running from UI, make another.
Thanks.
Solved!
Go to Solution.

RunState.IsEditor
Thanks,
PH

Similar Messages

  • Anyone know where I can find a list of portal api calls?

    Thanks

    Troy,
    Take a look at :
    http://portalstudio.oracle.com/pls/ops/docs/folder/community/pdk/
    plsql/doc/astart.htm
    for a full PL/SQL API lists
    Chu

  • Missing Bowse Sequence Editor

    One of my users has requested a browse sequence, but I can't
    find the Browse Sequence Editor. Another user had a similar problem
    in 2004 and resolved the situation when she ran an update.
    I checked for updates, but none were availalbe, so that's not
    going to work for me. I tried to add a tool, but could not find the
    .exe file. Any suggestions? Thanks. Charles Arnold

    Hi Charles
    I think Colum meant you should click the Tools menu item at
    the top of the screen. Not the Tools tab at the bottom of the
    RoboHelp Explorer pane.
    Cheers... Rick

  • API call for Sequence vs DLL in report options

    I've got my code to automatically use a text file no matter the selection of the Report Format.  But what I've found is that if DLL is selected, there are certain parts of my code that do not run versus when the Sequence is selected under "Select a Report Generator for Producing the Report Body".  Which makes sense to me since I want the callbacks to run.  But, I can't find out where in the API to set it to Sequence so that I can ensure my callbacks get run.
    Thanks in advance.

    It actually wouldn't be done through the API.  That info is stored inside of a variable during RunTime.  Ultimately it is stored in the ReportOptions.ini file but that gets read in during the ReportOptions callback.  The one you are looking for is called Locals.ReportOptions.BodyGenerator in the TestUUTs Entry Point and the Single Pass entry point.  You need to change that variable to Sequence instead of DLL.....I'm assuming.  I didn't try it yet.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a H

    I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.

    Nevermind I fixed it. Thank you.

  • XI AF API call failed. Module exception: Java Mapping

    Hi Experts,
    I have faced a typical error for one of my interface. The Scenario is SOAP to SOAP and we are performing SOAP Lookup  before sending the data to Target web service. We are using one Java Mapping  'FileIns_lookupLoad.java --- com/fi/' and performing the SOAP Lookup from within the code. In the Lookup Communication channel we are using 'Axis' as message protocol and passing couple of values through Module Key parameters. We have same ESR and ID objects in Development, Quality and Production (as per Version ID and History).
    Now the problem is Lookup is failing only in Development but Quality and Production is working fine. I have replaced Quality CC URL with the development WSDL URL, but that worked fine. That means Development Web Service is good. We are getting the below error in Dev:
    <SAP:Stack>StreamTransformationException triggered by application mapping program com/fi/FileIns_lookupLoad; Look Up Failed</SAP:Stack>
    Trace : *
    <Trace level="1"
    type="T"> Some Thing Wrong in LookUpError when calling an adapter by using the communication channel CC_IN_SOAP_GEInsuranceLoadLookup1 (Party: , Service: BusService_GE, Object ID: 4214805c52893ef9b0b3f0ef0902fe9e) XI AF API call failed. Module exception: 'while trying to invoke the method org.apache.axis.types.URI.toString() of an object returned from com.sap.xi.XI.Message._30.QualifiedName.getNamespace()'. Cause Exception: 'while trying to invoke the method org.apache.axis.types.URI.toString() of an object returned from com.sap.xi.XI.Message._30.QualifiedName.getNamespace()'. </Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
      <Trace level="1" type="T">Java mapping com/fi/FileIns_lookupLoad has thrown a StreamTransformationException. Thrown: com.sap.aii.mapping.api.StreamTransformationException: Look Up Failed at com.fi.FileIns_lookupLoad.execute(FileIns_lookupLoad.java:282) at com.fi.FileIns_lookupLoad.transform(FileIns_lookupLoad.java:74) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:92) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.SequenceMapping.executeStep.................................................
    ................................................................................<Trace level="1" type="T">Application mapping program com/fi/FileIns_lookupLoad throws a stream transformation exception: Look Up Failed Thrown: com.sap.aii.ib.core.mapping.execution.ApplicationException: Application mapping program com/fi/FileIns_lookupLoad throws a stream transformation exception: Look Up Failed at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:95) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.SequenceMapping.executeStep(SequenceMapping.java:40) at com.sap.aii.ib.server.mapping.execution.Mapping.execute
    I have already checked with Basis and as per them JDK and Java versions are identical in Dev, QAS and Prod. It seems something is wrong with 'XI AF API' which we are calling from the channel. If we totally ignore Lookup process and send direct data, it is working fine. Target CC is also using Axis.
    Sequence in CC: afreq ->xireq ->wssec2 ->xires ->afres
    For any more information please let me know.
    Thanks,
    Nabendu.

    Hi Anupam,
    The Java Mapping code is same in Dev , QAS and Prod. Also the versions of the JAR is same.
    Please find the code below.
    package com.fi;
    import java.util.HashMap;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.MappingTrace;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.DynamicConfiguration;
    import com.sap.aii.mapping.api.DynamicConfigurationKey;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    import org.w3c.dom.views.AbstractView;
    import org.xml.sax.SAXException;
    import java.io.ByteArrayInputStream;
    import com.sap.aii.mapping.lookup.*;
    /*import com.sap.aii.utilxi.hmis.server.HmisEnvironment.Accessor;
    //import com.sap.aii.utilxi.lock.api.LockServiceException;
    //import com.pmintl.pppimes.RFCLookup.javamapping.*;
    //import java.io.FileInputStream;
    //import java.io.FileOutputStream;*/
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    //import java.text.ParseException;
    import java.util.Date;
    import java.io.*;
    public class FileIns_lookupLoad extends AbstractTransformation{
            private Map param = null;
            private AbstractTrace trace = getTrace();
            String senderService = null;
           String inParamChannel = null;
           String inParamBusService = null;
              //3. Each JAVA Mapping using program 7.1 API must implement the method
              // transform(TransformationInput in, TransformationOutput out)
              // as oppose to execute Method in earlier version.
               public void transform(TransformationInput arg0, TransformationOutput arg1) throws StreamTransformationException {
              // TODO Auto-generated method stub
              //4. An info message is added to trace. An instance of trace of object is obtained by calling
              // the getTrace method of class AbstractTransformation
                    inParamChannel = arg0.getInputParameters().getString("COMM_CHANNEL");
                    inParamBusService = arg0.getInputParameters().getString("BUS_SERVICE");
                    getTrace().addInfo("Input Parameter: " + inParamChannel);
                    getTrace().addInfo("Input Parameter: " + inParamBusService);
                    this.execute(arg0.getInputPayload().getInputStream(),
                          arg1.getOutputPayload().getOutputStream());
              //5. Input payload is obtained by using arg0.getInputPayload().getInputStream()
          * @param args
         public static void main(String[] args) {
                // TODO Auto-generated method stub
         public void execute(InputStream in, OutputStream out)
                   throws StreamTransformationException {
              // TODO Auto-generated method stub
              try
                   //Get The Trace
    //               trace = (AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE );
                   trace = getTrace();
                  getTrace().addInfo("Java Mapping Started");
                   DocumentBuilderFactory ifactory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder ibuilder = ifactory.newDocumentBuilder();
                   Document IDoc  = ibuilder.parse(in);
                   Document TDoc = ibuilder.newDocument();
                   String mrnVal = "";
                   trace.addInfo("Preparing Target Doc");
                   Element message = TDoc.createElementNS("urn:Medtronic.com:CATS_Patient_Transactions","n1:Mt_Insurance");
                   Node tRoot = TDoc.appendChild(message);
                   //trace.addInfo(tRoot.getNodeName());
                   Element sRoot = (Element)IDoc.getFirstChild();
                   //trace.addInfo(sRoot.getNodeName());
                   NodeList nl = sRoot.getChildNodes();
               // trace.addInfo("Len"+nl.getLength());
    ////               for(int i=0;i<nl.getLength();i++)
    //                    Node n1 = TDoc.importNode(nl.item(i), true);
    //                    trace.addInfo("Adding Child Nodes");
    //                    trace.addInfo(nl.item(i).getNodeName());
    //                    tRoot.appendChild(n1);
                   NodeList lmrn = sRoot.getElementsByTagName("Mrn");
                   if(lmrn != null)
                        Node n1 = TDoc.importNode(lmrn.item(0), true);
                        Element e1 = (Element)lmrn.item(0);
                        //trace.addInfo(e1.getNodeName());
                        mrnVal = e1.getTextContent();
                        tRoot.appendChild(n1);
                   NodeList lfsc = sRoot.getElementsByTagName("Fsc");
                   if(lfsc != null)
                        for(int i=0;i<lfsc.getLength();i++){
                             Element n1=TDoc.createElement(lfsc.item(i).getNodeName());
                             tRoot.appendChild(n1);
                             Node fieldch = TDoc.createElement("Fields");
                             n1.appendChild(fieldch);
                             NodeList chl = lfsc.item(i).getChildNodes();
                             trace.addInfo("len11"+chl.getLength());
                             for(int j=0;j<chl.getLength();j++){
                                  if(!chl.item(j).getNodeName().equals("FscNumber")&&!chl.item(j).getNodeName().equals("Priority")){
                                       if(chl.item(j).hasChildNodes()){
                                            trace.addInfo(chl.item(j).getNodeName());
                                       Element fscfield = TDoc.createElement("FSCField");
                                       fieldch.appendChild(fscfield);
                                       NodeList FUQl = chl.item(j).getChildNodes();
                                       for(int p =0;p<FUQl.getLength();p++){
                                            //trace.addInfo(" i: "+i+" J: "+j+" P: "+p);
                                            if(FUQl.item(p).getNodeName().equals("FUQNumber")){
                                                 //Node tFUQ = TDoc.createElement("FUQNumber");
                                                 //tFUQ.setTextContent(FUQl.item(p).getTextContent());
                                                 fscfield.setAttribute("FUQNumber", FUQl.item(p).getTextContent());
                                            if(FUQl.item(p).getNodeName().equals("Value")){
                                                 Node tVal = TDoc.createElement("Value");
                                                 tVal.setTextContent(FUQl.item(p).getTextContent());
                                                 fscfield.appendChild(tVal);
                                                 //Node tName = TDoc.createElement("Field");
                                                 //tName.setTextContent(chl.item(j).getNodeName());
                                                 fscfield.setAttribute("Field", chl.item(j).getNodeName());
    //                                   Node fuqch = chl.item(j).getFirstChild();
    //                                   Node valch = fuqch.getNextSibling();
    //                                   if(fuqch!=null){
    //                                        Node tFUQ = TDoc.createElement("FUQNumber");
    //                                        tFUQ.setTextContent(fuqch.getTextContent());
    //                                        fscfield.appendChild(tFUQ);
    //                                   if(valch!=null){
    //                                        Node tVal = TDoc.createElement("Value");
    //                                        tVal.setTextContent(valch.getTextContent());
    //                                        fscfield.appendChild(tVal);
    //                                        Node tName = TDoc.createElement("Filed");
    //                                        tName.setTextContent(chl.item(j).getNodeName());
    //                                        fscfield.appendChild(tName);
                                  else{
                                       //Node numch =TDoc.importNode(chl.item(j), true);
                                       //Element e1 =(Element)n1;
                                       if(chl.item(j).getNodeName().equals("FscNumber")){
                                            n1.setAttribute("Number", chl.item(j).getTextContent());
                                       if(chl.item(j).getNodeName().equals("Priority")){
                                            n1.setAttribute("Priority", chl.item(j).getTextContent());
                             //tRoot.appendChild(lfsc.item(0));
    //                         Element e1 = (Element)lfsc.item(0);
    //                         trace.addInfo(e1.getNodeName());
    //                         mrnVal = e1.getNodeValue();
    /////Start of Look Up Code////
                   //Preparing Input String
                   String lookUpRequest = "<LoadPatientFullInsuranceDetail><Mrn>"+mrnVal+"</Mrn></LoadPatientFullInsuranceDetail>";
                   trace.addInfo("Request");
                   trace.addInfo(lookUpRequest);
                        SystemAccessor acc;
                        Channel channel;
                        Payload lookupResult;     
                        try
                             channel = LookupService.getChannel(inParamBusService, inParamChannel);
                             trace.addInfo("Got the channel");
                             acc = LookupService.getSystemAccessor(channel);
                             trace.addInfo("Got The Channel and Accessor");
                             InputStream ist = new ByteArrayInputStream(lookUpRequest.getBytes());
                             XmlPayload payload = LookupService.getXmlPayload(ist);
                             if(acc != null){
                                  trace.addInfo("Got The Channel and Accessor");
                                  trace.addInfo("Executing The Webservice");
                                  lookupResult = acc.call(payload);
                                  trace.addInfo("End of Executing The Webservice");
                                  trace.addInfo(lookupResult.toString());
                             if(lookUpRequest!=null){
                                  trace.addInfo("Responce is not null");
                                  InputStream rist = lookupResult.getContent();
                                  Document lresDoc = ibuilder.parse(rist);
                                  Node n1 = lresDoc.getFirstChild();
                                  trace.addInfo(n1.getNodeName());
                                  if(n1.getNodeName().endsWith("LoadPatientFullInsuranceDetailResponse"))
                                       Node ch1 = n1.getFirstChild();
                                       trace.addInfo(ch1.getNodeName());
                                       NodeList lookupnl = ch1.getChildNodes();
                                       //trace.add
                                       for(int i=0;i<lookupnl.getLength();i++)
                                            Node n2 = TDoc.importNode(lookupnl.item(i), true);
                                            trace.addInfo("Adding Child Nodes");
                                            trace.addInfo(lookupnl.item(i).getNodeName());
                                            tRoot.appendChild(n2);
                                  else{
                                  throw new StreamTransformationException("Error in Look Up"+n1.getTextContent());
                                   //while(ch1.hasChildNodes() && !ch1.getNodeName().equals("FSCS")){
                             else{
                                  trace.addWarning("Responce is null");
                                 throw new LookupException();
                        catch(LookupException le)
                             trace.addWarning("Some Thing Wrong in LookUp"+le.getMessage());
                             throw new StreamTransformationException("Look Up Failed");                         
                           Transformer transformer = TransformerFactory.newInstance().newTransformer();
    //                       StreamResult reqResult = new StreamResult(new StringWriter());
                           DOMSource source = new DOMSource(TDoc);
                           Result result = new StreamResult(out);
                           transformer.transform(source,result);
              catch(StreamTransformationException ste)
               throw new StreamTransformationException(ste.getMessage());
              catch(Exception e){
                   trace.addInfo(e.getMessage());
              finally{

  • Distributed TestStand vs. Sequence Editor

    I am having problems with TestExec that I created a distribution for.  The executable that I created and distributed, will not run, for failing to find or open a DLL.  However, when I run the same sequence using the Sequence Editor that I also included in the distribution, it works fine.  I have checked and it appears that all setting are the same on both the Executable and the Sequence Editor, can anyone explaion this.

    Hi greggj_00,
    Did you follow the directions in this article to include your search directories and configuration in your deployment?  I'm assuming this is a DLL which is called by by one of the steps in your sequence.  Where is this DLL placed on the file system in relation to the sequence file?  Also could you post some more info on the error like snowpunter suggested?
    Justin D
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Missing Database Options under Configure menu in Sequence Editor

    In my TestStand 4.0 Sequence Editor, the "Database Options" is missing under "Configure" menu. Does anyone know how to enable this option?
    Thanks

    Glad that was it! Definitely narrows things down.
    These entries on the Configure menu are controlled by a special type of sequence in the process model called Configuration entry points. If you open up one of the default models, you will see a sequence in the Sequences pane called "Configure Database Options". This is the default database options sequence.
    It's possible that your custom model contains a Configure Database Options sequence, but that it isn't configured to be an entry point. You can change this setting by right-clicking the sequence and choosing Sequence Properties. 
    If the custom model does not contain the database functionality at all, further work may be required to add that functionality in. Here's a document explaining how to add new configuration entry points to a process model: http://www.ni.com/white-paper/3837/en Depending on whether this model was originally based on one of our default models and how much of the original database logging code is still present, it may require a fair amount of work to reimplement that functionality. It might be a good idea to contact the person who created this custom model to find out more information about why those database options were removed and how difficult it might be to reimplement them.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • My Sequence Editor is crashing

    Hello
    Have written a c++ dll function whitch is used in the model. In the function i get pointer to the Execution via SequenceContext.
    ExecutionPtr pExecution = m_pContext->Execution;
    // Now do some stuff 
    pExecution->Release();
    In the Operater Interface this works well, because the helpfile said:
    Execution Property (Read Only)
    Syntax
    SequenceContext.Execution
    Data Type
    Execution
    Purpose
    Returns a reference to the currently executing execution. Release your reference to this object when you are done using it.
    if i delete:  pExecution->Release(); The sequence editor works too:
    That means the Editor is using this reference, too.
    Please tell me where will this object bereleased?
    Greetings from the lake of constance, Germany
    juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

    It looks like you are using the TestStand API via a #import generated C++ wrapper.  This is probably the best way to use any COM server in C++, but you need understand that the types that you use are C++ smart pointers.  For example, the local variable of type "ExecutionPtr" is a C++ smart pointer class that will automatically release the reference it holds when it goes out of scope, which is a nice feature!. Thus, you shouldn't call Release directly, because then it will be called twice.
    If you are curious, the implementation of the COM smart pointers for #import wrappers can ultimately be found in the _com_ptr_t class which is in your copy of Program Files\Microsoft Visual Studio 8\VC\Include\comip.h file.

  • How to add a top level menu to TestStand Sequence Editor

    Hi,
    Am unable to add a new top level menu item like File, Edit, Tools, Windows in Sequence Editor. Is it possible to add the same? Can anyone share code snippet to use TestStand API so that a new menu is created?
    Please find the attached snapshot and am trying to add "NewMenu" to SeqEdit. 
    TestStand Version is 4.0 
    Thanks
    Mrm 
    Attachments:
    NewtopLevelMenu.JPG ‏184 KB

    Hello Mrm,
    Adding a new menu is not going to be possible since the source code of the Sequence Editor is not accessible. However, you do have a few options:
    1) Add a new toolbar
    2) Create and entry point (configuration or execution) that will show in one of the existing menus. Here is a KnowledgeBase article that describes this more.
    3) Customize the right click context menus.
    4) Build your own UI or customize one of the shipping UI's (since you have access to that source code).
    What is the overall goal in doing this? Let me know so I can assist you further if needed.
    With warm regards,
    David D.

  • API call that will list the meetings of employees that are assigned to a manager

    Hi,
    What is the API call that will list the meetings of employees that are assigned to a manager?  The manager will be logged in and when I use the API call:
    http://[serverid]/api/xml?&action=report-my-meetings&principal-id=[##]
    I always get the same results which is a list of the meetings for the manager.  If put the id of the employee, I still get the managers meetings.
    I have looked through all of the API documentation and cannot find which call I could make to get the results that I want.  The documentation specifically says that report-my-meetings provides information about meetings that the logged in user is scheduled to attend.  So how do I get the information for the managers employees?
    What is needed is the Name, Duration, and Start Time of all meetings that the employee is enrolled in who is assigned to the manager that is logged in.
    Thanks for any help with this!

    I posted this in the wrong forum and have moved it to the XML forum.

  • Is there a way to sort easily sequences by name in the sequence editor?

    I want to sort my sequences by name. It really doesn't matter the order because I am calling those sequences from a main sequence. I am using TestStand 4.2, I saw a previous question for an older TestStand and I was hoping that maybe this function was added to newer version.
    Regards

    Oroan,
    There is no explicit function to do this but as Ray was saying you could write your own. Here's a link to an outdated discussion forum describing the process 
    sort sequences in a sequence file
    http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=5923
    Updated for TestStand 4.2 you can do this by instead of using the ActiveX API use TestStand expressions. You can determine the number of sequences in your sequence file by calling SequenceFile.NumSequences. Loop for each of the sequences and get the name by using SequenceFile.GetSequence (Number index).Name. Sort all of these names using your favorite sorting algorithm and then remove them and insert them back in the sequence using SequenceFile.RemoveSequence (Number index) and SequenceFile.InsertSequenceEx (Number index, Object Reference sequenceToInsert). The RemoveSequence Method will return the Object Reference you need for InsertSequenceEx.
    Regards,
    Steven Zittrower
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Human Task Bulk API calls from ADF Entity Object

    Dear all,
    Jdev: 11.1.1.7.1
    We have a requirement where in human task APIs need to be invoked on status changes of an ADF Entity (EO). We presently achieve this in the afterCommit() method and all is well.
    But we are looking to leverage the Human Task bulk update APIs and am wondering how to do that.
    The EO does support a batch mode - Is there a batch mode API that we can override to place the bulk update API call?
    Thanks

    in version 11.1.1.6 getInputStream() and getContent() do not work, this is know bug you can find in the oracle support at
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=175895926830291&type=DOCUMENT&id=1451100.1&displayIndex=8&_afrWindowMode=0&_adf.ctrl-state=tlzphlagm_69
    there you can find a .zip file with a full example code.
    Actually Oracle does not consider it a bug:
    "This issue was reviewed by Engineering in Bug 13873092 and is not considered a bug. There is a workaround to retrieve task contents through 'WFTaskUpdate' Servlet as described in the attached Sample project."
    but in my opinion it is a very big bug endeed, and it drove me mad for days! :(
    Anyway here is a snippet with the workaroud in case you do not have access to the oracle support site:
    if att is you attachment and wfContext is your workflow context set somewhere
    AttachmentType att;
    IWorkflowContext wfContext;
    instead of doing this
    InputStream inputStream = att.getInputStream();
    do this
    String contextId = wfContext.getToken();
    String attachmentURL = WFUtils.getTaskUpdateURL(att.getTaskId(), contextId, "" + att.getVersion(),att.getName(),
    Constants.WFTASK_QUERY_ATTACHMENT_BUTTON_KEY_NAME);
    if ( attachmentURL == null ) {
    System.out.println("Unable to generate URL to get attachmentcontent");
    try {
    URL url = new URL(attachmentURL);
    URLConnection conn = url.openConnection();
    InputStream inputStream = conn.getInputStream();
    } catch ( Exception e ) {
    e.printStackTrace();
    hope this helps
    Massi

  • TestStand 4.0 Sequence Editor Comments

    We are in the process of upgrading from TestStand 3.5 to 4.0.
    We use mostly Custom Steps and the Comments in the steps are used as "Help" instructions for each Custom Step Type.
    In TestStand 4.0, the comments show up in the Sequence Editor and for us are mostly repeatative. 
    Is there a way to suppress the comments from showing up on the Sequence Editor but still allow reading them in the Step properties? 
    I searched through the Station Options and other system configuration options but can't find anything.
    Mike

    Check out:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=15113#M15113

  • Is there a way to find text within Sequence?

    Many of the TestStand 3.0 sequences that I'm creating are fairly lengthy (200 or more steps plus subsequences) and I often need to find a step within the sequence that has a specific string in the Step Name.
    I'm aware of the "Find" feature, but this will change screens and give me a list of all of the steps in the sequence that contain the search string.
    What I want to do is to search for the string within the Sequence so that it takes me to the NEXT occurance of that string (F3 for Find Next), so that I can Edit the Step (i.e. change the Specify Module, Preconditions, or Expressions).
    The only workaround that I've figured out so far is to highlight the sequence, do a "CTL-C" and paste into a word processor, then search th
    at document. Once I find it, I then have to find the same line in the TestStand Sequence.
    Is there an easier way?
    Mike

    Mike -
    I do understand your wanting this type of Find capability. We had considered different designs of Find feature in TestStand and one design allowed for F3 to traverse the tree view of a single step group in a sequence. There were drawbacks to this approach, so we decided on the current implementation. Since you cannot instruct the sequence editor to view specific location in its tree view, any solution that you create would require your own sequence tree view to facilitate the display and editing of the values. The SearchResults class in TestStand 3.0 was used to implement the underlying find functionality in the sequence editor.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

Maybe you are looking for

  • OIM AD Connector (AD 9.1.1.4) Error

    Hi experts, We are configuring the connector MS AD 9.1.1.4 for OIM 9.1.0.2 BP07 on WebLogic 10.3.0. BD 10g (10.2.0.4). MS AD 2003. But when we try to execute the AD Group Recon Lookup, the following error happens : This are the values that we are pro

  • Novice EJB2 to EJB3 Conversion Question

    I would like to convert my stateless remote session beans to EJB3 using annotations. Can this be done incrementally? My first attempt, after adding the appropriate annotations, was to comment-out the session element for one of my beans in the ejb-jar

  • IDENTITY_INSERT Error

    We have recently migrated to Coldfusion 8 and have found that certain ALTER SQL commands that ran just fine in our old Coldfusion 7 environment will generate errors in CF8. We verified that all permission are given in both Coldfusion 8 Administrator

  • LMS 3.2 DFM Email subject customization question

    hello, In these options there are UserDefined fields. I would like the IP address added to our DFM email alerts and was wondering if that can be done by defining one of the UserDefined lines. If so, where do you modify these? thanks!

  • FAQ: What information should I provide when asking a question on this forum?

    When asking a question on the Premiere Pro user-to-user forums, you can make it easier for folks to help you by proactively providing the answers to the following questions: What version of Premiere Pro? Include the minor version number (e.g., Premie