ExternalActivityExtension
When running a certain Geoprocessor activity, I get this errormessage: "This activity requires an ExternalActivityExtension" . Does anyone have a clue what this is about?
-
Hi Berend,
You will see this error when using the "Invoke Workflow" and "Invoke Workflow Async" activities if you attempt to use an external activity (anything from the Common Client and Common Viewer categories) in the child workflow that you are attempting to invoke.
--Ryan
0 -
Hi Ryan,
Well, I am using InvokeWorkflowAsync, but the workflow being called only contains Log, GenerateToken and Geoprocessor activities. I wrapped the Geoprocessor in a try..catch, and it appears that the error is actually triggered by that activity.
I can use a Geoprocessor in an async workflow, right?
0 -
Hi Berend,
Short answer: Try checking the "Wait On Server" checkbox of the Geoprocessor activity.
Long answer: Geoprocessor is a hybrid activity. In some cases it can act as an external activity. ArcGIS Server GP Tasks themselves can be synchronous or asynchronous. If the GP task is synchronous the activity will just run as a normal server activity. If the GP task is async then the default behavior of the activity is to create a child External Delay activity (which you can't see) so that the workflow will return to the client application for a moment (the duration is controlled by the Update Delay argument) and then come back to the server to see if the GP task is complete and capture the result. It will do this in a loop so that we are effectively using the client application to establish a delay for polling the GP task. Since External Delay is an external activity this is not supported in the the InvokeWorkflow and InvokeWorkflowAsync activities. The good news is that you can opt out of this client polling behavior by checking the "Wait On Server" checkbox of the Geoprocessor activity. In this case the activity manages its own polling delay and it behaves like a regular server activity and should work fine for you.
--Ryan
0 -
Thanks Ryan, that fixed it.
Berend
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer