-
1. Re: Problems in using JBPM5
salaboy21 Jan 6, 2012 10:27 AM (in response to jbpm2011)Why are you not using the XML representation to load your business processes?
The fulent API that you are using is old and do not cover all the BPMN 2 features. I'm working in a new version right now of that fluent API more BPMN2 oriented, but I strongly recommend you to use the XML BPMN2 approach to represent your business processes.
Cheers
-
2. Re: Problems in using JBPM5
jbpm2011 Jan 9, 2012 4:37 AM (in response to salaboy21)Hi why you said that this API is old? and what is the new version that you are working on it? and what is the approche XML BNPMN2 that you are talking about can you explain more !!!
Why are you not using the XML representation to load your business processes?
can you explain
Thank you
-
3. Re: Problems in using JBPM5
jbpm2011 Jan 9, 2012 4:39 AM (in response to jbpm2011)And for my other questions do you have answers?
Thank you
-
4. Re: Problems in using JBPM5
eaa Jan 9, 2012 6:46 AM (in response to jbpm2011)he fluent API is a way to create process definitions using code. This is just what you are doing. What Salaboy says is that this API doesn't cover all the fuctionalitites in bpmn2.
The usual way to work with jBPM5 is to define your processes in .xml files. The syntax of this file is BPMN2. Please take a look at jBPM5 documentation for further details.
-
5. Re: Problems in using JBPM5
jbpm2011 Jan 9, 2012 9:13 AM (in response to eaa)Hi thank you for answering me
Im using the code to represente my process and not the xml presentation because i need it later. In fact im doing my end of study project and i need to do it like this.
For your remarqur i read that this API does not cover all the components of BPMN2 but what do you suggest as other alternative API.
Can you suggest me a documentation to read especially to get the answers i need
-
6. Re: Problems in using JBPM5
eaa Jan 9, 2012 9:34 AM (in response to jbpm2011)Unfortunately, there is no other API. Could you explain us why do you need to do it this way? Maybe there are other ways to do what you need using the xml representation of your process.
Best Regards,
-
7. Re: Problems in using JBPM5
jbpm2011 Jan 9, 2012 9:44 AM (in response to eaa)ok i will explain to you because i need to read from another file wich is the .ego (xml file) of the company im working with. And try to fill the process(using jbpm5.2) to get a bpmn2.0 file with the same specification of the .ego of the company (conversion between them) that' why i need it in this way. and tha's way im asking about the content of the task the onExitAction and in mapping and way there are strings because i will use it after.
if you dont understand me very well i will try to explain more
-
8. Re: Problems in using JBPM5
salaboy21 Jan 9, 2012 9:50 AM (in response to jbpm2011)Once again, and based in your brief explanation I think that the best way to work is to create a parser for ego file and export a BPMN2 xml file. And then use that as starting point. If you go in that direction, you can contribute back to the community the ego to BPMN2 xml transformer.
Cheers
-
9. Re: Problems in using JBPM5
jbpm2011 Jan 9, 2012 11:01 AM (in response to salaboy21)Sir i will explain to you better my end of study project consist on developping an application that take as parames a .ego and transform it into bpmn2.0 files and vice versa so i used the API jbpm to help me to fill the process using technics and methode of jbpm5 by reading the .ego files to finally get the bpmn2 files do you understand me?
create a parser for ego file and export a BPMN2 xml file.
and can you explain more your idea please
Thank you
-
10. Re: Problems in using JBPM5
eaa Jan 9, 2012 11:25 AM (in response to jbpm2011)Maybe you can take a look at https://github.com/droolsjbpm/jbpm/blob/master/jbpm-flow-builder/src/main/java/org/jbpm/compiler/ProcessBuilderImpl.java to see how jBPM5 itself converts an xml into a binary representation of a process.
-
11. Re: Problems in using JBPM5
salaboy21 Jan 9, 2012 2:57 PM (in response to eaa)I don't suggest you to go to the binary format or the API's I suggest you to create an xml parser for the ego format that I think that you already have and then just using that parser write BPMN2 xml format. Then when you get the BPMN2 xml file you can just load it inside the jBPM5 runtime. In that way you keep your parser agnostic of the execution environment and not just you can use that parser.
Cheers
-
12. Re: Problems in using JBPM5
jbpm2011 Jan 10, 2012 3:52 AM (in response to salaboy21)hi ,
im not going to use the JBPM runtime
best ragards
-
13. Re: Problems in using JBPM5
eaa Jan 10, 2012 6:47 AM (in response to jbpm2011)If you are not going to use jBPM5 runtime maybe you can take a look at this project: https://github.com/eclipse/bpmn2
It contains all the model classes neded for create bpmn2 processes. These are the classes used by jbpm-web-designer to transform from json to bpmn2 and viceversa (similar to what you are trying to do). The main classes in chage of that are:
https://github.com/tsurdilo/process-designer/blob/master/src/main/java/com/intalio/bpmn2/impl/Bpmn2JsonMarshaller.java and https://github.com/tsurdilo/process-designer/blob/master/src/main/java/com/intalio/bpmn2/impl/Bpmn2JsonUnmarshaller.java
-
14. Re: Problems in using JBPM5
jbpm2011 Jan 10, 2012 9:28 AM (in response to eaa)thank you sir i will see it but this is intalio is that a problem?
do you mind if you can tell me what is the best JBPM5 or Intalio