feat: Add admin resume process endpoint #145
Conversation
public class ProcessInstanceAdminControllerImplIT { | ||
|
||
private static final String DOCUMENTATION_IDENTIFIER = "process-instance"; | ||
private static final String DOCUMENTATION_IDENTIFIER = "process-admin"; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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); | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be implemented
fixes Activiti/Activiti#2151