-
1. Re: ProcessDefinition to XML
kukeltje Sep 9, 2008 4:37 PM (in response to lseymore)in 3.x this is not supported anymore. Might come back in 4.0 though I'm not sure
-
2. Re: ProcessDefinition to XML
lseymore Sep 10, 2008 4:31 AM (in response to lseymore)I just have a couple of comments for anyone who might be looking at the same issue.
This is in regards to version 3.2.3.
I first tried the org.jbpm.jpdl.xml.JpdlXmlWriter class:
The org.jbpm.jpdl.xml.JpdlXmlWriter is a deprecated class and would have been useful if it wrote the complete XML.
Next I tried com.thoughtworks.xstream.XStream to create an XML representation for me, but it seems very tedious to generate a human friendly XML markup - I might end up (de-)serializing ProcessDefinition objects using this class anyway.
Finally I tried manually building up XML from the ProcessDefinition object by, but this is a very painful, horrible, and useless approach:
- I got stuck when trying to generate a Node's leavingTransitions, calling any method on the resulting list caused a NullPointerException - so I gave up.
My last resort is to try and find the where in the designer (eclipse plugin) source the XML is generated. Unfortunately I have not been successful in my search and might just give up on the whole idea soon.
If you have any comments, suggestions or alternative solutions please let me know.
Thanks,
- L -
3. Re: ProcessDefinition to XML
kukeltje Sep 10, 2008 7:58 AM (in response to lseymore)Personally I'd give up. Some people said they generated the java processdefinition using java and want the xml with that. Then why not generate the processdefinition in xml using java and use that (xml2processdefinition IS supported ;-)
-
4. Re: ProcessDefinition to XML
lseymore Sep 10, 2008 9:12 AM (in response to lseymore)Personally I'd give up. Some people said they generated the java processdefinition using java and want the xml with that. Then why not generate the processdefinition in xml using java and use that (xml2processdefinition IS supported ;-)
Surrender is not an option ... -
5. Re: ProcessDefinition to XML
kukeltje Sep 10, 2008 1:47 PM (in response to lseymore)Ah... you are British I presume...
We shall go on till the end.
We shall fight in france,
we shall fight in the seas and oceans,
we shall fight with growing confidence
and growing strength in the air,
we shall defend our island,
whatever the cause may be.
We shall fight on the beaches,
we shall fight on the landing grounds,
we shall fight on the fields and in the streets,
we shall fight in the hills.
We shall never surrender!
Hear Churchil -