Unable to run commands or events
Hi all,
I have a problem with run command activity. When I run commands, even the simplest one 'ShowLog', I get this error:
[WF: activity not implemented] The gcx:wf:app::RunCommand activity has not been implemented
I appreciate any help to fix this issue.
-
What is your target viewer application? HTML5 viewer because ShowLog is a command for this viewer?
https://docs.vertigisstudio.com/essentials/gvh/latest/commands-help/#/commands/Log/ShowLog
1 -
thanks Nico Burgerhart
Yes I used it with HTML5 viewer, as a client side.0 -
The error message means that Workflow is unable to find the "Run Command" activity. It's not even getting as far as looking at the inputs and executing it.
Is it possible you're somehow using an older version of Workflow? Might there be network errors?
0 -
I am using workflow 5.26.
essential: 4.14
all the other activities work without any issue except the run command, actually I am getting same issue when running Publish event activity.
0 -
I also have same issue in running "tasks.identity" in workflow 5.30.1 vertigis
If there is an example which run commands are successfully run, it will be very helpful
Best,
Lubna
0 -
This might be a problem with GVH. Both the Run Command and Publish Event activities are defined separately for GVH. Could you please check your network traffic and see if there are errors with either of these URLs:
- https://apps.vertigisstudio.com/workflow/dist/hosts/gvh/activities/app/PublishEvent.js
- https://apps.vertigisstudio.com/workflow/dist/hosts/gvh/activities/app/RunCommand.js
This is where GVH should be loading these activities from.
0 -
Dear Ken,
I try to run another command "GetApplicationInfo" which is in the same path below using the VGW and it works fine with me
It will be very appreciated If you share a simple workflow that used run command "tasks.identify" and run successfully
Best,
Lubna
0 -
HI Lubna,
I need you to look for those URLs in the network traffic that I mentioned before. A sample workflow won't help you as your viewer is not even able to find the activity to execute it.
0 -
Hi Ken,
The URLs that you mentioned doesn't return any error when I click on it, see the below screenshot.
What I am looking for is to enhance the workflows that I built to make identify task using run command after doing some activity. For example, the workflow below is working fine with me but when add the run command, it didn't return any data, what might be the issue here (in command or activity parameter)
I think the error could be in parameter, what do you think
Any help will be very appreciated
{
"_properties": {
"isServerWorkflow": false
},
"components": [
{
"id": 2,
"steps": [
{
"id": 3,
"inputs": {},
"position": "-100,100",
"purpose": "start",
"title": "Start",
"transitions": [
{
"id": 81,
"inputs": {},
"position": "-10,160 -10,270",
"sourceConnector": "bottom",
"target": {
"id": 11
}
}
]
},
{
"action": "gcx:wf:forms:form:DisplayForm",
"id": 11,
"inputs": {
"form": {
"accessors": [],
"code": "resources.forms[values.id]",
"values": {
"id": 12
}
}
},
"name": "form1",
"position": "-130,270",
"title": "Display Form",
"transitions": [
{
"id": 68,
"inputs": {},
"position": "-10,390 -10,460",
"sourceConnector": "bottom",
"target": {
"id": 22
}
}
]
},
{
"action": "gcx:wf:core::If",
"id": 22,
"inputs": {
"condition": {
"accessors": [
"$form1"
],
"annotations": [
{
"count": 6,
"index": 0,
"kind": "idref"
}
],
"code": "$form1.result === \"submit\"",
"source": "$form1.result === \"submit\""
}
},
"position": "-70,460",
"title": "If",
"transitions": [
{
"branch": "true",
"id": 40,
"inputs": {},
"position": "-70,490 -110,490 -110,570",
"sourceConnector": "left",
"target": {
"id": 37
},
"targetConnector": "top"
},
{
"branch": "false",
"id": 140,
"inputs": {},
"position": "50,490 170,490",
"sourceConnector": "right",
"target": {
"id": 139
},
"targetConnector": "left"
}
]
},
{
"action": "gcx:wf:ui::Alert",
"id": 27,
"inputs": {
"text": "\"خطأ\"",
"title": "x"
},
"position": "-540,620",
"title": "Alert",
"transitions": [
{
"id": 144,
"inputs": {},
"position": "-420,650 -420,700",
"sourceConnector": "bottom",
"target": {
"id": 142
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:ui::Alert",
"id": 29,
"inputs": {
"text": "\"true\""
},
"position": "70,700",
"title": "Alert",
"transitions": [
{
"id": 148,
"inputs": {},
"position": "190,730 190,780",
"sourceConnector": "bottom",
"target": {
"id": 33
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:arcgis::CreatePoint",
"id": 33,
"inputs": {
"spatialReference": 28191,
"x": {
"accessors": [
"$form1"
],
"annotations": [
{
"count": 6,
"index": 0,
"kind": "idref"
}
],
"code": "$form1.state.x.value.numeric",
"source": "$form1.state.x.value.numeric"
},
"y": {
"accessors": [
"$form1"
],
"annotations": [
{
"count": 6,
"index": 0,
"kind": "idref"
}
],
"code": "$form1.state.y.value.numeric",
"source": "$form1.state.y.value.numeric"
}
},
"name": "point1",
"position": "70,780",
"title": "Create Point",
"transitions": [
{
"id": 43,
"inputs": {},
"position": "190,850 190,890",
"sourceConnector": "bottom",
"target": {
"id": 41
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:core::If",
"id": 37,
"inputs": {
"condition": {
"accessors": [
"$form1",
"$form1",
"$form1",
"$form1",
"$form1",
"$form1",
"$form1",
"$form1"
],
"annotations": [
{
"count": 6,
"index": 2,
"kind": "idref"
},
{
"count": 6,
"index": 44,
"kind": "idref"
},
{
"count": 6,
"index": 89,
"kind": "idref"
},
{
"count": 6,
"index": 131,
"kind": "idref"
},
{
"count": 6,
"index": 176,
"kind": "idref"
},
{
"count": 6,
"index": 218,
"kind": "idref"
},
{
"count": 6,
"index": 263,
"kind": "idref"
},
{
"count": 6,
"index": 305,
"kind": "idref"
}
],
"code": "(($form1.state.x.value.numeric < 80342) && ($form1.state.x.value.numeric < 176660)) || (($form1.state.x.value.numeric < 73150) && ($form1.state.x.value.numeric < 211309)) || (($form1.state.y.value.numeric < 69347) && ($form1.state.y.value.numeric < 220335)) || (($form1.state.y.value.numeric < 86906) && ($form1.state.y.value.numeric < 137834))",
"source": "(($form1.state.x.value.numeric < 80342) && ($form1.state.x.value.numeric < 176660)) || (($form1.state.x.value.numeric < 73150) && ($form1.state.x.value.numeric < 211309)) || (($form1.state.y.value.numeric < 69347) && ($form1.state.y.value.numeric < 220335)) || (($form1.state.y.value.numeric < 86906) && ($form1.state.y.value.numeric < 137834))"
}
},
"position": "-170,570",
"title": "If",
"transitions": [
{
"branch": "true",
"id": 42,
"inputs": {},
"position": "-170,600 -420,600 -420,620",
"sourceConnector": "left",
"target": {
"id": 27
},
"targetConnector": "top"
},
{
"branch": "false",
"id": 45,
"inputs": {},
"position": "-50,600 190,600 190,700",
"sourceConnector": "right",
"target": {
"id": 29
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:arcgis::AddGraphicsLayerFeatures",
"id": 38,
"inputs": {
"features": {
"accessors": [
"$feature2"
],
"annotations": [
{
"count": 9,
"index": 0,
"kind": "idref"
}
],
"code": "$feature2.feature",
"source": "$feature2.feature"
}
},
"name": "addGraphics1",
"position": "70,1130",
"title": "Add Graphics",
"transitions": [
{
"id": 59,
"inputs": {},
"position": "190,1200 190,1240",
"sourceConnector": "bottom",
"target": {
"id": 48
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:arcgis::SymbolFromJson",
"id": 41,
"inputs": {
"json": "{\n\"type\": \"esriSMS\",\n \"style\": \"esriSMSCircle\",\n \"color\": [0,179,184],\n \"size\": 10,\n \"angle\": 0,\n \"xoffset\": 0,\n \"yoffset\": 0,\n \"outline\": \n {\n \"color\": [0,179,184],\n \"width\": 1\n }\n}"
},
"name": "symbol1",
"position": "70,890",
"title": "Get Symbol From JSON",
"transitions": [
{
"id": 44,
"inputs": {},
"position": "190,960 190,1010",
"sourceConnector": "bottom",
"target": {
"id": 53
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:app::RunCommand",
"id": 46,
"inputs": {
"commandName": "tasks.identify",
"commandParameter": {
"accessors": [
"$point1"
],
"annotations": [
{
"count": 7,
"index": 0,
"kind": "idref"
}
],
"code": "$point1.point",
"source": "$point1.point\n"
}
},
"position": "-260,1500",
"title": "Run Command"
},
{
"action": "gcx:wf:arcgis::GetFeatureSetExtent",
"id": 48,
"inputs": {
"features": {
"accessors": [
"$feature2"
],
"annotations": [
{
"count": 9,
"index": 0,
"kind": "idref"
}
],
"code": "$feature2.feature",
"source": "$feature2.feature"
}
},
"name": "getFeatureSetExtent1",
"position": "70,1240",
"title": "Get Feature Set Extent",
"transitions": [
{
"id": 54,
"inputs": {},
"position": "190,1310 190,1350",
"sourceConnector": "bottom",
"target": {
"id": 52
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:arcgis::SetViewExtent",
"id": 52,
"inputs": {
"geometry": {
"accessors": [
"$getFeatureSetExtent1"
],
"annotations": [
{
"count": 21,
"index": 0,
"kind": "idref"
}
],
"code": "$getFeatureSetExtent1.center",
"source": "$getFeatureSetExtent1.center"
},
"scale": {
"accessors": [],
"code": "1000",
"source": "1000"
}
},
"name": "setMapExtent",
"position": "70,1350",
"title": "Set Map Extent",
"transitions": [
{
"id": 67,
"position": "190,1420 190,1480",
"sourceConnector": "bottom",
"target": {
"id": 65
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:arcgis::CreateGraphic",
"id": 53,
"inputs": {
"attributes": {
"accessors": [
"$form1"
],
"annotations": [
{
"count": 6,
"index": 0,
"kind": "idref"
}
],
"code": "$form1.state.x.value.numeric",
"source": "$form1.state.x.value.numeric"
},
"geometry": {
"accessors": [
"$point1"
],
"annotations": [
{
"count": 7,
"index": 0,
"kind": "idref"
}
],
"code": "$point1.point",
"source": "$point1.point"
},
"symbol": {
"accessors": [
"$symbol1"
],
"annotations": [
{
"count": 8,
"index": 0,
"kind": "idref"
}
],
"code": "$symbol1.symbol",
"source": "$symbol1.symbol"
}
},
"name": "feature2",
"position": "70,1010",
"title": "Create Feature",
"transitions": [
{
"id": 58,
"inputs": {},
"position": "190,1080 190,1130",
"sourceConnector": "bottom",
"target": {
"id": 38
},
"targetConnector": "top"
}
]
},
{
"action": "gcx:wf:arcgis::SelectFeatures",
"id": 65,
"inputs": {
"descriptionFormat": {
"accessors": [
"$form1",
"$form1"
],
"annotations": [
{
"count": 6,
"index": 1,
"kind": "idref"
},
{
"count": 6,
"index": 38,
"kind": "idref"
}
],
"code": "($form1.state.x.value.display + \",\" + $form1.state.y.value.display)",
"source": "($form1.state.x.value.display + \",\" + $form1.state.y.value.display)"
},
"featureSetDisplayName": {
"accessors": [
"$form1",
"$form1"
],
"annotations": [
{
"count": 6,
"index": 1,
"kind": "idref"
},
{
"count": 6,
"index": 38,
"kind": "idref"
}
],
"code": "($form1.state.x.value.display + \",\" + $form1.state.y.value.display)",
"source": "($form1.state.x.value.display + \",\" + $form1.state.y.value.display)"
},
"features": {
"accessors": [
"$feature2"
],
"annotations": [
{
"count": 9,
"index": 0,
"kind": "idref"
}
],
"code": "$feature2.feature",
"source": "$feature2.feature"
},
"labelFormat": {
"accessors": [
"$form1",
"$form1"
],
"annotations": [
{
"count": 6,
"index": 1,
"kind": "idref"
},
{
"count": 6,
"index": 38,
"kind": "idref"
}
],
"code": "($form1.state.x.value.display + \",\" + $form1.state.y.value.display)",
"source": "($form1.state.x.value.display + \",\" + $form1.state.y.value.display)"
}
},
"position": "70,1480",
"title": "Show Results"
},
{
"action": "gcx:wf:core::Exit",
"id": 139,
"inputs": {},
"position": "170,460",
"title": "Exit"
},
{
"action": "gcx:wf:core::Exit",
"id": 142,
"inputs": {},
"position": "-510,700",
"title": "Exit"
}
]
}
],
"deploymentConfig": {
"supportedApps": {
"GWV": true
}
},
"designerVersion": "5.30.1+1",
"forms": [
{
"defaults": {},
"elements": {
"footer": {
"enabled": true,
"items": {
"0": {
"default": true,
"index": 0,
"label": {
"markdown": "Submit"
},
"validates": true,
"value": "submit"
},
"1": {
"index": 1,
"label": {
"markdown": "Cancel"
},
"validates": false,
"value": "cancel"
}
},
"section": "footer",
"type": "ButtonBar"
},
"header": {
"section": "header",
"title": {
"markdown": "Form Title"
},
"type": "Header"
},
"x": {
"enabled": true,
"index": 0,
"rowIndex": 0,
"rowNumber": 0,
"title": {
"markdown": "x"
},
"titleLocation": "beside",
"type": "Number"
},
"y": {
"enabled": true,
"index": 1,
"rowIndex": 0,
"rowNumber": 1,
"title": {
"markdown": "y"
},
"titleLocation": "beside",
"type": "Number"
}
},
"id": 12
}
],
"licenseInfo": {
"licenseUrl": "https://lubnaj-pc.molg.pna.ps/vertigisstudio/workflow/service/auth/license"
},
"start": {
"id": 3
}
}Best,
Lubna
0 -
Hi Lubna,
My apologies - on re-reading the thread I realize it was someone else who was getting the error about the activity not being found, which was the initial question. I'll see if I can get a member of our support team to help you with how to use that command.
1 -
Thank you Ken Lyon, I will be very appreciated for your help
Lubnan
0 -
Ken Lyon I am experiencing the 'activity not implemented' issue that was initially questioned in this post. I tried the URLs you provided and don't receive any network traffic errors but I'm note sure they apply to me as I'm running VertiGIS Studio Workflow 5.32.0 and VertiGIS Studio Web 5.22.1. Is there anything else I can do/try to fix the issue?
Thanks,
-Chad
0 -
Hi Chad Bergeson,
The urls that I mentioned were only relevant to running in Geocortex Viewer for HTML5. If you are running the workflow in VertiGIS Studio Web, the workflow runtime is all bundled into the app so there aren't separate urls that we could test for this.
The Run Command activity has been supported in Web for a long time, so the versions you are quoting should be fine. Was that the one you were trying? Publish Event is not supported in VertiGIS Studio Web. You will not be able to run it there.
0 -
Hi Ken,
Thanks for the quick response and yes I'm working with the 'Run Command' activity. However I was doing my testing in the workflow sandbox and as I was composing this I thought a screenshot might help so I loaded the workflow into a VSW app of my own and voila it works fine! Sorry for the trouble but it looks like it was just an issue inside the sandbox.
-Chad
0 -
Chad Bergeson Thanks for the update. Yes, that explains it. The sandbox itself does not support that activity. However, VertiGIS Studio Workflow 5.33 (coming out on Monday!) includes a major change to the sandbox. It will be running VertiGIS Studio Web in the sandbox, so the activity will work then.
1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
15 kommentarer