Aller au contenu principal

How can I pass arguments to a workflow 5?

Commentaires

9 commentaires

  • Stefan Schweigert

    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
  • Permanently deleted user

    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:

     

    GW5GeometryTokenInput

     

     

    0
  • Erik Kuipers

    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
  • Stefan Schweigert

    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
  • Stefan Schweigert

    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
  • Erik Kuipers

    Stefan,

     

    Thanks I was already trying without success. This was the way I tried already. I wait until it is fixed

    0
  • Jostein Svegården

    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
  • Stefan Schweigert

    Hello Jostein,

     

    No updates yet, but I have raised this request with the development team.

     

    Thanks, Stefan

    0
  • Stefan Schweigert

    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.