Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Vishu1
Contributor III
Contributor III

Create execution plan using Metaservlet API

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.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

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,

 

View solution in original post

1 Reply
Anonymous
Not applicable

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,