I have a requirment where I want to append the parameter to context in the frontend screen.
I can do it via webhook as :
1. Get Context Param1 and Parameters Param1
2. Append Context Param1 with Parameters Param1
3. Set Context
But is it possible to do it from the frontend? We can access the context variable using #contextA.variableB. But can we write groovy or some other expression in the Argument section like $variableB+#contextA.variableB ?
I hope you got my ask, let me know if the question is not yet clear, I will try to give brief example as well.
Thanks in advance.
No.
Through the console alone, context parameters are set to the value of the parameters set from the sample phrases.
If you need to set context parameters to something else, you need to use fulfillment. You can use the built-in fulfillment editor, but you'll need to use something.
Related
I'm new using Elsa and I try to run a hello world example.
When we need to call the workflow, we just need to call this sentence:
await runner.BuildAndStartWorkflowAsync<HelloWorld>()
I'm wondering for example how I can call the HelloWorld class but sending some parameters that are coming from outside.
BuildAndStartWorkflowAsync has some parameters, one of them is input of type WorkflowInput, which I assume is used to send values to the workflow. Once I call the workflow, it goes to the HelloWorld/Build method, how can I read this input from there?
The way of calling the workflow with initial parameters it is:
await runner.BuildAndStartWorkflowAsync<HelloWorld>(input: new WorkflowInput(yourobject));
where "yourobject" is whatever you want, a class for example with some properties.
I have a template for AWS Cloud Formation. In this template I have set several parameters.
Now, what I would like to do is to leave a parameter field empty but allow the user to select
a specific parameter for example a security group. Now what I would like to do is that if
a user does not select anything (field stays empty) I want it to give an error message saying
field required when you want to proceed and prevent the user from proceeding, as it happens when you do not enter a stack name (see screenshot below).
How do I do this for any parameter in a cloud formation template??? I have searched around but do not find anything
regarding validation of user input …
I know I could set a default for everything, but I do not want to set a default and specifically force
a user to make a selection in this case …
Please see this thread:
https://forums.aws.amazon.com/thread.jspa?threadID=230829
Suggested solution: simply use regular expressions in AllowedPattern.
For e.g. to have a non blank value:
"AllowedPattern" : ".+"
If you want the parameter to be alpha numeric:
"AllowedPattern" : "[a-zA-Z0-9]+"
To match an exact word:
"AllowedPattern" : "^my_matched_word$"
i have this problem, an "url" has a "token" which generates a random number.
When i try to manipulate an object in this "url" during the run session, UFT doesn't recognize the object because the "url" change.
For example:
record::
Browser("url").Page("dynamicalUrl").WebButton("cancel").Click
'The url value of Page( "dynamicalUrl") is for example: https://example.com/token=542654364678
Run Session::
UFT crashes in the step, because it doesn't recognize objects and the url value of Page( "dynamicalUrl") changes to: https://example.com/token=987757858
Is there any solution to this?, if someone know how to solve this, thanks in advance.
if you only need the cancel button try to make the object dynamic
Use the spy to review properties and select the most appropriate ones.
Browser("index:=0").Page("name:=Page").WebButton("name:=Cancel")
There is no need to have any description for Page objects. Every Browser has only one Page, the reason UFT has this object at all is to create manageable object repositories.
Usually it is a Bad Practice to use the URL as a Page identififer. Try to use the title property instead.
In case you need the URL, use it as a Regular Expression. If your token is just numbers than the regexp is something like:
https://example.com/token=\d+
Generally speaking whatever is a dynamic part in a Property you need to use Regular Expressions for that
I need to know how to update the values in nifi processors using Rest API.
https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
For example: I have used below processor structure
GetFile>SplitText>ExtractText>ReplaceText>ConvertJSONToSQL>PUTSQL.
I have passed following inputs for above processors.,
FileLocation(GetFile).
validation(ExtractText).
ReplacementValue(ReplaceText).
DBCP ConnectionPool,username and pwd for SQL.
I just need to use nifi rest api client to write above inputs into processors.
For example : If I give Processor name and input file in Rest API Client then it will write into processor.
Please stop me if anything i'm doing wrong.
Help Appreciated and Tell me any other ways is possible?
Mahen,
You can issue a PUT request to /processors/{id} and provide the new value of the "Replacement Value" property. You'll need to provide JSON body in the request to do this, and you can see the structure by expanding the endpoint noted above on the documentation link you provided, then clicking ProcessorEntity > ProcessorDTO > ProcessorConfigDTO to see the pop-up dialogs with the element listing and examples. You can also quickly get the current values of the processor by issuing a GET request to /processors/{id}.
I am trying to use go cd for continuous delivery and create a pipeline for the same. I m able to get success result after running the job but in that job i did not pass any parameter.I want to pass parameter in custom command to reduce repetition within my configurations.
We can pass parameter via a environment variable -eg If you want to pass a version in your custom command and value is 1.2.4 so define the value in environment variable and pass the value in your command for example ./abc #{version}.
You might get error while editing the command (Parameter is not defined error) add the same varibale in parameter tab as well .[![enter image description here][2]][2]
I could not get the clear picture of what you are expecting. But as far as I could understand, you want to perform a custom command task by passing few parameters as input.
When you choose custom command, you will get something like
In Arguments block, you could give the input parameters you need to pass for that particular task.
Edit : I think this may help you.
Parameterize your Configuration
Please go through this link and see whether this helps you. They had explained about defining and using the parameter in a pipeline