cancel
Showing results for 
Search instead for 
Did you mean: 

Retriving bpmnfile data from Activiti Java API

sureshtellakula
Champ in-the-making
Champ in-the-making
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
5 REPLIES 5

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Suresh,

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

sureshtellakula
Champ in-the-making
Champ in-the-making
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

jbarrez
Star Contributor
Star Contributor
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.

sureshtellakula
Champ in-the-making
Champ in-the-making
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

jbarrez
Star Contributor
Star Contributor
Yes - The identity service is pluggable. Check the activiti-ldap module in the source code to see an example of this.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.