What is the correct syntax of the MetaServletCaller runTask and updateTask commands to pass context parameters/values?

Talend Version          5.6.x and above


Setting context variables in updateTask and runTask commands of MetaServletCaller.
Additional Versions  
Key words context MetaServletCaller runTask updateTask
Product Data Integration
Component TAC
Article Type  
Problem Description MetaServletCaller API: How to update or run a task with new context variable parameters
Problem root cause  
Solution or Workaround

Add a context element to the json string with a comma-delimited set of contexts/values. For example:

MetaServletCaller.bat --tac-url=http://localhost:8080/org.talend.administrator --json-params {"actionName":"runTask","taskId":"1","mode":"synchronous","authPass":"test","authUser":"test@company.com","context":{"name1":"TOTO","name2":"TATA"}}
JIRA ticket number  
Version history
Revision #:
7 of 7
Last update:
‎02-24-2019 11:15 PM
Updated by: