Workflow Step type for Container Operation

Hi,
A STEP in a given Workflow has to have an Agent? Can't I create a Step to get data from the DB into the container and that's it?
I have created a container variable called "Grade" and I need to fetch the Grade of a User (WF Inititator) from a DB table and populate the "Grade" variable from the container that will be used in further steps.
The Workflow gets kicked off but when it reaches the STEP, it stays there waiting for something (Action from a user?).
Thanks & Regards,
Ernesto

Ok, now this is getting weird. Will try to explain what I am doing for one single step:
1) I have my workflow. On PFTC I Have a workflow Template. Under the Container Tab I created a Parameter called "Grade" with the Import/Export check-boxes set and a "CreatedBy" parameter with the import/export check-boxes set as well.
2) Then on the Workflow Builder I created a Step called Get Grade. This step calls a Custom Task and processes in the background so there is no agent determination.
    2.1) Here I have two bindings: a) Binding Between Workflow Container and Task and between Task and BO Method       
           Get_grade.  The Method Get_grade has 2 parameters (CreatedBy, that is an attribute of the Object and is an import
           parameteter and Grade that it is an import/export parameter).
    2.2) The Binding between the WF Container and the Task is like this:
              &PROCCONFIRMATION.CREATEDBY& --> &CREATEDBY&
              &GRADE& <-- &GRADE&
    2.3) Binding Between Task and Method is:
             &_WI_OBJECT_ID.CREATEDBY& --> &CREATEDBY&
             &GRADE& <-- &GRADE&   
    2.4) The Code for my method is:
begin_method get_grade changing container.
DATA:
      lv_grade TYPE zmm_app_req_info-grade,
      lv_userid TYPE zmm_app_req_info-requestor
swc_get_property self 'CreatedBy' lv_userid.
SELECT SINGLE grade FROM zmm_app_req_info
INTO lv_grade
WHERE requestor = lv_userid.
IF sy-subrc IS INITIAL.
  swc_set_element container 'Grade' lv_grade.
ENDIF.
end_method.
The only thing I need is to get the Grade parameter of the WF Container populated. This parameter will be used later on.
Thanks & Regards,
Ernesto.

Similar Messages

  • Workflow-step type condition

    hai all.....
      I have got a problem while working with the step type 'condition' in workflow,i.e i want to check the values in internal table in my step type for example,whether the internal table is initial....please someone help me ..its very urgent...

    Hi Kasi,
    I can provide u a simple workaround for this...
    U can create another table within the workflow container of the same table type.
    name it as empty_<table>.
    Than within the condition step, u can simply compare the original table with the dummy empty_<table>.
    This should solve your issue
    Regards,
    Mahesh.

  • Add-on step types for TestStand?

    I am almost certainly reinventing some wheels with Teststand by creating some basic test types.
    For example, I just wrote a custom step type for taking an analog measurement from a DAQmx instrument. Surely someone has done this before, and surely someone will want to do it again. There's nothing proprietary about code that simple, and I'd be happy to give it away if there was a place to post it.
    Two questions:
    1. Is there an open-source repository for sharing custom step types?
    2. Are there add-ons for purchase with canned step types beyond those which come with TestStand?
    -Arthur

    Hi Jigg, 
    I looked at Averna.com, and I don't see any add-ins available on their website. It looks like they offer services mostly. 
    It's a good point about TS projects being so varied and customized. However, if custom step types are well architected, as the built-in step types are, then they ought to be reusable by others. 
    You're right also that I can accomplish my DAQmx steps easily using an Action step with the LV adapter. My motivation for the custom step is to improve the interface for setting up such an action. In particular, when using an IO channel in TS, I have to manually type in a text string for the DeviceName value, whereas I'd like to choose from a list of global names (e.g. with the global channel list control in LV). I can get this affect by using an Enum in a wrapper VI, which maps to an array of channel constants; but this is fragile if the available channels are changed (e.g. added, removed or renamed in MAX).
    Additionally, a custom step type is better than a step template for my purposes, because I can propagate changes in the step type to instances of steps throughout the test. This is incredibly valuable to me during development and debugging. It saves me time when I want to update a step that I've used many times throughout a test sequence. Although TS isn't itself a programming language, I find that I expect it to share certain traits with programming languages to facilitate development, such as type abstractions and a strict enforcement of congruency between types and instances. But I digress....
    Thanks for your suggestions.

  • The disc is the wrong type for the operation

    Hello!
    I'm using DVD Studio Pro 4 and as I try to burn a double layer DVD I get a message saying "The disc is the wrong type for the operation". I've tried several brands, but I get the same message. What can possibly be wrong?
    Thanks for helping me!
    /Andreas from Sweden

    If you are trying to do this on the internal Superdrive they have problems writing to Dual Layer DVD disks of any make and or type.
    IMHO the DVD drive Apple uses is not very good.
    If this is a fairly new Mac system I suggest you take it to an Apple store and show them that it can't write to Dual Layer DVD discs of any make and maybe they will replace it with on e that will.

  • General step type for LV container in TestyStand 3.1

    Looking for a general step type that can handle a LV7 container with 2-8 numerical values to be used with limits

    Can't you just use the Multiple Numeric Limits Test, are am I missing something here.

  • Create step type for a COM step

    Hi,
    I'm using the COM adapter to interface with TestComplete.
    My current setup is I have a Master sequence file that contains two calling sequence files ( one for each test).
    The individual called sequence file have 4 steps as listed:
    Get Property: Create new object
    Calling a method to open project
    Call method to run test, and pass parameter to TestComplete
    Get property result
    My problem is if I want to pass a different parameter in the Call method to run test Step, I have to create another sequence file to do this.
    Is there a way to create a single Step Type to call method, run the test and pass parameter to TestComplete?  and how will it affect the other steps in this sequence file (e.g. Create new object, open project, Get property resut)?
    Thanks!
    Solved!
    Go to Solution.

    Jigg,
    Thanks for your help.  Please see attached file.
    Yes, I have to create another sequence file(with the 4 steps) if I need to pass a different parameter value to TestComplete via COM.
    note: the parameters that are used by the 4 steps are all in the Parameter tab.
    Regards,
    ph
    Attachments:
    sequence call with parameters.doc ‏160 KB

  • Re: Workflow-step type: Mail - to add smartform output as a . PDF attachmnt

    Hi All,
    I have a requirement of attaching the output of a smart form as .PDF attachment. This has to be done as part of the Mail Step-Type in the work flow.
    Could anyone please confirm whether we can send an attachment as part of the Mail Step of a work flow. If this can be done, please provide some inputs on how to proceed on this.
    Thanks & Regards,
    Goutham.

    Hi,
    Thanks for your early replies. Points are definitely awarded.
    So the main point here is we cannot attach an attachment to the Mail Step Type of the work flow. The only thing we can do is to create a method in the business object to do the same and use it in the Activity step type of the work flow.
    Please confirm if my understanding is correct.
    Thanks & Regards,
    Goutham.

  • Alternative scoring for CONTAINS operator?

    I am trying to figure out how to query using CONTAINS and get slightly different result set scores than the default is returning. By default, it looks like rows are given the same score as long as they contain the same number of the search terms. For example, given the following table:
    ID TEXT
    1 Eyes Wide Open
    2 Open Your Eyes
    3 My Eyes Are Wide Open
    4 Eyes Open
    5 Open Eyes
    If I select based on a CONTAINS of "eyes open", all of the rows are returned with the same weight (which I think I understand based on the description of the default scoring algorithm).
    But what I would like is a scoring algorithm that takes into account the number of words matched vs. the total number of words in the column, and preferrably also considers the order of the words in the column to the order they were searched on.
    So given the previous table, if I select based on a CONTAINS of "eyes open", I would expect the scores to rank ID 4 the highest, followed by 5, 1, 2, 3. (In this case all of the column words are significant and I am using an empty stoplist).
    Does anyone know how to accomplish this scoring behavior? Do I need to implement a new scoring algorithm, or can this be accomplished using a syntax for CONTAINS that I just don't know about?
    Thanks for your help in advance.
    -Chris

    I don't see any way to get exactly what you want using Text, but the method below should do it.
    SCOTT@10gXE> CREATE TABLE your_table
      2    (id   NUMBER,
      3       text VARCHAR2 (30))
      4  /
    Table created.
    SCOTT@10gXE> INSERT ALL
      2  INTO your_table VALUES (1, 'Eyes Wide Open')
      3  INTO your_table VALUES (2, 'Open Your Eyes')
      4  INTO your_table VALUES (3, 'My Eyes Are Wide Open')
      5  INTO your_table VALUES (4, 'Eyes Open')
      6  INTO your_table VALUES (5, 'Open Eyes')
      7  SELECT * FROM DUAL
      8  /
    5 rows created.
    SCOTT@10gXE> CREATE OR REPLACE FUNCTION list_element
      2       (p_string    VARCHAR2,
      3        p_element   INTEGER,
      4        p_separator VARCHAR2 DEFAULT ' ')
      5       RETURN          VARCHAR2
      6  AS
      7    v_string      VARCHAR2 (32767);
      8  BEGIN
      9    v_string := p_string || p_separator;
    10    FOR i IN 1 .. p_element - 1 LOOP
    11        v_string := SUBSTR (v_string,
    12                      INSTR (v_string, p_separator)
    13                        + LENGTH (p_separator));
    14    END LOOP;
    15    RETURN SUBSTR (v_string, 1, INSTR (v_string, p_separator) - 1);
    16  END list_element;
    17  /
    Function created.
    SCOTT@10gXE> VARIABLE search_words VARCHAR2 (30)
    SCOTT@10gXE> EXEC :search_words := 'eyes open'
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> SELECT id, text,
      2           ROUND (100 * COUNT (*) / num_words) AS hit_score,
      3           SUM (order_score) AS order_score,
      4           ROUND (100 * COUNT (*) / num_words)
      5             - SUM (order_score) AS combo_score
      6  FROM   (SELECT id, text,
      7                (LENGTH (text) - LENGTH (REPLACE (text, ' ', '')) + 1) AS num_words,
      8                CASE WHEN position > NVL (LAG (position) OVER
      9                                (PARTITION BY id ORDER BY word_order), 0)
    10                  THEN 0
    11                  ELSE 1
    12                END AS order_score
    13           FROM   (SELECT id, text, words, word_order,
    14                    INSTR (UPPER (text), words) AS position
    15                FROM   your_table,
    16                    (SELECT list_element (UPPER (:search_words), ROWNUM) AS words,
    17                         ROWNUM AS word_order
    18                     FROM   DUAL
    19                     CONNECT BY LEVEL <= (LENGTH (:search_words)
    20                                 - LENGTH (REPLACE (:search_words, ' ', ''))) + 1)
    21                WHERE  INSTR (UPPER (text), words) > 0))
    22  GROUP BY id, text, num_words
    23  ORDER BY hit_score DESC, order_score
    24  /
            ID TEXT                            HIT_SCORE ORDER_SCORE COMBO_SCORE
             4 Eyes Open                             100           0         100
             5 Open Eyes                             100           1          99
             1 Eyes Wide Open                         67           0          67
             2 Open Your Eyes                         67           1          66
             3 My Eyes Are Wide Open                  40           0          40
    SCOTT@10gXE>

  • Step type 'condition' in workflow

    hai all.....
    I have got a problem while working with the step type 'condition' in workflow,i.e i want to check the values in internal table in my step type for example,whether the internal table is initial....please someone help me ..its very urgent...

    Hi Kiran,
    For the Operator 'NX' u need not enter any comparison value. U click on the condition in the condition step type . A window appears and u click on the internal table in expression 1 and the operator as 'NX' . It doesnt need a comparison value.
    Now u check this with the test data in the same window . U will have an icon in the bottom of window to enter test data and another icon to evalutate it . U check it with data and without data. It will work .
    In ur reply to Kasi , Ur answer is not at all related with what kasi asked for .U can check the initial property while the data is in workflow container itself . Instead u r passing the data from workflow container to task container and then to method container and then the processing has to take place in BO and again the reverse should take place .Which is Unnecessary .
    Regards,
    Scobby.
             Be Free To Award Points

  • How can I include multiple limits in the sequence file documentat​ion for custom step type?

    Hi,
    I have a custom Step Type that contains Measurements property under Results. Its type is Array of NI_LimitMeasurement.
    I would like to see the values in the sequence file documentation like NI_MultipleNumericLimitTest type.
    Is there any trick to do that?
    Thanks,
    Andras

    Hi Andras,
    I have made  a slight change to the sequencefile 'docgen_txt.seq'.
    In the Sequence 'Step Doc' is a section which handles MultipleNumericLimit step type. There is a precondition check on the step 'Add Multiple Numeric Limits' if the step is of type 'NI_MultipleNumericLimit'. As your step type is based on the MultipleNumeric Limit type, I have just removed this precondition and just relied on the existence of Parameters.Step.Result.Measurement. Equally you could add a new section in this sequence to handle your Custom Step Type which is only called when the precodition match your type name.
    Now when you run the DocGen tool it handles your custom step type.
    Find attached my modified sequencefile 'docgen_txt.seq'.
    Just copy the contents of '..\National Instruments\TestStand 3.5\Components\NI\Tools\DocGen' to the User folder. Then place the attached file in the User\Tools\DocGen overwritting the version that is in that folder.
    Then launch TestStand and try it out on your sequence file.
    If you are using the html version, then you will have to make the same change into Step Doc sequence of the docgen_html sequence file.
    Hope this helps
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 05-19-2007 05:28 PM
    Regards
    Ray Farmer
    Attachments:
    docgen_txt.seq ‏184 KB

  • Latest IVI Class Step Types in TestStand

    IVI instrument classes have recently been defined for RF Signal Generator, Spectrum Analyzer and Power Meter. There are IVI drivers for these classes available for download from the Instrument Driver network. However, TestStand3 does no contain step types for accessing these drivers. Does anyone know when NI plans to add support for these to TestStand? Has anyone created step types for these classes, or have an example of how to do this?

    David -
    There is no documentation on the low-level workings of the TestStand IVI step types. As with many of the step types that have source code, it is available as examples of developing a step type in various languages.
    The additional work to add the a new class to the TestStand IVI step types is not small, that is why to date we have not done it. The amount of work could be divided into the following areas:
    * Update the TsIviStepTypes to add the new class to the enumeration.
    * Create the new step type definition (subproperty structure) based on the IVI spec.
    * Upcate the TSIviStep and TSIviSFP code to allow you to edit and perform the work to process the expressions and initiate the various IVI class operations.
    * Add low level
    IVI class layer logic to talk to the IVI class driver. This piece was previously done in a VB ActiveX control written by the Measurement Studio group in NI.
    The last two items are the biggest and they would take some time. That is why I was suggesting creating specific Action steps that call into custom code modules to talk to IVI directly, that is, no edit dialog box, no SFP, etc.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Programati​cally Assigning Step Type Properties

    I have developed several COM instrument drivers in Visual Basic 6.0 which I can call from TestStand using the ActiveX/COM adapter. However, I would like to be able to create a custom step type for each of these ActiveX servers. Each server provides several creatable classes and a number of interfaces. Ideally I'd like to create a custom step type that references the GUID of my server but have the ability to programatically assign the step properties such as Interface ID and CoClass ID to use the classes and interfaces of my server that I want need to access.
    I have noticed that it is possible to create a step type (IEngine.NewStepType method) and set the Automation Adpater. Then I can programatically access its hidden properties (e.g.TS.SData.Call.CoClass). However, I am unsure of how to save and/or access this newly created step type. Where is it stored and how can I insert steps using of the new step type?
    I have attached a sequence I've been working on. This has dependencies on a Station global and a server unique to my system but illustrates what I've been trying to do. Do you have any advice of what I need to do next or have any examples available where this sort of thing has been done in the past.
    Thanks.

    Hi David,
    Here is some steps for saving your Step types.
    You will need to create a type palette Ini file to hold your step types.
    Get a PropertyObjectFile reference by calling Engine.NewPropertyObjectFile(FileType_TypePaletteF​ile).
    Set the path of the ini file with PropertyObjectFile(Path).
    Get a TypeUserList reference by calling PropertyObjectFile.TypeUsageList().
    Get a count of the number of Types in the TypeUsageList by calling TypeUsageList.NumTypes().
    This point create your Step types (as you have done). You will need a PropertyObject reference to your steptypes for use with the TypeUsageList.InsertType().
    Using each steptype PorpertyObject reference.
    Insert the Type into the TypeUsageList by calling TypeUsageList.InsertType(step type propertyobject ref, index (which will be your count), typeCategoryParam = TypeCategory_StepType)
    Call the PropertyObjectFile.IncChangeCount() to indicate file changed.
    Increment the count and repeat Insert for each of your step types.
    save the ini file PropertyObjectFile.SaveFileIfModified(prompt = TRUE).
    Tidy up by releasing references etc.
    I know this works for TestStand 2.0.1f1 and hopefully it will work for 3.1. Unfortunately I haven't got 3.x installed on a PC to try it.
    Hope this gets you started.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Custom Step Type: Sequence Call

    OK, I'm primarily a LabVIEW programmer, but in TestStand I understand how to:
    * Create a Custom Step Type
    * Link a LabVIEW Module for execution, post substep, edit substep, etc.
    * Prevent the user from selecting a different module for an instance of my Custom Step Type.
    All good stuff.
    Now here's what I want to do: the exact same thing, except that I want the custom step to call a subsequence instead of a LabVIEW VI during execution. Yes, I want to use a LabVIEW VI for the edit substep (to set certain parameters for this instance of the subsequence call. Yes, I want to use a LabVIEW VI for the post substep.
    Can this be done?

    Hi,
    Short answer, yes.
    When you create your step type, for the Specify Module you would use a SequcenceCall Adapter instead of your labview adapter.
    You would have to have your sequencefile with your sequences already created seperately and you would set the sequencefile not to use a process model in the sequencefile properties.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • IviAcPwr step type in Teststand available ?

    Hello,
    Im'using Teststand 2010 & Labview 2011 and i was looking for step type working with IviACPwr class...
    I found Dmm, Scope, Fgen, Power supply (DC) & Switch...
    Could someone tell me if there is an update for IviACPwr step type ? 
    Thanks for help.
    GG
    Ivi coompliance package 4.4.0.
    Solved!
    Go to Solution.

    There is not a built-in step type for IviAcPwr in TestStand.
    CTA, CLA, MTFBWY

  • 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

Maybe you are looking for