I would like to parse or Convert bpmn.xml file into Domain Object.Could you please guide me to achieve this?

cancel
Showing results for 
Search instead for 
Did you mean: 
yvnkat3
Member II

I would like to parse or Convert bpmn.xml file into Domain Object.Could you please guide me to achieve this?

Hi,

I would like to parse or convert bpmn.xml file into Java Object. Hence In workflows when we are passing from one task to another task, will carry the Java object state and use in custom java classes.

Is there any API to convert bpmn.xml file into Java Object?

Regards

Venkat.

1 Reply
ryandawson
Alfresco Employee

Re: I would like to parse or Convert bpmn.xml file into Domain Object.Could you please guide me to achieve this?

Perhaps this test in the engine would be of help to you Activiti/RepositoryServiceTest.java at develop · Activiti/Activiti · GitHub  ? I am guessing that what you mean is that you want to inspect the process definition from within your process instance?

Perhaps one of Activiti/DeploymentQueryTest.java at develop · Activiti/Activiti · GitHub  or Activiti/ProcessDefinitionQueryTest.java at develop · Activiti/Activiti · GitHub  could also be helpful. I'm not sure what you mean about carrying the java object state. Perhaps you mean that you want trigger execution of the steps of the process? If so then you need to use the runtimeService and the taskService too. It might help if you could post your process definition if you have it. Perhaps one of the examples featured in Articles and Blogs on Activiti · Activiti/Activiti Wiki · GitHub  could be helpful? Are you using the spring boot starter like http://www.baeldung.com/spring-activiti  or just java like http://www.baeldung.com/java-activiti  or the v6 kickstart app http://www.baeldung.com/activiti-kickstart-and-rest-apps  ?