Decision tree for user input


I am creating a workflow that accepts a user input and I'm trying to figure out how I can take a parameter selected between an entry and the next choice of entry poplulate.  For example:

parameters: location, area

Location (an array of strings) New York, London, Tokyo

Therefore, based on the chosen of the location of the field parameter change

New York - area: Prod, Test

London - area: Prod, Dev, Test

Tokyo - area: Dev, Test, Eng

Hi Shaka,

First, you must create an action (using vCO Client Java) that accepts the rental of type string input parameter and returns an array of strings containing fields for this location.

If the signature of the action would be something like

Array/string getDomainListByLocation(string location)

And the action script content would be something like

if (location == "New York") {
  return ["Prod", "Test"];
} else if (location == "London") {
  return ["Prod", "Dev", "Test"];
} else if (location == "Tokyo") {
  return ["Dev", "Test", "Eng"];
} else {
  return ["Unknown location"];
}

Then, create a workflow with input parameters 2 - 'rental' of type string and 'areas' of type Array/string. Go to the "Présentation" tab in the editor of vCO and assign the following properties for entries

  • 'rent' entry - adds 'Predefined answers' property and fill its value with locations - New York, London and Tokyo
  • 'areas' entry - add "Data binding" property and bind to action that you created in the first step. Thus, the value of the property must contain OGNL action call expression, something like
GetAction("my.actions.module","getDomainListByLocation").call( #location )

Now, when you run the workflow, the first entry should be rendered in a dropdown menu with locations and when you choose one of them, the data binding action will be called and the value of the second entry should be amended.

Hope this helps,

-Ilian

Tags: VMware

Similar Questions

  • "Wait for user Input" GIF

    Hello!

    I don't want to start the animation GIF automatically, loading the home page. How can I solve this: I wish that the GIF start animation when I click on the image. How can I do this?

    Where can I find the option "wait for user input" is photoshop?

    Thank you very much!

    Hello

    Greetings,

    Concerning

    Rohit

  • PowerCli script prompts for user input

    Hello

    Below powercli script prompt for user input. Don't know how to fix it. I don't want it calls for the release of the user, as I am the code as part of the largest script runinng. How can I run in silent mode? Any help would be very happy.

    function VMHostDiskDetails {}

    $DateVar = get-date - uformat "% Y-%m-%d_%I.%M.%S.%p".

    $VMHosts = get-VMHost # get all the VM host

    $Datastores = $VMHosts | Get-Datastore # get the info from the data store for all VMHosts

    $VMHostStorage = $VMHosts | ForEach-Object {#Then, for each VMHosts, download the VMHostName

    $VMHost = $_. Name

    $_ | Get-VMHostStorage | Select-Object - expandProperty FileSystemVolumeInfo | `

    {ForEach-Object

    $VMHostStorageName = $_. Name

    Add-Member - InputObject $_ - MemberType NoteProperty-name FreeSpaceMB-value ($Datastores |) Where-Object {$_.} Name - eq $VMHostStorageName}). FreeSpaceMB - PassThru | `

    Add-Member - MemberType NoteProperty-Name HostName-value $VMHost - PassThru

    Add-Member - MemberType NoteProperty-name TimeStamp-value $DateVar

    }

    }

    $VMHostStorage | Select the host name, name, mode, Type, capacity, FreeSpaceMB, path, TimeStamp | Export-Csv VMHostStorage.csv - notype

    }

    VMHostDiskDetails

    Thank you

    M

    The 2nd line Add-Member does not have the object on the pipeline.

    The 3rd line Add-Member had a parameter - PassThru.

    function VMHostDiskDetails {
    
         $DateVar = get-date -uformat "%Y-%m-%d_%I.%M.%S.%p"
    
         $VMHosts = Get-VMHost mmmstv004* # Get all the VM-Hosts
         $Datastores = $VMHosts | Get-Datastore # Get the Datastore info for all the VMHosts
    
         $VMHostStorage = $VMHosts | ForEach-Object { #Then, for each VMHosts, get the VMHostName
              $VMHost = $_.Name
    
              $_ | Get-VMHostStorage | Select-Object -expandProperty FileSystemVolumeInfo | `
    
              ForEach-Object {
                   $VMHostStorageName = $_.Name
                   Add-Member -InputObject $_ -MemberType NoteProperty -Name FreeSpaceMB -Value ($Datastores | Where-Object {$_.Name -eq $VMHostStorageName}).FreeSpaceMB -PassThru | `
                   Add-Member -MemberType NoteProperty -Name HostName -Value $VMHost -PassThru | `
                   Add-Member -MemberType NoteProperty -Name TimeStamp -Value $DateVar -PassThru
    
              }
         }
    
         $VMHostStorage | Select HostName,Name,AccessMode,Type,Capacity,FreeSpaceMB, Path, TimeStamp | Export-Csv VMHostStorage.csv -notype
    }
    
    VMHostDiskDetails
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Text input does not pause for user input

    If all goes well, a simple question:

    Brief:
    I have a box of text on a page of simulation of connection that do not pause for user input. Instead, it just displays as if writing be typed and then continues.

    Question:
    How do I get this thing to pause and wait for the user to enter the login id?

    Detail:
    Version 1.01.1418 (full version), platform PC of Captivate
    Text entry box
    1 entry correct listed: "sa".
    Success = continue
    Display: Rest of slide
    Break after: 0.1 sec (varied this having any impact on a break for the entry)
    No transition

    DRM for advice.

    This must have been a dark note somewhere in the documentation:

    You can not interact with the page if preview you with play this slide (F3). The other preview modes to the text entry area work correctly.

  • Shoot/Get/the data value of the window for user input

    I'm trying to do something that should be simple enough for a programmer, but unfortunately, unfortunately to be a designer, I'm having a devil of a time with it.  After spending hours searching and trying different things, I thought to post the problem.  I have the feeling that I'm not the first creator of evil with it.

    I'm trying to extract a window input data and to transmit it to a variable.  In the script, I do a few purge(), and I don't know if that clears the values of input from the user during the script, but it's thinking ahead...

    I need the values to:

    Layer.translate (X, Y) / / if I'm wrong, it must be not - string

    bitsaveoptions. Method = ChanelScreen; in menu drop-down

    bitsaveoptions.angle = KAngle / / if I am mistaken, this must not be one - integer

    bitsaveoptions. Frequency = ChanelFrequency; If I am mistaken, this must not be one - integer

    bitsaveoptions. Resolution = ChanelResolution; If I am mistaken, this must not be one - integer

    bitsaveoptions. Shape = BitmapHalfToneType.ROUND; in menu drop-down

    I know that there are different ways to retrieve data from a window how .value, and perhaps others, but I can't seem to extract the data from user input

    Any advice would be greatly appreciated.

    Thank you.

    PS I work with Photoshop CS5

    That's what I have so far.

    = Ruler with millimeters

    app.preferences.rulerUnits = Units.MM;

    var doc = app.activeDocument;

    var layer = doc.activeLayer;

    var dropdownlistArray = new Array(); / / the table of drop-down lists.

    var chosen_action = null;

    var ScreenShapeArray = new Array)

    "Round."

    "Elliptical".

    );

    var WinContent =

    "dialog box {------}.

    orientation: 'column ', \

    alignChildren: ['fill', 'top'],

    preferredSize: 300 (130) and \.

    text: "Export settings"------

    margins: 15,.

    \

    Coordinates: Panel {------}

    orientation: 'column ', \

    text: "Quarters of channels,"------

    margins: 15,.

    alignChildren: 'right ', \

    KChanelX: Group {------}

    St: StaticText {text: 'X:'}, \

    you: EditText {text: '15', characters: 4, justify: 'just'} \

    ST2: StaticText {text: 'mm'}, \

    } \

    KChanelY: Group {------}

    St: StaticText {text: 'Y'}, \

    you: EditText {text: ' 10', characters: 4, justify: 'just'} \

    ST2: StaticText {text: 'mm'}, \

    }\

    }\

    bottomGroup: Group {------}

    cancelButton: button {text: 'Cancel', properties: {name: 'Cancel'}, size: [120,24], alignment: ['right', 'Center']},

    applyButton: button {text: 'Apply', properties: {name: 'ok'}, size: [120,24], alignment: ['right', 'Center']},

    }\

    }"

    = Create object window

    var win = new Window (WinContent);

    = Display window

    Win.Show ();

    var X = parseInt (win. Coordinates.KChanelX.te.selection);

    var Y = parseInt (win. Coordinates.KChanelY.te.selection);

    alert (X); Here I get NaN

    alert (Y); Here I get NaN

    If (typeof (X) = 'undefined' | typeof (Y) = "undefined") {}

    Layer.translate (X + "mm", "-" + Y + "mm");

    } else {}

    Alert ("here"); Always end - up here regardles of canling or accept the default values

    };

    You don't have a selection in an edittext field. Like c.pfaffenbichler said - you get your X and your Y's

    var X = win.Coordinates.KChanelX.te.text;
    

    and so on:

    var X = parseInt(win.Coordinates.KChanelX.te.text); // or
    var X = Number(win.Coordinates.KChanelX.te.text);
    

    Have fun

  • Increase the number max of entries on the prompt for user input

    Hello

    I would like to increase the number of entries beyond 10 available on the input function query the user. Right now I use 9 of the 10 entries available each operating a Subvi a box structure. I seem to be limited to 10 entries using the prompt the user for input function, so it is there another way to ask the user to choose from > 10 entries preferably 20.

    Thanks for any help

    Chris

    Chris69 wrote:

    However the converted VI (sub dialog.vi) always seems to be using the names of VI express 9 for entries

    I don't understand what you mean by that. The VI has only some (all cases 'red) wire indicators to the connector pane. You have no other wireline indicators.

    Rather than having individual terminals, you must use clusters. For example, an indicator cluster for your case of reds, a group for your green case and one cluster for the 'other' options.

    Aside: You have a comment on the "Select up to 2 cases" façade, but all your controls are independent checkboxes, so there is nothing to prevent someone from checking all the boxes. I assumed that you currently have set the size of the window so great for debugging purposes.

  • State machine - waiting for user input before going to the next State

    Hello

    I based on the example of standard state machine and would like some advice on how I can prevent labview in the next state until a user clicks a button.

    for example, the current state is 1, it runs through its code and its about to happen at the end, therefore, enter the following State, based on the defined constant "then of States." There are only two choices on how the machine should proceed, rto status to State 5 or 4 bedroom.  However, if I used a "select" function where other State is determined by the Boolean value of a switch, how to set up my code that labview is not just assumne the current switch (probably a 'low' is the value of boolena to use.

    IM is probably not very clear, but hope that you understand my problem.

    Thanks in advance

    Hi, rivers,

    Simply add a case to handle the 2 buttons until the case of the action is over. You can use a ' wait on the UI"function if you do not want to interrogate the buttons. You may experience problems if you use the event structure to implement this. If you use more structure and then 1 event in your code, you can get a problem with UI suspended indefinitely. This happens if a key is managed by a structure of the event in another part of the loop. Locks user interface until he is executed, but it cannot be run because it is in another case. You must use only 1 structure of the event to handle all of your entries, but if you do that, then, you will have the problem to allow only certain buttons at certain points. For example, you want to only 2 & 3 active after action 1 action buttons and the buttons that are used to go to other disabled at this stage steps. It will be messy. Better just to add an extra case after every case of action that deals with the interaction of the user for the next case. In the example that I joined, I placed action buttons in a cluster that is passed to all cases allowing you to get the keys you need when you need it. You could of course just to put the buttons in cases where necessary, but I prefer the first method.

    RGS,

    Lucither.

  • Dynamic stamps with the user input does not work in Acrobat DC

    After the update to Acrobat DC our dynamic personalized stamps no longer work. Pop ups to enter the data of the user are not more. When you open the PDF stamp if they work, but on the stamping stamp is affixed just without asking for user input via javascript.

    Any ideas on how to solve this problem? Is this a bug? Disabled Adobe functionality?

    K

    You should place as the custom calculation of one of the fields script and modify the code to check the stampName property.

    Search for information on dynamic PDF badges. There are many examples and code snippets out there in how to do it properly.

    There is even a whole book dedicated to this topic by Thom Parker.

  • How to: display a message while for loops, with no required user input

    Hi everyone, I'm relatively new to LabView, using 8.5.

    I want to display a message all in one for the loop runs, requiring no user input to delete the dialog box (that is to say, the box disappears after the end of the loop For).

    Any ideas?

    Thank you

    Darren


  • Get errors for the user input data filter no KB 911895 HID

    OT: iI have windows xp S/P 3 installed also apple i pad I get errors for the user input data filter no KB 911895 HID
    What should I do to get rid of this popup that wizzard windows keeps giving me?

    Hi Graybeard,

    What is the exact error message you get?

    HID Non-User Input data filter is an optional update. I suggest you try the steps from the following link:

    The screen saver does not start after the installation of a wireless pointing device
    http://support.Microsoft.com/kb/913405

    What version of the operating system Windows am I running?
    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update
    http://support.Microsoft.com/kb/910339

  • We have a requirement of click to call in installing 10.5 UCCX with customer website (user input) for our customer

    Hello

    We have a requirement of click to call in installing 10.5 UCCX with customer website (user input) for our client, anyone who tested it in the laboratory/prod settings?

    Thank you!!
    Magali

    Hello magali.

    It is possible to deploy with UCCX HTTP trigger type. To get the number of customer via the HTTP trigger to the script. Then we can place the outgoing number of customer to campaign or appeal directly to the customer and place this call to the QSC.

    There are two scripts for web reminder in Cisco repository of scripts, see this http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/cont...

  • Need advice on creating in Oracle decision tree

    Hello. I've been tasked with finding how to convert a decision tree to the Oracle tables. It is used for a user Help Center: If the appellant responds to A Question with answer 1, then C question, ask any other Question B, etc.. And they would like to record the responses of the user along the way. Specialists are developing the questions/typical responses and must now build a web-based system to guide people through this decision tree.

    How to create such a thing in a relational database? Your guidance is appreciated. Thank you.

    I would use two tables: one for questions and one for answers. Associate a response with the respondent to the question and then associate each question and answer that drives this question witch is nothing when it comes to the root.

    create table questions (
         question_id number,
         constraint questions_pk
              primary key (question_id),
         question_text varchar2(4000),
         parent_question_answer_id number,
         constraint questions_unq
              unique (parent_question_answer_id)
    )
    /
    
    create table answers (
         answer_id number,
         constraint answers_pk
              primary key (answer_id),
         question_id number not null,
         constraint answers_fk
              foreign key (question_id)
              references questions,
         answer_text varchar2(4000),
         constraint answers_unq
              unique(question_id,answer_text)
    )
    /
    
    alter table questions add (
         constraint questions_fk
              foreign key (parent_question_answer_id)
              references answers
    )
    /
    

    Where a question can be reached from several responses put you this relationship in a third table fits in this case.

    create table questions (
         question_id number,
         constraint questions_pk
              primary key (question_id),
         question_text varchar2(4000),
    )
    /
    
    create table answers (
         answer_id number,
         constraint answers_pk
              primary key (answer_id),
         question_id number not null,
         constraint answers_fk
              foreign key (question_id)
              references questions,
         answer_text varchar2(4000),
         constraint answers_unq
              unique(question_id,answer_text)
    )
    /
    
    create table question_links (
         answer_id number,
         constraint question_links_pk
              primary key (answer_id),
         constraint question_links_fk_1
              foreign key (answer_id)
              references answers,
         question_id number not null,
         constraint question_links_fk_1
              foreign key (question_id)
              references questions
    )
    /
    

    Alessandro Bye

  • To the number of decimal places control user input

    Hey everybody,

    I am all new to LabVIEW and just learn how it works. I was wondering if there was a way to allow user input to change the number of decimal places (the output of my function is infinitely extensible).

    I tried, but it did not work:

    Using a digital input, I appended a string with "%" + '[INPUT]' + 'f' with the number of function concat strings and string functions. I used the resulting string as the formatting string in the value format function.

    This doesn't quite work. The output should be something like "28.274", but instead, it displays "283f. Anyone know why? Is there a better way to do it?

    In addition, attach a picture of the front panel and diagram of block for clarity.

    (Yes, it's homework, but the assignment does not include allowing the user to adjust the number of decimal places, it's just something I would like to add.)

    Get rid of the number 2 for the width of your decimal string number.  It requires a space before a number to a number.  %. 6F is not equal to % .6f.  The string format don't quite understand the first format string.

    (PS.  It helps if you attach your VI.  In this way we can play with what you have rather than trying to recreate it from scratch.)

  • FILTER (KB 911895) NO HIDDEN USER INPUT DATA.

    I have the new Sony Vaio Tower w/Windows 7 Home Edition - the only failed download is HID NON-USER INPUT FILTER DATA (KB 911895).  I read all of the previous answers, but no one says it's function or end? If we do not need then why was he sent us to download?

    See http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80070103 [ignore the error number if necessary]

    HOW to hide an update or restore a hidden update
    http://www.SevenForums.com/tutorials/24376-Windows-Update-hide-restore-hidden-updates.html

    Tip: Get only driver updates you really need from the download page of the device manufacturer or the computer, not Windows Update.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Distribution dynamically to user input; best practices?

    Hi all

    Using LabVIEW 2013 (32 bit). Taking my first foray in LVOOP and I am currently designing our user input. This user of VI entry is distributed dynamically. The goal is to allow the user to "mix and match" different parts of the application as much as possible. The request is for a controller of a biological system. In particular, we have the notion of 'Controller', a 'model' and a 'Patient'. All patients have the same characteristics, but the controllers and models only share an external interface. Some controllers can control to a set point, some of a range, some to a set of ranges depending on the time and the current status of the Patient. As such, I would like to have some kind of dynamic dispatching on the phase of input from the user. The way I thought to do was via sub-panels, with a tab control to allow the user to move between different parts of the installation.

    This is a model of the façade of the user input:

    http://i.imgur.com/sMZ7xFD.PNG

    So if you have a controller of some, this interface panel controllers user come in a secondary, through a kind of dynamic distribution. This would allow you to move seamlessly between the controllers and have always a consistent user experience, for example, 1 controller can have you choose a range to control (two digital figures), while the controller 2 can have a control point (just a digital), as follows:

    http://i.imgur.com/6QpKXco.PNG

    http://i.imgur.com/u2mla8N.PNG

    You can assume that we have access to instances of the controller class, the class Patient and the model class at this stage of the dynamic allocation.

    When I tried to implement this, I came across some problems:

    http://i.imgur.com/2ZZqdka.PNG

    The error is: "call by reference: refers to a dynamic member VI; The stream of strictly typed reference VI entry connector includes a terminal dynamically a reshipment, which is that he is part of a method of a class of LabVIEW. Dynamic member screws are not supported in this version of LabVIEW by calling the reference node. »

    I understand the problem, it's may be too general for LabVIEW manage cleanly, but is there a way for me to maintain the "kindness" of dynamic distribution in this case accurate?

    What I did do a VI 'protected' which was the dynamic distribution to get the reference to the GUI VI.  This way I could make the object show GUI of the parent if I wanted to rather than making yet another screen.  This VI was called by a public VI that only the top parent class should manage (static shipping).  I did not use the asynchronous call, but I think it would work.

Maybe you are looking for