Adding default information for new process files [message #1692461] |
Thu, 16 April 2015 01:27  |
Eclipse User |
|
|
|
I've read and used the fantastic new tutorials to create a new basic runtime with restricted Activity type support. Thanks for the docs!!!
I have two slightly advanced questions around creating a custom Process diagram type:-
1. How can I alter my plugin so that 'MarkLogic Workflow Process Diagram' appears next to 'jBPM process diagram' in the Eclipse new file dialog
2. How can I have this new process diagram automatically add default XSD imports, and provide OOTB pre-built process level Operation and Message definitions?
Got a flight now from SFO to LHR, so no urgent answer needed!
Thanks!
|
|
|
Re: Adding default information for new process files [message #1692587 is a reply to message #1692461] |
Thu, 16 April 2015 16:09   |
Eclipse User |
|
|
|
Hi Adam,
The "jBPM process diagram" in the BPMN2 new file category is actually contributed by a New File Wizard class. Please have a look at the jBPM plugin.xml and the NewJbpmProcessWizard classes.
The jBPM wizard also demonstrates how to inject your own initial BPMN2 code into the new file. There is an enhancement request to expand this capability and make it easier to define initial process templates - if you have the spare cycles and are so inclined, I would appreciate some help in this area 
Cheers,
Bob
|
|
|
Re: Adding default information for new process files [message #1692616 is a reply to message #1692587] |
Thu, 16 April 2015 23:06   |
Eclipse User |
|
|
|
Hi Bob,
I've managed to use the jBPM example to create my two process diagram types. Still debugging at the moment, but it looks good.
Although I'd love to contribute to the core project, I'm a bit strapped for time now. Having said that, if our requirements for initial BPMN2 xml get any more complex we may have to do this work anyway. For example, we also want to include a link to an XSD for the product in the result BPMN2 file. I suspect this'll require some clever classpath jiggery-pokery, and probably more complex XML generation than is possible in the multi line string method employed in the jBPM example.
I'll let you know how it goes.
Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.02700 seconds