Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

feat: Add admin resume process endpoint #145

Merged
merged 7 commits into from Nov 14, 2018

Conversation

almerico
Copy link
Contributor

@almerico almerico commented Nov 12, 2018

@almerico almerico self-assigned this Nov 12, 2018
@CLAassistant
Copy link

CLAassistant commented Nov 12, 2018

CLA assistant check
All committers have signed the CLA.

@igdianov igdianov changed the title adde Resume endpoint on task admin controller feat: Add resume endpoint on task admin controller Nov 12, 2018
@igdianov igdianov changed the title feat: Add resume endpoint on task admin controller feat: Add admin resume process endpoint Nov 12, 2018
public class ProcessInstanceAdminControllerImplIT {

private static final String DOCUMENTATION_IDENTIFIER = "process-instance";
private static final String DOCUMENTATION_IDENTIFIER = "process-admin";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@almerico can we call this process-instance-admin?

@@ -341,7 +341,7 @@ public void suspendShouldPutProcessInstanceInSuspendedState() {
assertThat(responseEntity.getStatusCode()).isEqualTo(HttpStatus.OK);
return responseEntity;
}

//almer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@almerico can we remove this one?

//testadmin should see process instances at admin endpoint
keycloakSecurityContextClientRequestInterceptor.setKeycloakTestUser("testadmin");
ResponseEntity<Void> responseEntity = adminExecuteRequestSuspendProcess(startProcessEntity);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CTI777 it wouldn't hurt to check that the process instance is SUSPENDED at this point.. just to make sure that the next check after resume (RUNNING) make sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be implemented

@salaboy salaboy merged commit f6266ec into develop Nov 14, 2018
@salaboy salaboy deleted the almerico-2151-admin-resume-process branch November 14, 2018 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add admin resume process endpoint
5 participants