Create lifecycle project through RTC java API 7.0.1
Hello,
I am trying to create a lifecycle project using its template. Template is available but it does not have id parameter like for others(qm, tm, rm etc)
But to create a project process id of template is needed.
My code snippet is as belows:
IProcessItemService service = (IProcessItemService) teamRepository
.getClientLibrary(IProcessItemService.class);
IProcessDefinition[] definitions;
// Find the process definition
IProcessDefinition processDefinition = service
.findProcessDefinition(processID, null, monitor);
But as on the server process id is not available only for lifecycle project I cannot create lifecycle project.
I am using, Jazz server 7.0.1, RTC cient plain java apis 7.0.1, IntelliJ Idea 2018 Maven project.
Please help me regarding this and let me know if more information is required.
One answer
Please note that the lifecycle project is not an RTC feature. It is, a feature of the JTS. The RTC API allows to create RTC Project areas, and, as I believe also project areas for DNG and Test management. The RTC Java API for this is demonstrated in the snippets that come with the Plain Java Client Libraries.
The lifecycle project only adds the glue between these project areas. I am not sure if there is a Java API for it. In any case, you would probably write code the add the various projects and create the provider/consumer relationships. This is after all what the Lifecycle Project actually controls.