Http task request body[process variables]

Hi all,

Is there a way to get all process variables and pass it as a JSON on http task request body.

TIA :slight_smile:

Using execution.getVariables() returns all process variables. You could use that in Script task ahead of the HTTP task to build out your JSON object.

Will

Thank to this william

But can I save that as transient variable only, so that the variable will not repeat. Is there away to do that in the script task.

execution.setTransientVariable will create a transient variable, so that it doesnโ€™t get committed to the database.