Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
I want to retrieve the list of processes from my Joget workflow, so i wrote the following javaScript to retrieve the ID & packageName and display them in a list:-
<script type="text/javascript"> $(document).ready(function () { // Send an AJAX request $.getJSON("http://localhost:8080/jw/web/json/workflow/process/list?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=admin", function (data) { // On success, 'data' contains a list of products. $.each(data, function (key, val) { // Format the text to display. var str = val.id + ': $' + val.packageName; // Add a list item for the product. $('<li/>', { text: str }) .appendTo($('#products')); }); }); }); </script> <h1>The Processes are</h1> <ul id="products"/
<h1>The Processes are </h1>
<ul id="products"/>
But when i run the above web page no processes will be displayed under the <h1>The Processes are </h1> , while if i type the following http://localhost:8080/jw/web/json/workflow/process/list?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=admin directly on the address-bar of my browser then all the processes will be displayed. so what might be going wrong ?
BR