OWSM: How to reference Custom Step properties/parameters?

Hi,
When you define a Custom Step via a XML file. You can define properties/parameters. In the sample files that comes with OWSM (CustomAuthenticationStep.xml) Username and Password are defined. My problem is that I cannot figure out how to reference these in the Java Step source. In the sample file CustomAuthenticationStep.java there are no references. There are two class variables called expectedUsername and expectedUserPassword, but they are never set in the source? There are nothing in the Extensibility Guide about this. Anybody know how it works?
Regards Peter

I've made a couple of these now. It somehow walks through the xml file you upload and then the properties defined are matched with the appropriate get/set methods in the actual java code.
One example I had to make was to add HTTP Basic Auth headers to a request. Here is the section of the xml file.
<csw:PropertyDefinitionSet name="HTTP Basic Auth Params">
<csw:PropertyDefinition name="httpBasicAuthUsername" type="string" isRequired="true">
<csw:DisplayName>Username</csw:DisplayName>
<csw:Description>Http Basic Auth Username</csw:Description>
<csw:DefaultValue>
<csw:Absolute>USERNAME</csw:Absolute>
</csw:DefaultValue>
</csw:PropertyDefinition>
<csw:PropertyDefinition name="httpBasicAuthPassword" type="string" isRequired="true" displayType="password">
<csw:DisplayName>Http Basic Auth Password</csw:DisplayName>
<csw:Description>Password to access Private Key</csw:Description>
<csw:DefaultValue>
<csw:Absolute>PASSWORD</csw:Absolute>
</csw:DefaultValue>
</csw:PropertyDefinition>
</csw:PropertyDefinitionSet>
You then have these get/set methods at the bottom of the class I created.
public String gethttpBasicAuthUsername() {
return this._httpBasicAuthUsername;
public void sethttpBasicAuthUsername(String username) {
this._httpBasicAuthUsername = username;
public String gethttpBasicAuthPassword() {
return this._httpBasicAuthPassword;
public void sethttpBasicAuthPassword(String password) {
this._httpBasicAuthPassword = password;
Then I had this and the properties were available for use.
public class BasicAuthStep extends AbstractStep {
private String _httpBasicAuthUsername = null;
private String _httpBasicAuthPassword = null;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Export custom step properties for all sequences based upon expression

    I want to export only my custom step properties to a database. I realize this can be done one at a time but I'm looking for a more general, quicker solution since I have dozens of custom steps and many instances of each. I can probably do this, but if someone has already developed a method I could use the info. Thanks.
    kph 

    Hi kph,
    Unfortunately, there is not a straightforward way to solve this
    problem.  TestStand does not currently support any database
    configuration through programmatic means.  The customized database
    must be configured ahead of time.  I would handle the issue by
    setting up this database in configure >> Database Options. 
    The quickest solution for customization would be to duplicate one of
    the default Schemas (for example, Generic Recordset) under the "Schema"
    tab.  Under the statements tab, you can then cut out all of the
    unwanted statements (it sounds like you'll want to cut out most of
    them) and add new statments for your custom steps.   In this
    step, be sure to reference your custom step type for each statement in
    the "Types to Log" field.
    Under the Columns/Parameters tab, you can then add all of the properties you would like to save for each configured statement.
    At this point, you can use TestStand to create a SQL script file to
    match the Schema you just created.  From the Schema tab, you can
    select the Build .sql File dialog box.  After saving and running
    the script, you will have successfully created the required tables for
    the custom schema. 
    At this point, the custom properties should log to the database.
    Hope this helps in your application development!
    Andrew W. - Applications Engineer

  • How to manage custom document properties (e.g., company name, project name)

    Hi,
    How to manage custom document properties (e.g., company name, project name, event date...) in Apple iWork Pages like it is possible in Microsoft Office Word ?
    The idea is to simplify the management of multiple instances of same piece of information in a document by writing them once as a "properties" of the document that can be referencing in different places of the document. Changing the property value, will automatically change all its instances.
    Thanks in advance for your help

    Thanks for your help Peter.
    Search-Replace and Auto-Substitution are not requivalent for me since I'm looking for something more complex.
    Suppose you have a document about an Event which occur on a specific date (e.g., 11-09-2003).
    In your document, you may be interested in...
    - sometimes display the date as '11-09-2003',
    - sometimes display the date as 'Novembre, 2003',
    - sometimes display the date as 'Sunday, November 9, 2003'.
    With a document property, you would be able to define the EventDate as 11-09-2003, and then define different specific format (e.g., 'mm-dd-yyyy', 'mmmm, yyyy'...) for each reference to the EventDate document property.
    Using Search-Replace of Auto-Substitution, it will be painful since you will have to define as one token per format of a document property (e.g., EventDateAsMMDDYYY, EventDateAsMMMMYYYY...).
    More than that, suppose you have a Numbers table inserted in your Pages document.
    You may be interested in using some document properties in formulas.
    This can't be solved using Search-Replace.
    But its ok, I will wait until this feature will be supported in Pages.

  • OWSM: Modify SOAPMessage in custom step

    I'm working on a custom step to provide web service authentication. For whatever reason, I've been told that to put the security token inside of of the SOAPBody and not in a header. Anyway, our request will look something like:
    &lt;SOAPBody&gt;
    &lt;FooRequest&gt;
    &lt;SecurityToken&gt;'security token'&lt;/SecurityToken&gt;
    &lt;/FooRequest&gt;
    &lt;/SOAPBody&gt;
    I have no problems extracting the contents of &lt;SecurityToken&gt;. Once extracted, I run the token through some processing to return a username. At that point, I want to replace 'security token' with the 'username' I computed.
    So my BPEL process will receive something like:
    &lt;SOAPBody&gt;
    &lt;FooRequest&gt;
    &lt;SecurityToken&gt;'username'&lt;/SecurityToken&gt;
    &lt;/FooRequest&gt;
    &lt;/SOAPBody&gt;
    Problem is I don't see how to easily accomplish this. For whatever reason, my SOAPElement does not have the setValue function available. I've gone as far as detaching the element and then recreating it. But in doing so, I'm not able to get the namespaces and prefixes setup easily.
    Any ideas?
    I think I'm going to have to convince some people that it would be better to put the 'security token' in WS-Security's BinarySecurityToken and then adding the UsernameToken to the SOAPHeader.

    I'm working on a custom step to provide web service authentication. For whatever reason, I've been told that to put the security token inside of of the SOAPBody and not in a header. Anyway, our request will look something like:
    &lt;SOAPBody&gt;
    &lt;FooRequest&gt;
    &lt;SecurityToken&gt;'security token'&lt;/SecurityToken&gt;
    &lt;/FooRequest&gt;
    &lt;/SOAPBody&gt;
    I have no problems extracting the contents of &lt;SecurityToken&gt;. Once extracted, I run the token through some processing to return a username. At that point, I want to replace 'security token' with the 'username' I computed.
    So my BPEL process will receive something like:
    &lt;SOAPBody&gt;
    &lt;FooRequest&gt;
    &lt;SecurityToken&gt;'username'&lt;/SecurityToken&gt;
    &lt;/FooRequest&gt;
    &lt;/SOAPBody&gt;
    Problem is I don't see how to easily accomplish this. For whatever reason, my SOAPElement does not have the setValue function available. I've gone as far as detaching the element and then recreating it. But in doing so, I'm not able to get the namespaces and prefixes setup easily.
    Any ideas?
    I think I'm going to have to convince some people that it would be better to put the 'security token' in WS-Security's BinarySecurityToken and then adding the UsernameToken to the SOAPHeader.

  • How to deploy custom Step List Configurations?

    Step List Configurations is accessible to user via right click menu in Sequence File and Execution panes. How to deploy the custom Step List Configuration what I have at my deployment computer? Next question, if the user will modify this menu, how do not overwright the local changes with a new version installation?
    Sergey Kolbunov
    CLA, CTD

    skof,
    To you copy your Step List Configurations to another PC you can find them stored in the layout_current.bin file found in C:\Documents and Settings\<windows username>\Local Settings\Application Data\National Instruments\TestStand X.X directory.  If you copy this file to the same location on another PC, or even on the same PC to a different user account, your Step List Configurations should carry over.
    Since this file is stored in a directory that is different for each major version of TestStand, you shoulnd't have to worry about overwriting it if you install a new major version (4.2 over 4.1). I haven't tested for minor revisions that would share a folder (4.0 & 4.0.1) but that would be the only situation in which you might need to be concerned.
    John B.
    Applications Engineer
    National Instruments

  • OWSM: How to use log step

    Hi,
    I want to make use of the LOG step in the policy to write whatever happened in the request and response pipelines. but inclusion of the log step makes no difference. i want to know whether this is possible or not.
    If anyone has some tutorials for how to use log step pl send me.
    Thanks in advance.
    Regards,
    Abhi...

    Hi!
    If i just make a little example and add the logstep before and after for example a xmlencrypt-policy-step, and log the whole payload..everything works fine overhere.
    If i go to the Operational Management>Overall Statistics>Message Logs and can see every step inwhich it got called (the log policy step)

  • How to create custom folder for parameterized query

    Hi Gurus,
    I developed a query to generate report to " who is reporting to who in organization", when i am trying to create custom folder using this query but i am getting error like "The custom sql entered contains parameter and therefore invalid". Could you please help to parameterize the emp_key in query in Oracle Discoverer. Is there any way to pass the value using external procedure for this query.
    SELECT
    lpad(' ', 8 *(LEVEL -1)) || emp_last_name, emp_key, manager_id, emp_key, manager_key,
    mgr_last_name, mgr_first_name, empid,
    emp_last_name, emp_first_name, LEVEL FROM cmp_ppl1 START WITH emp_key = &emp_key
    CONNECT BY PRIOR emp_key = manager_key;
    Thanks & Regards
    Vikram

    I agree 100% that it's way easier to create a dataview or a custom folder - with no run time parameters being passed to the EUL - as is being done by Vikram.
    The only concern I would have is that I don't know if it would work - or at least ever come back in reasonable time - for Vikram and therefore the question about parameters (only Vikram can say).
    The reason I'm wondering is that I've created SQL similar to being shown (when used in an org chart report at a large client) and the start / connect by is used for going down the tree getting everyone on the way. And if it's not limited - that could be a huge undertaking - of records and/or time. Guess it depends on how many people work at the organization (and of course, levels).
    But otherwise, absolutely, I would try and bring back all logical records to the folder and then filter in Disco.
    Russ

  • KM Task Scheduler: How to create custom/editable properties?

    Dear All,
    I created a KM Scheduler Task using the NDWS Wizard.
    The application was successfully deployed and the task runs fine. However, I would like to define some custom properties that could be edited by using the portal, like the standard ones such as Priority, CM Systems, etc.
    Is that possible?
    I already tried to add it in the portalapp.xml, and also in the auto generated files that are in data and meta folders (..co.xml), but the new properties have not appeared in the screen.
    Thanks in advance,
    Marco

    Hi Romano,
    Thanks for the input.
    Do you know in which of the .co.xml files should be added? There is one in "data" and another in "meta" folders.
    The one in "data" folder (actually in one of the subfolders of "data folder") has the following content:
    <?xml version="1.0"  encoding="UTF-8" ?>
    <Configurable configclass="domain.task">
    <property name="name" value="domain.task" />
    <property name="active" value="true" />
    <property name="description" value="Task Test" />
    </Configurable>
    I added in this file a new property but no result.
    The one in meta folder (also in a subfolder of it) has the following:
    <ConfigClass name="domain.task"  extends="SchedulerTask">
    <attribute name="class" type="class" constant="domain.task"/>
    </ConfigClass>
    In this one when I tried to add a new property the task simple does not show, maybe I am not using the correct syntax.
    Do you know in which of these files I should put the custom property and using which syntax?
    Thanks in advance,
    Marco

  • How Do I Display Custom Document Properties On the Info - Properties Page

    Hi,
    I want to create a template using Microsoft Word 2010 that has fields similar to the Standard Document Property "Title" that can be used as a fillable form that repeats data throughout the document.  I need a custom document property field
    that you can fill out on the title page and will simultaneously change the same field that is in the header, footer, and file -> info -> properties page. 
    For example, I want to create a document property field called "Product ID #" that shows the title of the property on the file -> info -> properties page as "Product ID #" and the content to show up as the information
    a user entered into the field on the first page.
    Right now I have a standard document property that I am using as a field on the front page for the Title which has user defined content on the front page.  This field has default content I set up to be "Product Specification Template". 
    I inserted this field by using quick parts.  I want to be able to create a field that behaves like this called "Product ID #".  I understand you can create custom form fields that repeat using legacy fields, but I need a way for them
    to show changes instantly after you click away from the field, without having to "update field" where necessary.
    Anyone have any idea how to create custom document properties like this? Or even how to rename standard properties such as "Status" or "Subject"?
    Thanks

    What you're asking can't all be done without a macro. You can easily enough get body content to show in the header & footer via the judicious use of Styles and STYLEREF fields (and the changes are dynamic), but getting that info into the custom
    document property would require a macro. To that end, you might use a content control with a unique Style applied to it for the data input and a ContentControlOnExit macro to update the custom document property.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Custom step types and custom step data.

    Hello.
    I have a good understanding of how TestStand allows custom step types to allow users to store custom data.
    I have also read numerous posts about users asking for the ability to store some custom data associated with steps.
    In my scenario I am required to write a sequence using a few third party supplied step types.
    To assist in developing and debugging this sequence, we would like to store a container of custom data with each steps.
    Option 1: Create custom step types.
    This is really not an option, relying on third party step types. Any customization made to their step types will magically disappear, along with any custom data, the next time I install one of them service packs.
    You may argue that I just have to ensure all custom fields are recreated before opening a sequence file. This works in my office when everyone is at edge with this, but in a few months someone will "take responsibility"
    and upgrade the 3rd party packs without reading the entire upgrade procedure.
    Option 2: Create links in Sequence Locals
    This does work, but is not very associative. To work, the name of the Locals entry would need to be the unique ID of the step it refers to.
    Also, it requires some more maintenance to insert new steps, and to remove stale references.
    I really hope that someone in TestStand R&D reads this, and enables users to store step custom data, for example by adding a "CustomData" container to the TS property of the step.
    Regards,
    Ivar S.

    Ray:
    Thanks for answering.
    I am aware that I can extend a custom step type by creating a new step type based on the first type.
    For example, I have this 3rd party JtagExecuteTest step type, supplied by another solution vendor.
    In my sequence, I want a custom error & failure handler, that needs information about each step as they fail.
    For handling and logging purposes, I need each step in my sequence to carry information in addition to the setup required by JtagExecuteTest.
    So I set forth, and modify the step type JtagExecuteTest step, along with some other 10-15 step types that the other solution vendor has put in their package.
    This works like a charm until I have to reinstall or upgrade the package.
    Because I modified the steps using their original name, all data I put into the steps are lost.
    Next attempt, I follow your advice and create MyJtagExecuteTest step, based on the original steps. Again, I repeat this customization for 10-15 step types.
    This works like a charm until I have to upgrade the package.
    Now some wise guy at the other solution vendor has renamed a DLL or a function call, breaking down every step that I have customized.
    Mush better, though, because I can repeat the customization process and the data does not disappear.
    Still, this is just too much hassle just to put TestStand to some decent use.
    If I could just click on a step, add my custom properties, and have TestStand retain those data as a user customization that particular step instance.
    Much like you have Sequence.Locals, it would be extremely useful to have a Step.Locals container for the users to use at will.
    Regards,
    Ivar Svendsen.

  • OLE object -Properties/Parameters of a method

    HI,
      Sample code,
    CREATE OBJECT application 'excel.application'.
    SET PROPERTY OF application 'visible' = '1'.
    CALL METHOD OF application 'Workbooks' = workbook.
    CALL METHOD OF workbook 'Add'.
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    GET PROPERTY OF cells 'Font' = gs_font .
    SET PROPERTY OF gs_font  'Bold' = 1.
    SET PROPERTY OF gs_font 'ColorIndex' = 5.
    SET PROPERTY OF cells 'Value' = 'Server name'.
    In this sample code , properties Visible, Bold, Colorindex, Value are set to some values.
    How to find these properties ?
    In which DB Table they are stored ?
    How to get all the properties/parameters of a method ?
    All are concerned with ABAP OLE Objects .
    Pls help regarding this .

    Hi
    Try make in Excel a macro, which do what you need  and analyse than the code of the macro.
    It is very helpfull to find the properites.
    JS

  • Change custom step icon

    I want to change the icon for loaded custom steps in a sequence. I've created the icon and put it in the icons folder with the rest. I opened the custom step properties and selected the new icon and all newly added steps of this type now use the new icon. But..... The previously loaded steps in my sequence still use the old icon. I thought that I used to do this without a problem am I missing something? TS3.5 and LV8.0 on an XP machine.
    kph

    Kph,
    You must select "Apply Changes in this Dialog to all Loaded Steps of this Type".  This is true of any property that is changed in a step type.  When a step is created of a certain step type it will copy the default data from the step type.  By default, changes to the step type will not affect any steps of that type.  This allows you to modify steps of a certain type but not have the modifications change other steps of the same type.  Selecting to Apply Changes however will effect currently loaded steps of that type.  Note also that the steps must be loaded for the changes to take effect.
    Regards,
    Tyler Tigue
    Applications Engineer
    National Instruments

  • Win Server 2008 R2 - FSRM is not able to view Office Word 2010 custom document properties

    Hi, 
    how to view custom document properties for office 2010 files on Win Server 2008 R2 - FSRM.
    Word 2003 custom document properties are reportable and also visible after: Right click on file/Properties/Custom
    Word 2010 there is no Custom menu after: Right click on file/Properties/Custom
    Any suggestion ?
    TH

    Hi Tomas,
    To view custom properties in Office 2010:
    1. Click the File tab.
    2. Click Info.
    3. Click Properties, and then select Advanced Properties
    4. Click the Custom tab
    Regarding this point, the following article can be referred to for more information.
    View or change the properties for an Office file
    http://office.microsoft.com/en-in/word-help/view-or-change-the-properties-for-an-office-file-HA010354245.aspx
    In addition, for this is more related to Office, in order to get better, we can also ask for suggestions in the following forum.
    Office Forum
    http://social.technet.microsoft.com/Forums/office/en-US/home
    Best regards,
    Frank Shen

  • How can I create a custom step that does nothing but make calls to a dll

    What I'd like to end up with is a Custom step that
    1. Takes several string parameters
    2. Makes several calls to functions in a DLL
    3. Returns and stores error codes returned from the function
    I've been through the KB article "How Do I Make a Custom Step Type".
    This got me about halfway there; while helpful, it didn't provide a
    reference for some of the questions I had, specifically:
    1. What sort of sequence action type should I start with (to use as a template)?
    2. If I start with a "Call Executable", do I need to specify the module when I incorporate the step into the sequence?
    3. How does one pass parameters in and out of a custom step type?
    4. How does the step type report progress/errors to the report?
    Thanks in advance.
    Mike

    Hi,
    To interface to a DLL you will need to use either the DLL Adapter or the CVI Adapter, not the Call Executable adapter.
    Have you been through the Using LabWindowsCVI with TestStand manual. This should answer all your questions, all the chapters are relevant.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Custom icon strip - how to reference it in the HHC?

    I could not get the custom icon strip to work for me. I think that I understood the overall concept but I do not know how to reference the bmp file in the HHC.Ricks Tips and Tricks file only states "make the reference inside the HHC file". Where exactly do I place the <param name="..." value="C:..BMP"> reference?
    Perhaps there is an example?

    Rick,
    thanks for your efforts despite my ignorance! My HHC file does not look like that, it has a different structure without an HTML list. After some fiddeling I got it to work now, even though I still did not find out why my TOC structure does not match yours (the binary TOC option is not active).
    Instead of using the <param name="ImageList" value="C:tocimages.bmp"> line, I inserted the reference into the properties tag. My HHC looks like this now and it works:
    <?xml version="1.0" encoding="utf-8"?>
    <toc version="1.0">
    <properties imagelist="C:tocimages.bmp">
    </properties>
    <item name=".." link="...html">
    (here the TOC items follow)
    </item>
    </toc>

Maybe you are looking for

  • Can't get my laptop running

    Something has happened to my notebook and I can't figure out what's wrong. I don't want to turn it in and pay to have it fixed unless I know it isn't something stupid that I am just not figuring out. My laptop wont really turn on. It powers up, the f

  • Album List view only showing one or two tracks from each albulm

    Hello there, could anybody help me find a solution to this problem... My music shows fine in the three other view options its just now that when i choose the album list view i only get one song per album on view and its not the same number track eg 1

  • Error message while shipping restricted batches

    I  am trying to get an error message while picking  a batch in restricted status. I have done the following: 1. Set up batch determination at shipping : Condition table set up at the Sales Org. level. Access sequence set up, Batch Search Procedure se

  • BT chasing me for debt I have been told I do not o...

    Hello, I would like to seek some advice about my truly horrendous experience with BT. To briefly explain the situation, I moved house on the 13th October 2011. I then arranged for BT to transfer my service to the new property on the 17th October 2011

  • I have one goal, can it be done?

    I want to create a multi-page document in Pages, export the file to Keynote, add some moving elements, page flip, etc., then export that file to a website where people can download or view the file, flip through the pages, etc. Can I do all this, and