You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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/>',

Unknown macro: { text}

)
                        .appendTo($('#products'));
                    });
                });
            });
</script>

<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&nbsp; directly on the address-bar of my browser then all the processes will be displayed. so what might be going wrong ?

BR 

  • No labels