import { Component, Vue } from 'vue-property-decorator';
import ProcessesEditorComponent from '@components/processes/editor/index.vue';
import { USER_SCOPES } from '@constants/entities/Scope';
import axios from "axios";

@Component({
  components: {
    ProcessesEditorComponent,
  },
})
export default class Processes extends Vue {
  USER_SCOPES = USER_SCOPES;
  private showDialog = false;
  private logId = '';
  private shape = 'processStatus';
  private logList = '';

  private async getLogs(): Promise<void> {
        let url = '';


        if (this.shape === "fullLog") {
            url = `service/cwf/service/process/log/${this.logId}`
        }
        const { data: response } = await axios.get(url);
        console.log(response);
        this.logList = response;

    }
}
