Activiti Engine Integration with Spring MVC

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2014 10:14 PM
Hi,
I want to design a workflow base web application and the UI will be designed using spring mvc frame work and activiti engine as a backed.
I have few doubts.
1. Will the activiti process engine start from the spring context file or we should start it using a controller with load on start up process.
2. how will be the process get deployed ? Do we need to invoke the rest api for deployment of the bar or process xml files. If yes can you please share the rest api method which will be used.
3. If a custom form is used for a user task how will the form fields be mapped to process variables and how will it interact with the activiti tables at run time.
Please suggest.
Thanks in advance.
I want to design a workflow base web application and the UI will be designed using spring mvc frame work and activiti engine as a backed.
I have few doubts.
1. Will the activiti process engine start from the spring context file or we should start it using a controller with load on start up process.
2. how will be the process get deployed ? Do we need to invoke the rest api for deployment of the bar or process xml files. If yes can you please share the rest api method which will be used.
3. If a custom form is used for a user task how will the form fields be mapped to process variables and how will it interact with the activiti tables at run time.
Please suggest.
Thanks in advance.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2014 01:46 AM
2. how will be the process get deployed ? Do we need to invoke the rest api for deployment of the bar or process xml files. If yes can you please share the rest api method which will be used.http://www.activiti.org/userguide/#N12F2D
in spring config you can use auto deployment too.
3. If a custom form is used for a user task how will the form fields be mapped to process variables and how will it interact with the activiti tables at run time.
http://www.activiti.org/userguide/#forms
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2014 01:53 AM
1. Will the activiti process engine start from the spring context file or we should start it using a controller with load on start up process.
You can have a look on engine initialization from ProcessEngines class.
protected static void initProcessEngineFromSpringResource(URL resource) {
try {
Class< ? > springConfigurationHelperClass = ReflectUtil.loadClass("org.activiti.spring.SpringConfigurationHelper");
Method method = springConfigurationHelperClass.getMethod("buildProcessEngine", new Class<?>[]{URL.class});
ProcessEngine processEngine = (ProcessEngine) method.invoke(null, new Object[]{resource});
String processEngineName = processEngine.getName();
ProcessEngineInfo processEngineInfo = new ProcessEngineInfoImpl(processEngineName, resource.toString(), null);
processEngineInfosByName.put(processEngineName, processEngineInfo);
processEngineInfosByResourceUrl.put(resource.toString(), processEngineInfo);
} catch (Exception e) {
throw new ActivitiException("couldn't initialize process engine from spring configuration resource "+resource.toString()+": "+e.getMessage(), e);
}
}

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2014 02:44 AM
Hi Martin,
Thanks for the help.
Thanks for the help.
