How can I pass arguments to a workflow 5?
In workflow 4 we where able to pass arguments from Feature Description to a workflow with replacement tokens. How could I achieve this with RunWorkflowByUrl in Workflow 5?
This example shows how to create a button and add inputs. But I need to pass a geometry to a workflow from feature description.
Workflow 4 way:
<a href="command:RunWorkflowWithArguments?workflowId=BufferParcel&ParcelGeometry=
{$Geometry}">Create Remediation Buffer</a>
-
Hi Carlos,
This is currently not possible with GW5. You are able to configure a static input value within the inputs parameter within the RunWorkflowByUrl configuration, but nothing at runtime like using a replacement token.
Would you be able to add this feature to the Ideas section?
Thanks, Stefan
0 -
Hi Carlos,
I think the following configuration will do what you're looking for:
<a href="command:RunWorkflowByUrlAndInputs?url=https://myworkflowurl&inputs={$Geometry}">Create Remediation Buffer</a>
I tested with the following workflow configuration and it worked. Keep in mind this particular test only works if your basemaps and the layer who's feature description you edited use the same projection:
0 -
Hi Amanda,
What is way to send multiple inputs?
<a href="command:RunWorkflowByUrlAndInputs?url=https://myworkflowurl&inputs=test,test2">Create Remediation Buffer</a>
in my workflow I tried =$getWorkflowInputs1.inputs[0] but just get first letter
0 -
Hi Erik,
In order to access the inputs, you reference the name of the inputs directly.
in your case:
$getWorkflowInputs1.inputs.test and $getWorkflowInputs1.inputs.test2
Thanks,
Stefan
0 -
Hi again Erik,
Sorry, I misread your use case, I was thinking about running a workflow from a button in the toolbar, rather than a hyperlink.
This is an existing issue which is currently in our list of issues.
Thanks, Stefan
0 -
Stefan,
Thanks I was already trying without success. This was the way I tried already. I wait until it is fixed
0 -
Any development on this? I often run old workflows from a hyperlink in the featuredetails, passing the OBJECTID as a parameter to the workflow. This is highly needed
0 -
Hello Jostein,
No updates yet, but I have raised this request with the development team.
Thanks, Stefan
0 -
Hello Erik and Jostein,
You should be able to use multiple parameters if you use this syntax: &input1=value1&input2=value2
The name of the parameter can be whatever you'd like, and is referenced as $getWorkflowInputs1.inputs.input1
Thanks, Stefan
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
9 commentaires