Certain workflow activities don't work when calling workflow through code.
I have a workflow with the activity that uses query task activity, GetFeatureSetExtent activity, but when I add
"select features activity" or "Display form activity" the workflow doesn't work when calling it from code. But if I call the exact same workflow
using the I want to menu it works fine am I missing a reference?
It seems like any activity affecting appearance doesn't work? Although the alert activity works
Code calling workflow
var dispatcher = new geocortex.workflow.SimpleActivityDispatcher(null, someHandler, null, null, someHandler);
geocortex.workflow.WorkflowControllerProxy.startWorkflow(workflow, dispatcher, someinputarguments);
-
This is still an issue any ideas?
Using the I want to menu to call a workflow both the "Alert activity" and "Display form activity" work
Calling the workflow using geocortex.workflow.SimpleActivityDispatcher "Alert activity" works but "Display form activity" will not work?
Not sure what the difference is between Alert activity and Display form activity that makes one work and the other not to?
Thanks
0 -
Solved figured I would put the resolution for any one else looking at this
old I was using a sample and creating a new dispatcher when I needed one tied to my site
var dispatcher = new geocortex.workflow.SimpleActivityDispatcher(null, someHandler, null, null, someHandler);
geocortex.workflow.WorkflowControllerProxy.startWorkflow(workflow, dispatcher, someinputarguments);It should be
New
var dispatcher= this.app.getWorkflowActivityDispatcher();
geocortex.workflow.WorkflowControllerProxy.startWorkflow(workflow, dispatcher, someinputarguments);
0 -
Hi Jason, could you explain your answer a bit more here? Especially how you run the "getWorkflowActivityDispatcher". I'm having some funky errors going on with a Buffertask from code.
Cheers!
0
Please sign in to leave a comment.
Comments
3 comments