Fixing performSteps call
This commit is contained in:
parent
6901b7573d
commit
ab11f34bee
|
@ -281,7 +281,7 @@ public class ProjectsCaller {
|
||||||
public Project performStep(String profileID, String projectID, String stepID, Document options) throws Exception {
|
public Project performStep(String profileID, String projectID, String stepID, Document options) throws Exception {
|
||||||
LOG.info("performStep called for profileID: {}, projectID: {}", profileID, projectID);
|
LOG.info("performStep called for profileID: {}, projectID: {}", profileID, projectID);
|
||||||
Projects<Project> client = (Projects<Project>) getClient(profileID);
|
Projects<Project> client = (Projects<Project>) getClient(profileID);
|
||||||
StepExecutionRequest request = new StepExecutionRequest(projectID, options);
|
StepExecutionRequest request = new StepExecutionRequest(stepID, options);
|
||||||
Project project = client.performStep(projectID, request);
|
Project project = client.performStep(projectID, request);
|
||||||
|
|
||||||
LOG.info("performStep returning project ID: " + project.getId());
|
LOG.info("performStep returning project ID: " + project.getId());
|
||||||
|
@ -308,6 +308,21 @@ public class ProjectsCaller {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update project.
|
||||||
|
*
|
||||||
|
* @param profileID the profile ID
|
||||||
|
* @param projectID the project ID
|
||||||
|
* @param updatedDocument the updated document
|
||||||
|
* @return the project
|
||||||
|
* @throws RemoteException the remote exception
|
||||||
|
*/
|
||||||
|
public Project updateProject(String profileID, String projectID, Document updatedDocument) throws RemoteException {
|
||||||
|
LOG.info("updateProject called for projectID {}", projectID);
|
||||||
|
Projects<Project> client = (Projects<Project>) getClient(profileID);
|
||||||
|
return client.updateDocument(projectID, updatedDocument);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query on mongo.
|
* Query on mongo.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue