I was under the impression that if you were to complete an activity via the API and pass in variables, they would fill out the form mapped to that activity but in my testing it does not seem to be the case. Further inspection of the documentation says that the variables are workflow variables, not form variables. Is this a typo or is it not possible to submit a form via JSON?

  • No labels

2 Comments

  1. Hi Chris,

    Workflow Variables are different from form data, where the former is used primarily to represent the state of a process e.g. routing, etc. You can't submit form data via the JSON API, but you can map your form elements to workflow variables in the Form Builder. For example, you could map a Text Field to a workflow variable "status", which would display the value of the workflow variable in that form field.

    Best Regards
    Julian

  2. Hi Chris,

    You are right. The API is used solely for completing the process assignment activity. You may pass in variables to be set to workflow variables which will be used typically for routing purposes.

    The use of APIs provided by Joget is mainly for those looking for only workflow integration and not to deal with form data as the front-end would handle all the user interactions (ie form submission, validation, storing)

    There's no Form Data related API as it requires extensive complexity support/development for various use cases. (eg from deciding what is mandatory, format required for each field, how to store, where to store, what can be stored etc.)

    Hope this helps to clear things up.

    Cheers.