Hi Simone, I'm not sure to understand what are you trying to do... can you elaborate on that?
Are you looking a way to programatically create your processes? if is that what you are looking for I recommend you to look at the fluent API.
Take a look at the test called: ProcessFactoryTest inside jbpm-flow project:
Hi Mauricio, thank you for the reply.
I'm trying to write the result of simulation directly in the process schema.
In e possible scenario, i want to draw my process with the visual editor, run the simulation, and then, append automatically some intermediate result for example in e text notation linked to interested task.
I'have taken a look at the example. The fluent api seems easy to use but the question is: can I use the fluent api over en existing file?
No no, the fluent api is to create processes using the APIs directly..
How are you planing to simulate your processes?
I think the following question is off topic but:
What kind of API are used in the eclipse diagram editor to modify the bpmn2 diagram?
I am sorry for this basic question but I'm e little bit confused.
About the simulation: Actually I'm trying to understand if jbpm5 can be used for my purpose.
To the best of my knowledge, the procedure of creating and running processes is as follows:
- You create a process diagram using Eclipse-based process editor. The diagram is stored as XML file.
- When you want to run a process, the process diagram (XML file) is translated into a process object model kept in a memory.
- The fluent API is meant for dealing with the process object model. You can manipulate it or even you can create it from the scratch.
- For dealing with the process diagram you can use standard XML API for direct processing of XML document or you can use API of a plugin which was used to create the process editor (GEF probably, but I'm not sure here).