1
0
-1

I have a form in which I only do a redirect via Javascript in custom HTML and try to complete the activity. However, it stays stuck in open.not_running.not_started state but does do the redirect. See code below. I want to end the process at this point which I have successfully done in the next tool with JSON Tool but it never leaves the open.not_running.not_started activity to get to the tool.

I have also tried to use Deadline with 5 seconds but apparently that also does not work in the open.not_running.not_started state.

<script>
    window.location.replace("http://ifcsn.org/index.php/ifcsn-login");
    var pagebutton= document.getElementById("assignmentComplete");
    pagebutton.click();
</script>

How can I accomplish what I am trying to do.

Thanks, Bill

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      You can add a Process Tool to abort the pending task via WorkflowManager#activityAbort.

      1. William Vasu

        Thanks so much, Matthew! But I have not yet worked on the deeper developer side of Joget, although I have been a developer in other environments over the years. I see sample source code in the article. What is the simplest way to make similar code available and active in my Joget project? Would this be a plug-in, a Bean Shell or something else. Is there a step by step guide to go in this direction. It looks like understanding this would greatly increase my options to develop in Joget. Thanks!

      2. Matthew King

        I Googled and found this document which might be helpful Developing Plugins

      CommentAdd your comment...