Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to create execution plan using Talend Metaservlet API.
I have cheched the below link for this.
https://help.talend.com/r/en-US/7.3/administration-center-metaservlet-api/metaservlet-commands
But it seems there is no API endpoint to create an execution plan.
Need help on this.
Hi,
Thank you for writing.
This can be achieved with "importExecutionPlan" command of MetaServletCaller.
Here is the syntax for creating a very basic Exec Plan with just one task "Task1" (which should already exist in TAC) :
MetaServletCaller --tac-url=http://localhost:8080/org.talend.administrator --json-params={"actionName":"importExecutionPlan","authUser":"test@company.com","authPass":"test","result":{"ExecutionPlan":[{"label":"PlanB","desc":"This is my Plan","execPlanTimeOut":60,"planParts":{"planId":"PlanB","planPartTaskId":"Task1"}}]}}
As you can see from above, most the Exec Plan config is in "result" attribute.
To get the full syntax of "result" attribute if you want to create a more complex plan, then what you can do is start from an existing plan, and call MetaServletCaller's "listExecutionPlans". This will return "result" which you can edit/adjust to use when calling "importExecutionPlan".
Thanks,
Hi,
Thank you for writing.
This can be achieved with "importExecutionPlan" command of MetaServletCaller.
Here is the syntax for creating a very basic Exec Plan with just one task "Task1" (which should already exist in TAC) :
MetaServletCaller --tac-url=http://localhost:8080/org.talend.administrator --json-params={"actionName":"importExecutionPlan","authUser":"test@company.com","authPass":"test","result":{"ExecutionPlan":[{"label":"PlanB","desc":"This is my Plan","execPlanTimeOut":60,"planParts":{"planId":"PlanB","planPartTaskId":"Task1"}}]}}
As you can see from above, most the Exec Plan config is in "result" attribute.
To get the full syntax of "result" attribute if you want to create a more complex plan, then what you can do is start from an existing plan, and call MetaServletCaller's "listExecutionPlans". This will return "result" which you can edit/adjust to use when calling "importExecutionPlan".
Thanks,