Retriving bpmnfile data from Activiti Java API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2013 06:22 AM
Hi,
we are going to develop generic business process system and we need API for what parameters needs to passed while starting busniess process. My idea is retrieveing bpmn file from Activiti API and retrieving start parameters from that file through parser.
Please let me know is there API for retrieving bpmn file data or API for retrieving paramters or form properties of start event.
regards,
suresh
we are going to develop generic business process system and we need API for what parameters needs to passed while starting busniess process. My idea is retrieveing bpmn file from Activiti API and retrieving start parameters from that file through parser.
Please let me know is there API for retrieving bpmn file data or API for retrieving paramters or form properties of start event.
regards,
suresh
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2013 08:59 AM
Hi Suresh,
are you looking for FormService?
Regards
Martin
are you looking for FormService?
public interface FormService {
/** Retrieves all data necessary for rendering a form to start a new process instance. This can be used to perform rendering of the forms outside of the process engine. */
StartFormData getStartFormData(String processDefinitionId);
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2013 01:53 AM
Hi,
I tried with above getStartFormData from FormService but i am getting always no process definition error. I used like below code.
List<ProcessDefinition> list=repositoryService.createProcessDefinitionQuery().latestVersion().list();
for(ProcessDefinition name:list){
System.out.println( "names"+name.getKey());
List<FormProperty> listf= processEngine.getFormService().getStartFormData(name.getKey()).getFormProperties();
for(FormProperty form:listf){
System.out.println( "parameters……………….."+form.getId());
}
}
Please provide me solution for this. Even i tried by passing process definitions id and name and i got same error.
regards,
suresh
I tried with above getStartFormData from FormService but i am getting always no process definition error. I used like below code.
List<ProcessDefinition> list=repositoryService.createProcessDefinitionQuery().latestVersion().list();
for(ProcessDefinition name:list){
System.out.println( "names"+name.getKey());
List<FormProperty> listf= processEngine.getFormService().getStartFormData(name.getKey()).getFormProperties();
for(FormProperty form:listf){
System.out.println( "parameters……………….."+form.getId());
}
}
Please provide me solution for this. Even i tried by passing process definitions id and name and i got same error.
regards,
suresh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2013 04:01 AM
The call should indeed be 'processEngine.getFormService().getStartFormData(processDefinitionId)'
The code you show above, especially if you do a createProcessDefinitionQuery should not give that error.
The code you show above, especially if you do a createProcessDefinitionQuery should not give that error.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2013 05:16 AM
Hi,
In my Project roles are maintained based on category and country but Activiti groups are not maintained based on country and category.
How i can maintain groups in country and categorieywise. Is it possible to customise the groups functionality in activiti. If possible please provide me solution for this. Is possible add configure my own table for groups. If it possible Please provide what are the things we need to change.
regards,
suresh
regards,
suresh
In my Project roles are maintained based on category and country but Activiti groups are not maintained based on country and category.
How i can maintain groups in country and categorieywise. Is it possible to customise the groups functionality in activiti. If possible please provide me solution for this. Is possible add configure my own table for groups. If it possible Please provide what are the things we need to change.
regards,
suresh
regards,
suresh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2014 04:46 AM
Yes - The identity service is pluggable. Check the activiti-ldap module in the source code to see an example of this.
