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

Talend Version          5.6.x and above

Summary

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 #:
5 of 5
Last update:
‎11-21-2017 02:14 PM
Updated by:
 
Labels (1)
Contributors