All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.telekom.workflow.web.IndexController Maven / Gradle / Ivy

Go to download

Telekom-workflow-engine web console, REST services and JMX interface for monitoring and interacting with the running engine.

The newest version!
package ee.telekom.workflow.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import ee.telekom.workflow.core.common.WorkflowEngineConfiguration;

@Controller
public class IndexController{

    @Autowired
    private WorkflowEngineConfiguration configuration;

    @RequestMapping("/")
    public String serveIndex1(){
        return "redirect:" + configuration.getConsoleMappingPrefix() + "/console/status";
    }

    @RequestMapping("/console")
    public String serveIndex2(){
        return "redirect:" + configuration.getConsoleMappingPrefix() + "/console/status";
    }

    @RequestMapping("/console/")
    public String serveIndex3(){
        return "redirect:" + configuration.getConsoleMappingPrefix() + "/console/status";
    }

    @RequestMapping(value = "/login")
    public String serveLoginPage(){
        return "login";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy