@@ -5135,6 +5135,79 @@ public void resumeWorkflow(String workflowId) {
51355135 "resumeWorkflow" );
51365136 }
51375137
5138+ /**
5139+ * Lists step-gate checkpoints for a workflow. Available in all tiers.
5140+ *
5141+ * @param workflowId workflow ID
5142+ * @return checkpoint list
5143+ */
5144+ public com .getaxonflow .sdk .types .workflow .WorkflowTypes .CheckpointListResponse getCheckpoints (
5145+ String workflowId ) {
5146+ Objects .requireNonNull (workflowId , "workflowId cannot be null" );
5147+ return retryExecutor .execute (
5148+ () -> {
5149+ Request httpRequest =
5150+ buildOrchestratorRequest ("GET" , "/api/v1/workflows/" + workflowId + "/checkpoints" , null );
5151+ try (Response response = httpClient .newCall (httpRequest ).execute ()) {
5152+ return parseResponse (
5153+ response ,
5154+ new TypeReference <
5155+ com .getaxonflow .sdk .types .workflow .WorkflowTypes .CheckpointListResponse >() {});
5156+ }
5157+ },
5158+ "getCheckpoints" );
5159+ }
5160+
5161+ /**
5162+ * Resumes a workflow from its last resumable checkpoint. Evaluation+ tier.
5163+ *
5164+ * @param workflowId workflow ID
5165+ * @return resume result with fresh decision
5166+ */
5167+ public com .getaxonflow .sdk .types .workflow .WorkflowTypes .ResumeFromCheckpointResponse resumeFromLastCheckpoint (
5168+ String workflowId ) {
5169+ Objects .requireNonNull (workflowId , "workflowId cannot be null" );
5170+ return retryExecutor .execute (
5171+ () -> {
5172+ Request httpRequest =
5173+ buildOrchestratorRequest ("POST" , "/api/v1/workflows/" + workflowId + "/checkpoints/resume" , "{}" );
5174+ try (Response response = httpClient .newCall (httpRequest ).execute ()) {
5175+ return parseResponse (
5176+ response ,
5177+ new TypeReference <
5178+ com .getaxonflow .sdk .types .workflow .WorkflowTypes .ResumeFromCheckpointResponse >() {});
5179+ }
5180+ },
5181+ "resumeFromLastCheckpoint" );
5182+ }
5183+
5184+ /**
5185+ * Resumes a workflow from a specific checkpoint. Enterprise only.
5186+ *
5187+ * @param workflowId workflow ID
5188+ * @param checkpointId checkpoint database ID
5189+ * @return resume result with fresh decision
5190+ */
5191+ public com .getaxonflow .sdk .types .workflow .WorkflowTypes .ResumeFromCheckpointResponse resumeFromCheckpoint (
5192+ String workflowId , long checkpointId ) {
5193+ Objects .requireNonNull (workflowId , "workflowId cannot be null" );
5194+ return retryExecutor .execute (
5195+ () -> {
5196+ Request httpRequest =
5197+ buildOrchestratorRequest (
5198+ "POST" ,
5199+ "/api/v1/workflows/" + workflowId + "/checkpoints/" + checkpointId + "/resume" ,
5200+ "{}" );
5201+ try (Response response = httpClient .newCall (httpRequest ).execute ()) {
5202+ return parseResponse (
5203+ response ,
5204+ new TypeReference <
5205+ com .getaxonflow .sdk .types .workflow .WorkflowTypes .ResumeFromCheckpointResponse >() {});
5206+ }
5207+ },
5208+ "resumeFromCheckpoint" );
5209+ }
5210+
51385211 /**
51395212 * Lists workflows with optional filters.
51405213 *
0 commit comments