How to complete an activity in state open.not_running.not_started
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