Fixing performSteps call

This commit is contained in:
Francesco Mangiacrapa 2022-09-14 11:27:27 +02:00
parent 6901b7573d
commit ab11f34bee
1 changed files with 16 additions and 1 deletions

View File

@ -281,7 +281,7 @@ public class ProjectsCaller {
public Project performStep(String profileID, String projectID, String stepID, Document options) throws Exception {
LOG.info("performStep called for profileID: {}, projectID: {}", profileID, projectID);
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);
LOG.info("performStep returning project ID: " + project.getId());
@ -308,6 +308,21 @@ public class ProjectsCaller {
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.
*