Entry to the workflow multiline string

I'm working on integration with FortiManager via SOAP plugin vCO 5.1. One of my steps will be to install/run a script from several line like this:

# Set FortiAnalyzer
config log fortianalyzer setting
set status enable
set server xxx.xxx.xxx.xxx
set localid FGT60Dxxxxxxx
set upload-option realtime
set reliable enable
end

Ideally, the workflow would be take in a block of text, assign to a variable, then who has inserted properly in the SOAP call.

Is it feasible or possible?

Of course, simply choose "Enter multiline text" for the input string to get several lines

Tags: VMware

Similar Questions

  • How do the entries in the workflow work?

    I'm trying to configure a workflow where the entrance is a single virtual machine.

    From there, I have a Scriptable job that gets the VMS cluster name and fqdn vcenter.

    I would like to provide this information to a "Invoke a Powershell script ' which will be then to reach out to a rest API (currently a static IP address) and pull back some information and paste it into a table.

    Using this dynamically generated table, I would like to invite the user to select an item in the table I just generated.

    I thought that if I linked entries to different tasks scriptable, which would make, but it doesn't seem to work that way.

    When I run my workflow, he asks for all entries at once.

    Is it possible to ask for information several times?

    Thanks to all the help so far. Really appreciate it.

    It should be possible to do with data binding in the presentation of the workflow.

    You can create a workflow with 2 input parameters, the first of type VirtualMachine and the other of type string. The second parameter must be a presentation property 'List predefined elements' associated with an action that has the array/string return type and an entry of type VirtualMachine. In the property editor, change the generated GetAction (...) expression that invokes the related action and add the first parameter of workflow as input. It should look like

    GetAction("your.action.module.name","yourAction").call (#vm)

    assuming that the 'virtual machine' is the name of the parameter of your workflow.

    Therefore, whenever the value of the first parameter is defined, will be called the related action. This action will analyze the setting entry to the virtual machine, reach out to your api through powershell and return a list of groups like the array of string which appears as a drop-down list box in the second parameter of workflow and you'll be able to select a group from there.

    The only downside would be if your recovery of group via powershell code takes too long. In this case, the user can get a perception that the presentation of the workflow is stuck.

  • Radio button/list as input in the workflow

    Hello

    I use orchestrator 4.0.0 and seeks to be able to give entry into the workflow as a selection from a list... It's that the entry will contain a list of options and the user, while the execution of the workflow will select an option in the list...

    Is there a way to do this...

    Ashish

    Ashish, greetings

    To submit such a list, where one option is selected, follow these steps:

    The entrance to type the value: String

    On the Presentation of your workflow tab, look for your entry

    Select your entry, and then click the "Properties" tab in the bottom half of your window

    Then, add a new property 'list predefined elements '.

    Then, specify the list of the options that you want to be available to your user. This may indicate an Action that retrieves the list (an array of strings), an attribute of workflow, a workflow entry or a list of items you specify right there in the predefined list of the property aspects of your presentation of entry!

    Visit me on http://www.vcoteam.info for vCenter Orchestrator tips and tutorials

  • Entry of workflow change during execution of the workflow

    Hi all

    I've created a workflow to deploy a virtual machine for one of my clients. The workflow deploy a VM from a model, connect the network adapter to a DVportgroup, run sysprep, if necessary, add the disk if necessary, change the ram if necessary, change CPU if necessary and install a lot of software for virtual machine complies with the customer's environment.

    During the deployment, if the user you can add a disk to its virtual machines, it needs answer a simple question and enter the size of the disk. The format (thick or thin) is automatically selected as per their standard.

    My workflow is running, and works well, but they want to add an option for a number of disk. Let's say a user want to add three disks! I have add this fields: how many disks to add? And put the answer in a variable number. I added a counter after the workflow add drive as you can see in the image below.

    adddisk.JPG

    When the counter reaches the number of drive the user wants, it will go to the next steps.

    This work but always create the disk with the same variable in size, so all the disks are the same size! It's not very practical!

    I want to know what is the best way to have a size for every reader to create variable? The number will never be the same. Let's say I want to add 3 disks, one of 250 GB, 300 GB and 350 GB. I want my user to enter 3 variable sizes.

    I guess I'll have to ask my user to enter different size separated by a; or, in the code to read these numbers. This will be stored in a variable. But is there any other way?

    Thank you for taking the time to read and help!

    You can ask for how many records you wish to have, then depending on the response, calls for each drive size. Once you have variables that you can update your loop for adding disks to use the correct size for each drive. Not terribly complex turns and it provides for the entry of more pleasant for the user to define the sizes with semicolons, commas or whatever.

    Take the drive entries size and put them in a table. In this way, when you add for each drive, the index must be for each drive... for example:

    Entries:

    driveCount (number)

    driveSize1 (number)

    driveSize2 (number)

    driveSize3 (number)

    // Create array to store drive size inputs
    var drives = new Array();
    // Only store drive size if it has been defined. I went simple, from the top of my head here and chose > 0 to determine..
    if (driveSize1 > 0) drives.push(driveSize1);
    if (driveSize2 > 0) drives.push(driveSize2);
    if (driveSize3 > 0) drives.push(driveSize3);
    

    ... now, you have to browse loop to add your readers:

    before your disk subworkflow added, put in a scriptable job that sets the current disk size:

    something along the lines of:

    var diskSize = drives[loopCounter];
    
  • How to move the vm as param of entry to run the workflow

    Hello

    I'm trying to run a workflow through the development of webservices API for vCenter Orchestrator.

    could you please tell me how can I make a virtual machine typ VC:VirtualMachine as a param of entry via API.

    for now, I do it this way and his giving side workflow error "parameter invalid vm.

    Please notify

    FinderResult = FinderResult

    VMO .findForId ('VC:VirtualMachine' 'aspvc.ap.vspp/vm-199' username password);

    InputParameters [] WorkflowTokenAttribute =

    new WorkflowTokenAttribute [workflow.getInParameters (). ] length ];

    in our workflow, we have only one parameter.

    inputParameters [0] =.

    new WorkflowTokenAttribute();

    inputParameters [0] .setName (workflow.getInParameters () [0] .getName ());

    inputParameters [0] .setType (workflow.getInParameters () [0] .getType ());

    and put our values serialized to Virtual Machines

    / / #{#finderResultlist + #+ finderResult. getDunesUri() + #} #

    inputParameters [0] .setValue ("

    ("#{#VC:VirtualMachine #dunes://service.dunes.ch/CustomSDKObject?id="aspvc.ap.vspp/vm-199"& dunesName ="VC:VirtualMachine"#} #")

    Now, start the workflow. Here, we don't need to wait for the end of the workflow

    VMO .executeWorkflow (workflow.getId (), , username password )

    inputParameters);

    I'm not an expert using the api, but could you tell me what happens if you change:

    .setValue("ParamètresSaisie (InputParameters) [0]")

    #{' #VC:VirtualMachine #dunes://service.dunes.ch/CustomSDKObject?id= ' aspvc.ap.vspp/vm-199'&dunesName='VC:VirtualMachine'#}# ')}

    TO

    inputParameters [0] .setValue ("dunes://service.dunes.ch/CustomSDKObject?id=" aspvc.ap.vspp/vm-199'&dunesName='VC:VirtualMachine' "")

  • Cannot turn off the field from the date of entry into application workflow

    Hello

    We implement the workflow application in OIM11g.

    We use application templates to achieve this.

    We want to disable or remove the field from the effective date in the rationale page that appears when we raise a request. Did one of you has implemented or came across this scenario. Please update if you have an idea about that.

    Thank you

    The property system will remove the entire page of the process, including the justification box.

    -Kevin

  • Rest of the Workflow Service API now

    I have a workflow that works perfectly in vRO 6.0.3.  I migrated the workflow to vRO 7 and I get this error when running: not supported the value of the header: accept = * / * I'm defining the header with this command

    request.setHeader ("Accept", "application/json");

    Here is the complete answer

    |  'attribute': name = error code type = string value =

    |  'attribute': name = restOperation type = value REMAINS: RESTOperation = "d18034f6-cdd2-484e-bfbd-752ac1274f3d:7f70ca66-6c2f-4353-bcad-e96843fbd2fc" dunes://service.dunes.ch/CustomSDKObject?id= & dunesName = ' REST: RESTOperation.

    |  'attribute': name = statusCodeAttribute type = numeric value = 400

    |  'attribute': name = hostResource type = value ResourceElement = dunes://service.dunes.ch/ResourceElement?id= "0dc69f5c-e39e-49a8-bd65-9cbd6bda9b2d" & dunesName = "ResourceElement".

    |  "output": name = statusCode type = numeric value = 400

    |  "output": name = contentLength type = numeric value = 232

    |  "output": name = bots = properties value=#[#Snapi-Request-Id#=#string#a288deff-68d3-48b6-8478-d841c53bc001#+#Strict-Transport-Security#=#string#max-age=15768000; includeSubDomains;#+#Server#=#string#gunicorn/19.3.0#+#X-Cnection#=#string#close#+#Set-Cookie#=#string#JSESSIONID=C2C4D02AB5F1042977303385B65B0EC2; Guarantee; Path = /; HttpOnly, BIGipServerpool_disney is 1400914186.41278.0000; [Path = / #+ #Content-length #= #string #232 #+ #Date #= #string #Sun, February 28, 2016 03:27:23 GMT #+ #Content-Type #= #string #application / json #] #.

    |  "exit": name = contentAsString type = string value = {'error': {'message': "not supported the value of the header: accept = * / * ',' detail": "not supported the value of the header: accept = * / * check error logs trace or enable the glide.rest.debug property check processing demand REMAINS" "}, 'status':"fail"}

    |  "output": name = type of numbers = Array/string value = #{#} #.

    |  ["output": name = output type = string value =]

    |  "exit": name = type of results = string value = {'error': {'message': "not supported the value of the header: accept = * / * ',' detail": "not supported the value of the header: accept = * / * check error logs trace or enable the glide.rest.debug property check processing demand REMAINS" "}, 'status':"fail"}

    |  "no entries".

    End of the execution stack.

    Someone at - he seen elsewhere and not a clue?

    There was a bug in header processing logic that is fixed in the latest plugin versions and will be available with the upcoming vRO 7.0.1 version.

    A quick fix would be to change the line set to your header (note the lower case 'a' accepts):

    request.setHeader("accept","application/json");
    
  • Get the workflow parameter value before the end of the SOAP client workflow execution

    I'm calling webservices SOAP Orchestrator of my request to run a workflow. I want to get a parameter/attribute value before execution of the workflow.

    Brief:

    I have a XYZ workflow that adds two numbers provided by my application. After that my workflow perform some other features that say 5 minutes.

    My application is the result of the addition from the addition is performed. I don't want to wait for these 5 minutes to finish after what my worlkflow is finished and then obtain the result.

    Hello DeepakPN - first of all, if you use vCO 5.x, we strongly recommend to use the api instead of the old api SOAP REST.

    Now, to answer your question:

    When you run a workflow, the returned soap body includes a return workflow id: this is your workflow token id - essentially the Runspace of your workflow. He looks a bit like this:

    
       
          
             
                ff80808141e74b090141f05c5d2c00f7
    

    There are several additional lines less than retail, but I left it as an important component of the info here is this tag . The value that it contained should be used with the operation "getWorkflowTokenForId". By providing this ID and your credentials, the resulting SOAP body will contain details of your performance at the time of your request. So, if you have your amount stored as an attribute at the time that you run the query, you will see the results. For my simple test, here is my operation "getWorkflowTokenForId" for a test flow that I came through SOAP:

    
       
          
             
                ff80808141e74b090141f05c5d2c00f7
                Any Test
                1a568e2e-5c15-4b68-9bab-20cb955f0004
                item0
                completed
                completed
                
                20131025120447-0400
                20131025120447-0400
                
    
    
    >
    >
    
    
    
    ]]>
             
          
       
    
    

    Inside the tag, there is a tag that contains each of my entries/attributes. In the code above, 'anyInput' is the input parameter for my workflow and of the "inputTypeName" as an attribute.

    Hope this helps

  • Action to get SQL DB data in the workflow presentation

    Hi all

    I'm trying to create an action, where I read the data in a SQL database and presented this as (predefined items list) in the presentation of my work.

    I have a DB table with names, and I will introduce this name as a list of selected on my display of web pages in my workflow.

    I have a workflow where my client needs to select an approver of costcenter and I have all the approvers costcenter in my SQLDB.

    I know I can create "Pre-defined answers" with this name, but that I need to manage the DB and the workflow tables and I manage only the DB.

    Any who have already done this?

    At this point, you should have a list of the columns / rows when you use the plugin object as input. If you must have a fall down then you must either create an action using this object as input and returns an array of string and use it in a field of string entry to a property of the preset list.

    I don't know if the plugin SQL has the option to display values in drop down without making such a transformation in action.

    You can try it with the download here: http://www.vmware.com/products/datacenter-virtualization/vcenter-orchestrator/plugins.html

    It may end up to be much easier to maintain. I mentioned the plugin DB personalized because that's what I've used before and héLas had no chance to work again with the plugin SQL.

    Christophe.

  • retain the value of the component when navigating the workflow

    Hello
    my English is not very good
    I use jdveloper 11.1.1.3.0

    I defined a stubborn workflow and 3 view in this btf show 3 page fragment. in each view, I put 2 text entry components.
    the problem is when I navigate to a point of view to other view and return, the value of the entry text is reset. Input text is not binding on anything.
    is a way to maintain the value of text entry and other components when navigate views without any attachment?

    Habib

    Hello

    A solution would be to store your values to pageFlowScope. By doing this, your variables are going to be alive and with the same values as long as you are inside your stubborn workflow. For example,.

    You can create your Java Bean and have something like:

    String Variable1;
    String variable2;
    String variable3;
    String variable4;

    setters and getters for those.

    In your values in the inputText fragments would be #{pageFlowScope.myBean.variable1.inputValue} and so on.

    Since your bean is created once when creating your workflow (choose pageFlowScope) your variables will remain the same as your living taskflow.

    hope this helps

  • Parameters of entry into a workflow

    I have a workflow that has 2 controlled beans. Every bean has a member something like that

    private String employeeName;

    with the getter and setter methods. Now I have an input for the taskflow parameter. Is it possible to link this setting entry to the "employeeName" two beans?

    Hello

    strategies can be

    (i) have 2 input parameters
    (II) the method of setNameOfPrivateProperty() update the same property on the other bean
    (III) that the method of getNameOfPrivateProperty() of the bean to second reading of its value since the first bean (you can use a managed property referencing bean 1 for this)
    (iV) bean1 and bean2 are not exposed to the inputParameter but a bean3. Bean 3 is then referenced by bean 1 and 2 of beans as a managed property

    Frank

  • Divide the number of string data

    I have user as J1 entries. A1 through J1. A20 that I want to get the given text range 1 to 20,

    Please share me the logic

    Concerning

    Vikram Kumar P

    I would like to use the Scan of string with format set to "J1. A %d.  You will get the digital value as output.

  • Passing parameters to a method call in the workflow

    Hello

    I have a jsff page with a table it contains. To fill the table I used the default activity in the workflow.

    Table is is filled with data. When clicked on a line other jsff should get called.

    For this, we have written action method in the backup of the homepage bean.

    public String homeNavigation() {}

    Return "navigateToJobDetails";

    }

    and in the workflow if "navigateToJobDetails" is returned, we called breeding "getJobDetails" for complete details on employment and the method of flow control is given to the jobdetails.jsff page.

    This stream works very well, but we need to send parameters to the getJobDetails method. How this can be done.

    Help, please.

    JDeveloper 11.1.1.7.0

    http://docs.Oracle.com/CD/E12839_01/Web.1111/b31974/taskflows_activities.htm#ADFFD1676

    See: 15.5.2 How to specify the method parameters and return

    Dario

  • Missing values in the workflow

    I copied the 'Clone the virtual machine, no customization' workflow and created a wrapper for it where I put all the values except the name of the virtual machine that will be created. Then I used the plugin Firefox REST Client to do a POST for the REST of the workflow endpoint and include the value of the name of the computer like this:

    {

    "settings":

    [

    {

    "value": {"chain": {"value": "newVM001"}},

    "type": "string",.

    'name': 'name '.

    }

    ]

    }

    This set works as expected and a new virtual machine is deployed with the name I said. Awesome!

    Now, I take the exact code and drop it into my app, set all required values and test my REST call. The workflow is started, but it fails with the error:

    Cannot create VcVirtualMachineRelocateSpec: TypeError: cannot read a 'parent' of undefined property (name of the dynamic Script Module: getRelocateSpec #8)

    After chasing down the issue for some time, I discovered that all the values I put in my wrapper are reports such as undefined/null. Thus, for example in the getRelocateSpec Action, 'pool' and 'host' are not defined when I send the request in my application, but they have values defined the package when I send the request via the customer REST FF.

    Is this a bug or am I missing something here?

    Just to be sure, I tried with JSON and XML, same case. I see the new VM name being received by the flow of work, but for some reason, all the values defined by the wrapper were wiped out.

    The following XML code:

    " <-xmlns = execution context" http://www.VMware.com/VCO "> "

    < Parameters >

    < description parameter = "VM" type = "string" name = "name" >

    < string > newVM001 < / string >

    < / parameter >

    < / Parameter >

    < / execution context >

    I managed to solve the problem. The account I used to run the workflow has not been correctly permissioned. Once I brought the permissions that everything worked as expected.

  • Curl call to start the workflow with the Type of table / Composite

    Hello I'm trying to start a workflow with an array type / Composite.

    I'm using curl to make the call and post fields look like this when you send just a string:

    {

    "settings":

    [

    {

    'value ':

    {

    "chain": {"value": "test"}

    },

    "type": "string",.

    "name':"vm. "

    "scope": "local".

    }

    ]

    }

    How would he format if I had a type of table / Composite?

    The composite type has the format of the Type / size and String / number

    Well, I don't know like what your workflow, but here is what looks like my quick test workflow:

    MESSAGE: https://YOUR-VCO-SERVER;8281/vco/api/workflows/475a3967-2c29-4140-a63f-ec1822ec330b/executions/

    Headers:

    Content-Type: application/json

    Accept: application/json

    And here is the json work to get into the body:

    {
        "parameters": [
            {
                "value": {
                    "array": {
                        "elements": [
                            {
                                "composite": {
                                    "type": "CompositeType(Type:string,size:number):drives",
                                    "property": [
                                        {
                                            "id": "Type",
                                            "value": {
                                                "string": {
                                                    "value": "NTFS"
                                                }
                                            }
                                        },
                                        {
                                            "id": "size",
                                            "value": {
                                                "number": {
                                                    "value": 20
                                                }
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "composite": {
                                    "type": "CompositeType(Type:string,size:number):drives",
                                    "property": [
                                        {
                                            "id": "Type",
                                            "value": {
                                                "string": {
                                                    "value": "ext3"
                                                }
                                            }
                                        },
                                        {
                                            "id": "size",
                                            "value": {
                                                "number": {
                                                    "value": 25
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                },
                "type": "Array/CompositeType(Type:string,size:number):drives",
                "name": "drives",
                "scope": "local"
            }
        ]
    }
    

    I've included the workflow here as well.

    Just a simple script:

    System.debug("Drives:");
    for each (drive in drives){
      System.debug("================");
      System.debug("Type: "+drive.Type);
      System.debug("Size: "+drive.size);
    }
    

    My results:

Maybe you are looking for

  • ITunes

    IPhone ITunes не видит 7. ПИШЕТ НУЖНА САМАЯ НОВАЯ ВЕРСИЯ. ХОТЯ У МЕНЯ ПОСЛЕДНЯЯ.

  • Why are there bars when I go to the YouTube app?

    Why are there bars when I go on the YouTube app, I'm on it and I start a video and there are bars on the bottom and top of the screen, you can solve the problem?

  • HP laserjet cp3525dn: smile print hp laserjet cp3525dn

    Hello I have a hp laserjet cp3525dn, since yesterday when I try to print all the documents it prints just few smiles in the top of the page. Data of the led flashes, and in the display, there is written: "the data received to print the last page pres

  • HP Pavilion DV6-2010sa recovery

    Last February the HARD drive damaged carrying with him the recovery partition. I haven't had the recovery discs myself because I forgot to so now I can't, so there is no way that just order them from somewhere, apparently to Malta, no HP Agent cannot

  • Windows Live Mail is not download all the new stuff, or let me delete any old or let me send.

    Hi there, my Windows Live Mail that I used for years has left work yesterday.  I tried to sync it with my hotmail account and it wouldn't work.  Then I tried to delete more spam in my account, only to get an error message saying: "an unknown error ha