code: @Service
      public BulkResponse terminate(List<String> workflowIds, String reason) {
       BulkResponse bulkResponse = new BulkResponse();
          for (String workflowId : workflowIds) {
              try {
                  workflowExecutor.terminateWorkflow(workflowId, reason);
                  bulkResponse.appendSuccessResponse(workflowId);
              } catch (Exception e) {
                  LOGGER.error("bulk terminate exception, workflowId {}, message: {} ",workflowId, e.getMessage(), e);
                  bulkResponse.appendFailedResponse(workflowId, e.getMessage());
              }
          }
          return bulkResponse;
      }
docs: Terminate workflows execution.
  @param workflowIds - list of workflow Ids  to perform terminate operation on
  @param reason - description to be specified for the terminated workflow for future references.
  @return bulk response object containing a list of succeeded workflows and a list of failed ones with errors