createWorkPlanFromTemplate
Purpose
This operation creates a work plan for a specified project from a given template.
Input
The following inputs are required:
-
Work plan template name.
-
One of the following:
-
Project ID
-
Project name
-
Return
If the operation is successful, no results are returned to the client.
Java Examples
String templateName = "Template 1"; String projectName = "Project template 1";
CreateWorkPlanFromTemplateDocument crtblkWpDoc = CreateWorkPlanFromTemplateDocument.Factory.newInstance(); CreateWorkPlanFromTemplate cbwp = crtblkWpDoc.addNewCreateWorkPlanFromTemplate();
WorkPlanInputType wpit = cbwp.addNewProjectInput(); // Set the value for WorkPlanInputType element's projectName wpit.setProjectName(projectName);
// Set the value for CreateWorkPlanFromTemplate element's templateName cbwp.setTemplateName(templateName); // Invoke service method stub.createWorkPlanFromTemplate(crtblkWpDoc);