02-27-2018 04:43 AM
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.
02-27-2018 12:23 PM
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 ?
Explore our Alfresco products with the links below. Use labels to filter content by product module.