		
package com.sa.ibiz.demo.workflow.ui;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sa.ibiz.demo.workflow.WFServiceImpl;

@RestController
@RequestMapping("/app")
public class WorkflowResource{
	
	@Autowired
	WFServiceImpl wfServiceImpl ;

	@GetMapping(value = "/rest/import-process-model-to-sys/{modelid}")
	public void importWorkflowModel(@PathVariable String modelid) {
		
         wfServiceImpl.deployByModelid(modelid) ;
         
	}


}
