Is it possible to use a variable to control the path where a sub-flow is found ?

I have a customer on UCCX 7.0.2 SR5.
They are developing a script that uses many sub-flows and they wish to have a "Development" , "QA" and a "Production" versions of the application all on the same box.
I can build the applications easily enough but the challenge I'm running into is we want to also have 3 different sub-directories in the repository to hold the different versions of the scripts and the sub-flows.  The thought is the developers can keep working on modifying the code while the QA team tests the latest build without affecting each other.  Then there is a separate production version of the script that has previously passed QA and is public facing.
Example: the directory structure where the scripts are stored.
\root of repository
     App-Dev
     App-QA
     App-Production
In a script, it seems that you have to browse to the location in the repository and directly select the subflow you want.
This is a challenge since when I copy my code from the development to the quality assurance directory I have to go thru and edit all the references to the sub-flow to the QA directory.
Ideally I'd like to do the following:
Define a string variable "Script-Path" and assign it to the desired directory
then call the subflow
SCRIPT[Script-Path\ScriptName.aef]
this doens't seem to work.
Has anyone found a solution to this challenge ?
Thanks

Hi,
Does the subflow script and the script that calls it are in the same folder??
If the script was originally loaded from disk, the subflow script must reside in the
same folder as the script that calls it. If the script was loaded from the Repository,
then the subflow must also reside in the Repository.
EDIT: My first comment was because I though you were trying to call a script directly from disk.
Now for scripts that are in the repository I did some tests. I have the root directory where I placed the main script and then I have another directory called Test where I placed the subflow script.
My main script is:
Start
Accept
PlayPrompt (audio.wav)
Subflow(subflowVariable)
End
*subflowVariable is a parameter with value "Test\subflowScript.aef"
My subflow script plays a prompt.
So when I test this everything worked just fine
Gabriel

Similar Messages

  • Using a Variable to Substitute the path\filename of a Batch file in the Start_Process Command

    I am trying to write a script that will execute a batch file on a remote Windows server.
    This line below is basically what I'm trying to do and it works without error, however I would like to use a variable for the path\filename of the batch file.
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "\\qsc-a-ice01\D$\Test\RunThis.bat" }
    If I try to use a variable as in this example below I receive the error below. The error seems to indicate it's it expecting a "FilePath" parameter. Is this true? How would I change this script to make it work when substituting a variable.
    $MyProcess =  "\\qsc-a-ice01\D$\Test\RunThis.bat"
    Write-Host $MyProcess
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "$MyProcess"}
    This is the error text I receive when using a variable:
     PS C:\Windows\system32> D:\Test\ThisWorks.ps1
    \\qsc-a-ice01\D$\Test\RunThis.bat
    Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Supply an argument that is not null or
    empty and then try the command again.
        + CategoryInfo          : InvalidData: (:) [Start-Process], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand
        + PSComputerName        : QSC-A-ICE01
    PS C:\Windows\system32>

    Mike,
    Thanks for providing the link, it was very informative. The link described how to use the args in a ScriptBlock and provided me with an explaination as to why it works the way it does on a remote server. This is my 1st post to the forum and I don't know
    how the points system works yet.
    I would like to split the points , but I don't see that this is possible.
    You're very welcome, I'm glad that the information was helpful.
    You can mark as many posts as answers as you'd like, there's not a restriction on only having a single answer per thread. You certainly don't have to though, David's answer is more than sufficient to help any future people who find this thread.
    Also, on a side note, you may want to post in the thread below. Posting there will get your account verified so you'll be able to post links and images.
    http://social.technet.microsoft.com/Forums/en-US/200c33c9-abe9-494a-953a-bf53fccb3c76/verify-your-account-11?forum=reportabug
    (Future people - don't use that link.
    Click here and look for the current thread as a sticky.)
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Is it possible to use  one imac to control the screen of another?

    Hi,
    I'm thinking of buying a new iMac. At present I have an older intel iMac (1.83, 17 inch, 2 Gigs ram, 250 hd) and I work mainly with Logic Pro 8. Logic Pro 8 has a node function which allows you to use the processing power of a second computer to enhance the processing power of the primary computer. My present iMac in my new setup would be the node computer to the new iMac. I already know I can use the processing power of my present computer but can I also use it's display? In other words can I use the new iMac to control the old iMac's screen? Thanks

    One thing I'd caution you on, Logic node uses resources over an ethernet connection, which this screen sharing application also appears to be transmitted over. Using this screen sharing app, the internet, or any other networking application on the Logic Node computer will affect the amount of bandwidth available to Logic Node, reducing the amount of performance you get by having the second "node" computer hooked up.
    It's possible that it may not be very noticeable, but I'd definitely do a test with and without the screen sharing app to see how far you can push it.
    I'm curious to see if this works well, I wouldn't mind using my PC laptop for a second monitor.

  • Is it possible to use repository variable in conditional formatting

    Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
    Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
    Is 'OracleBi..' a keyword or something like that....

    Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
    Init blk is calling any procedure here with name OracleBI here...no any specific significance.
    Hope this help
    Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM

  • How to feed a query using a variable defined as Replacement Path-Query

    Scenario description : BI NetW 2004S - InfoCube with the following characteristics Customer, OrderDate, OrderYear and the following KeyFigure Number of Pieces.
    Objective: I need a query "QB" that shows how many pieces a set of customers has ordered in the year 2008. The set of customers is defined as all customers that in the previous years (the user can select one or more years) have ordered more than 500 pieces within the same year.
    Implementation: In general terms the idea is to build a query "QB" with the characteristic "Customer"  that is restricted (filtered) using a variable that is fed by another query "QA" (Replacement Path-Query).
    In order to have the selection of customers that for each of previous years (2007, 2006, 2005,...) have ordered more than 500 pieces, in the query "QA":
    - I put OrderYear as filter and defined a variable in order to ask the user which year/s he wants to analyse to define the selection
    - I put Customer and OrderYear in row
    - I put the KeyFigure Number of Pieces in column
    - I've defined the following condition: Number of Pieces > 500 with the option Caracteristic Assignment = All Characteristics in the Drilldown Indipendently
    Now if I run the query "QA" it works correctly showing me all customers that in the selected years have ordered more than 500 pieces within of the same year.
    If I run the query "QB" it shows a correct result only if I enter only one year (for example 2006) in the OrderYear field (coming from the query "QA"); if I enter more than one year (for example 2006 and 2007) the selection of customers showed is not the same defined by the first query "QB": I was expecting to see all customers defined from the first query less all customers that have no ordered any piece in 2008.
    Questions
    1) Why is query "QA" working on a different selection of customers when the user selects more than one year?
    2) Cosidering the scenario and the objective described above do you have any other idea?
    Thanks
    Ciao
    Roberto

    Hi Christophe,
         it's ok for me if I consider the customer only once in the final selection of customers that feeds the final query, this is my objective.
    However as test I've created 2 "input" queries, one related to 2006 and one related to 2007, and then in my destination query I've tried to restrict the customer using 2 variables of type replacement path-query (one attached to the 2006 query and one attached to the 2007 query). Unfortunately when I try to check and save the destination query, Query Designer tells me it is not possible to restrict the characteristic in this way.
    Could you please describe me steps you run in to order to restrict a characteristic using more than one variable of type replacement path-query?
    Thank you in advance for your answer.
    Ciao,
    Roberto

  • Is it possible to use different iOS devices with the same account of the gamecenter?

    Is it possible to use different iOS devices with the same account of the gamecenter? in that case, can two people play a game with the same account and add both scores to the same leaderboard nickname?

    You should be able to use the same account. The top scores will get updated on the leader board.
    Taz

  • Use of variables in "FOR XML PATH"

    Other than using dynamic sql (which we don't want to use) is there a way to use a variable in For XML Path, e.g.
    select
    FOR XML PATH (@BookName), ROOT('Book'), TYPE
    TIA,
    edm2

    In terms of general XML design this is poor.  An element is normally a 'thing', and the attributes are normally the properties of that thing.  Therefore in your case you would have a Book property with a 'name' attribute.  It would be impossible
    to create an XSD for your xml, and makes it awkward for readers of your xml - how do they know the book name beforehand?  Creating this xml in the normal fashion would also make it easy to create without any messing around ( string manipulation,
    other hacks ), eg
    DECLARE @BookName NVARCHAR(20) = 'SomeBook'
    SELECT
    @BookName "@name"
    -- Other book attributes
    FOR XML PATH ('Book'), ROOT('Books'), TYPE
    So now you have a Book item(s) within a Books collection.  Easy!  : )

  • Is it possible to use a custom ringtone in the windows Jabber client 10.5.1? If so how do I point Jabber to the ringtone?

    Is it possible to use a custom ringtone in the windows Jabber client 10.5.1? If so how do I point Jabber to the ringtone?

    In Jabber for Windows 10.6, you can change the ring tones.

  • I want to use my wifi iPad for navigation but now realise it doesn't have gps built in. Is it possible to use hot spot to get the gps location to my iPad from my iphone? Long shot I know!

    I want to use my wifi iPad for navigation but now realise it doesn't have gps built in. Is it possible to use hot spot to get the gps location to my iPad from my iphone? Long shot I know!

    I thought yes, more like this on the right says no. Why not take the two devices outside and try.

  • Is it possible to use a USB aircard on the 11" MacBook?

    Is it possible to use a USB aircard on the 11" MacBook Air?

    No, the superdrive works only with Mac that don't have an optical superdrive built in in the first place.
    However, if you have a newer Mac that could support the SuperDrive or another computer (Mac or PC) which has an optical drive, you could use this: DVD or CD sharing: Using Remote Disc - Apple Support

  • It is possible to use jmf without to install the JMF library?

    Hello it is possible to use jmf without to install the JMF library
    in windows or linux machine
    but inserting these library in a jar for java web start?
    thanks

    I have have inserted the library in the my files jar but i have this error
    java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
         at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
         at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)

  • Is it possible to use a variable semantically as an invisible "column"?

    Here is a simple query that produces a table:
    let
        Source = #table(     type table [First= number, Second= number],      {{1,1}, {2,4}, {3,4}}     ),
        #"Added Custom" = Table.AddColumn(Source, "Custom", each [First]+[Second])
    in
        #"Added Custom"
    I would like to replace the formula used in #"Added Custom" with a variable which abstracts the calculation and the fields used.  Something like this (which does not work):
    let
        Source = #table(     type table [First= number, Second= number],      {{1,1}, {2,4}, {3,4}}     ),
        Sum = [First]+[Second],
        #"Added Custom" = Table.AddColumn(Sum, "Custom", each Sum)
    in
        #"Added Custom"
    Is this possible?

    You can do this using a custom function. (Note: "each" is just shorthand for "(_) =>", i.e. a function with one argument named "_".)
    let
        Source = #table(type table [First= number, Second= number], {{1,1}, {2,4}, {3,4}}),
        Sum = each [First]+[Second],
        #"Added Custom" = Table.AddColumn(Source, "Custom", each Sum(_)),
    in
        #"Added Custom"
    You could also eliminate the "each" from Added Custom if you like:
    #"Added Custom" = Table.AddColumn(Source, "Custom", Sum)
    Ehren

  • Possible to use local variables in Calculation Manager

    Hi,
    I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
    Thanks!
    Regards
    Mats

    Hi,
    I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
    The usage of the variables in the forms is the same as before.
    If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
    Cheers,
    Alp

  • Is it possible to use a variable after

    ...after popup message. Like the following example. I want to inform the user about the next number he can enter into a database..
    MESSAGE 'Please enter another value. The value may be  '  +  VARIABLENAME TYPE 'I'.
    How can I achieve using a variable after this message or any alternative way?
    Thank all you very much.
    Deniz.

    hi,
    u can do it.
    To create a message long text in SE91:
    Select  to switch to change mode.
    Place the cursor on the corresponding message.
    Click the Long text pushbutton.
    This starts the SAPscript editor.
    Enter the long text.
    Carry out a check in SAPscript editor.
    Save your data.
    eg: create a msg like this.
    Please enter another value. The value may be &.
    then in pgm do this.
    MESSAGE i014(msg_class_name)  WITH variable_value.
    Rgds
    Reshma

  • Using a variable to vary the WHERE clause in a statement

    I have an int column that has values >= 0.
    Depending on a variable I want to select all the rows of the table or only the rows where the int column is 0.
    How do I do this?
    Your help would be much appreciated.
    Thanking you in anticipation.
    Roger
    rogerwithnell

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. Why do you think "a variable" and "the integer column" are precise clear specs? I hate to tell you but zero is a integer. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

Maybe you are looking for

  • Adobe Acrobat X Bates Stamp Removal

    I have just added Bates numbering to a pdf file, using Adobe Acrobat X Pro. I started the bates numbering on page 1. I want to change this to start on page 18 (for example). When I try to remove the bates numbering I just added, I receive the followi

  • Checking Digital Signatures

    I have a form with a number of digital signatures on. When a user clicks on one digital signature, I need to be able to check the status of the other signatures so I can determine which fields on the form should be locked down. I.E. If signature1 and

  • Error handling with SUBMIT

    Hello Experts! Is it possible to handle errors generated in a program called with SUBMIT ? for example I am calling a program REPORT00 SUBMIT REPORT00         WITH  PARAM_1 = 'X'             AND RETURN. And say there are some validations in REPORT00

  • CRM_ORDER_MAINTAIN adding to Objects Text in Change Order

    I was curious if anyone knows which function modules to use when adding text to a Change order. The text would be added under transaction data on the objects tab. Thanks

  • I had to wipe my computer as well as Windows due to a virus. I installed Ubuntu and now need to re-install photoshop CS6. How do I do this?

    I had to wipe my computer as well as Windows due to a virus. I installed Ubuntu and now need to re-install photoshop CS6. How do I do this? Desperately need Photoshop back so any information would help. Thanks Sam