json syntax for runworkflow
i want to add a workflow to the rightclick custom module in my viewer. i do not know how to run a workflow with argument and the token"${Geometry}"
for example:
i want to runworharguments the workflow "buffer_screenpick_point" and also use the ${Geometry}
to do this for the html5 viewer i would need to use json:
{
"title": "Landfire Identify",
"command": "runworkflowwitharguments",
"parameter": "landfire_test",
"parameter": "${Geometry}"
}
-
need to add that code does not work, i would like help with the proper syntax.
{
"title": "Landfire Identify",
"command": "runworkflowwitharguments",
"parameter": "landfire_test",
"parameter": "${Geometry}"}
0 -
Hi Jeff,
The version of the module you are using automatically supplies an argument named 'Geometry' when using the command 'RunWorkflowWithArguments', so you just need to supply the workflow id as the parameter.
I would however encourage you to download the new version, available at the same location in our Code Gallery. This version integrates with the HTML5 viewer's existing menu system, allowing the use of any configured menu as a right click menu. It also supports multiple command parameters, so you can send both the workflowId and the geometry (using whatever argument name you like) to the command. See the provided example for sample configuration.
0 -
Forgot to mention above: The new module does require GVH 2.4. If you are still using a previous version you'll have to stick with the old one.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare