Mapping URL Parameters to Workflow Input Arguments
I am trying to understand how to pass URL parameters to workflow input arguments. For example, if I have a simple workflow named wfAlert that opens an Alert Box when the site is launched. The Alert Box properties are:
Title = "Your Name" and Text = txtName. txtName is of course a declared string variable.
If I want to change the value of txtName at launch, I assume I can pass a value to the variable txtName in the HTML5 site's URL with something like this:
<URL>?run=wfAlert&txtName=Joe
Or, do I do something like:
<URL>?run=wfAlert&Text=Joe
If one of these is right, perhaps I'm not understanding workflow arguments / variables in the workflow.
Please advise...
-
First of all, you need to be using: ?runWorkflow to run a particular workflow from your URL.
So assuming your wfAlert's input Argument is "txtName", your URL would look like:
<URL>?runWorflow=wfAlert&txtName=Joe
0 -
Thank you for reply. The Geocortex Viewer for HTML5 Administrator and Developer Guide states that 'run' and 'runWorkflow' are the same. In fact, I've tried both and they both run the workflow. The problem I'm having is the arguments are not getting passed to the workflow. Or the arguments are getting passed but the workflow isn't receiving them. Unfortunately, I'm missing something.
0 -
With the help of a coworker, I figured out my issue with passing arguments. The problem was, in my workflow, I had declared variables, which I was trying to pass in the URL. I should have declared arguments instead of variables. The arguments pass successfully in the URL.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare