I am using the JSON tool plugin, but i need to send the value of a workflow variable with the JSON URL call, so for testing purposes i tired to call one of the joget JSON web service using the folloiwng URL :-

web/json/workflow/process/view/#variable.imgurl#:31:process1?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=customerservice

But unfortunetly the call fail , so how can i send the values of a workflow variable with the JSON URL call?

BR

  • No labels

2 Comments

  1. Hi BR,

    Quick one.

    Has "imgurl" been declared as a Workflow Variable in the process's properties?

    Does the expected resultant string of "#variable.imgurl#:31:process1" would yield a valid process definition ID as documented in this page (http://dev.joget.org/community/display/KB/JSON+API#JSONAPI-web%2Fjson%2Fworkflow%2Fprocess%2Fview%2F%28%3AprocessDefId%29)?

    You said that the call failed. What kind of error or message are you getting?

    Cheers

    1. thanks for your kind reply. kindly find my answers to your questions:-

      Has "imgurl" been declared as a Workflow Variable in the process's properties?

      Yes the imagurl has been declared as a workflow variable in the workflow designer, and it is also available in the web console under the "Design Apps---> Variable list".

      Does the expected resultant string of "#variable.imgurl#:31:process1" would yield a valid process definition ID as documented in this page (http://dev.joget.org/community/display/KB/JSON+API#JSONAPI-web%2Fjson%2Fworkflow%2Fprocess%2Fview%2F%28%3AprocessDefId%29)?

      Yes since if i manually replace the imagurl variable with the value it is holding then the call to the web service will return the right JSON

      You said that the call failed. What kind of error or message are you getting?

      No errors but the JSON tool plugin will not return and result and the form fields which should be populate with the returned JSON data will be empty.

      Thanks in advance for your help.

      Best Regards