Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<html> <head> <script type="text/javascript" src="http://localhost:8080/jw/js/jquery/jquery-3.5.1.min.js"></script> <script type="text/javascript" src="http://localhost:8080/jw/js/json/util.js" ></script> <script type="text/javascript" > $(document).ready(function(){ var loginCallback = { success : function(response){ if(response.username != "roleAnonymous"){ alert("login successfully"); }else{ alert("login fail"); } } }; //login AssignmentManager.login('http://localhost:8080/jw', 'admin', 'admin', loginCallback); $("input[name='startProcessButton']").click( function(){ //retrieving the values var processDefinition = $("input[name='processDefinition']").val() var requester = $("input[name='requester']").val() //call back for "start a process" var callback = { success : function(data){ //print returned result $("#responseDiv").html(data); } } //start a process ConnectionManager.ajaxJsonppost('http://localhost:8080/jw/web/json/workflow/process/start/' + processDefinition, callback, "var_requester=" + requester); }); }); </script> </head> <body> <fieldset id="startProcess"> <legend>Start Process:</legend> <label for="name">Process Definition:</label> <input type="textfield" name="processDefinition" value="simpleApproval:1:sample"/> <br> <label for="name">Requester Username:</label> <input type="textfield" name="requester"/> <input name="startProcessButton" type="submit" value="Trigger"/> <div id="responseDiv"/> </fieldset> </body> </html> |
...