|
|
|
Re: Subprocess / Call activity process defined in a separate file [message #1383988 is a reply to message #1375721] |
Tue, 27 May 2014 17:11 |
|
Hey Matt,
Unfortunately, the BPMN 2.0 spec doesn't allow you to use proxies for the called element reference - this has to be a resolvable element, specifically a CallableElement.
You could, however, define an extension attribute and property tab using your own plugin. As of version 1.1.0 you can also define these extensions in an XML file in a folder named ".bpmn2config" in the project that contains your *.bpmn2 files. The extensions would look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<runtime id="org.eclipse.bpmn2.modeler.runtime.none">
<modelExtension
id="org.foo.callactivity.extension"
uri="http://org.foo/extensions"
name="My CallActivity Extension"
type="CallActivity">
<property name="proxy" type="EString" label="Called Activity"/>
</modelExtension>
<propertyTab
id="org.foo.callActivity.tab"
replaceTab="org.eclipse.bpmn2.modeler.callActivity.tab"
class="default"
features="proxy isForCompensation loopCharacteristics properties resources"
type="org.eclipse.bpmn2.CallActivity"
label="Proxy">
</propertyTab>
</runtime>
This would add an attribute to the CallActivity, named "proxy" which would be rendered as a simple text field in the Property Sheet. The serialized XML would look like this:
<bpmn2:callActivity id="CallActivity_1" extensions:proxy="CalledActivity" name="Call Activity 1"/>
The editor would automatically generated the NS prefix definition xmlns:extensions="http://org.foo/extensions" which is defined in the <modelExtension> extension point element (above).
Let me know if you have questions.
Cheers,
Bob
|
|
|
Powered by
FUDForum. Page generated in 0.02959 seconds