Skip to main content

Certain workflow activities don't work when calling workflow through code.

Comments

3 comments

  • Permanently deleted user

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

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

    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.