Add a new workflow pattern [message #1724833] |
Fri, 26 February 2016 12:30  |
Eclipse User |
|
|
|
Hi,
I would like to extend bpmn 2.0 modeler by adding a new workflow pattern with the extended elements (Custom task: lane,pool,task...and the relationship between those elements ).
Can you help me?
|
|
|
|
|
|
|
|
|
Re: Add a new workflow pattern [message #1725468 is a reply to message #1725264] |
Thu, 03 March 2016 16:50   |
Eclipse User |
|
|
|
Hi Jamila,
First, I'm sorry to tell you that this kind of nesting is broken with the current version of the editor, so please don't spend any more time trying to get it to work I am currently testing a fix for this problem and should have a new build by the end of this week, along with a working example.
Second, as you probably already know, in order for the editor to be able to distinguish a Custom Task from a plain BPMN2 Task, there MUST be some feature (either an extension attribute or element) in the task which your plugin defines. This feature must be set in the <tool> definition. For example the jBPM extension plugin defines a group of Custom Tasks that are identified by the extension attribute "taskName"; so the <tool> definition looks like this:
<tool name="Email Task" description="This is a Custom Task that can be configured to send emails">
<object type="Task[$taskName='Email']"/>
</tool>
I don't want to go into too much technical detail, but when the editor constructs the task from this tool, it first asks all of the extension plugins if they recognize it as a Custom Task; if so, construction and initialization is routed through the extension plugin's Model Extension mechanism.
On another topic: I'm curious about how and why you are using the BPMN2 Modeler, and why it was chosen over some other solution? I'm trying to build a case to present to my product manager, arguing against discontinuing development of this project, and any support from the community will help my case.
Thanks!
Bob
|
|
|
Re: Add a new workflow pattern [message #1726115 is a reply to message #1725468] |
Wed, 09 March 2016 17:51   |
Eclipse User |
|
|
|
Hi , thanks you very much for your answers
I defined a group of Custom Task that are identified by a extended attribute "type"
For example this :
<customTask
name="Communication Activity" featureContainer="org.eclipse.bpmn2.modeler.examples.comunicationFeatureContainer"
id="org.eclipse.bpmn2.modeler.examples.Communication Activity"
type="Task">
<property
name="type"
value="Communication Activity">
</property>
</customTask
And for the feature container
public class comunicationFeatureContainer extends CustomShapeFeatureContainer{
public comunicationFeatureContainer() {
}
private final static String TYPE_VALUE = "Communication Activity";
private final static String CUSTOM_TASK_ID = "org.eclipse.bpmn2.modeler.examples.Communication Activity";
@Override
public String getId(EObject object) {
EStructuralFeature f = ModelUtil.getAnyAttribute(object, "type");
if (f!=null) {
Object id = object.eGet(f);
if (TYPE_VALUE.equals(id))
return CUSTOM_TASK_ID;
}
return null;
}}
And for the Tool definition
<tool
name="communication">
<object
type="Task[$type='communication Activity']">
</object>
</tool>
But not working
|
|
|
|
|
Re: Add a new workflow pattern [message #1730517 is a reply to message #1728790] |
Tue, 26 April 2016 13:20   |
Eclipse User |
|
|
|
hi,
I have the same problem. I want to extend a pattern by adding an extended Custom Task ( exactly a participant). here is the code for more details:
<toolPalette
id="org.bpmn2.modeler.toolpalette.my.full"
profile="Full"
runtimeId="org.eclipse.bpmn2.modeler.examples.customtask.runtime1">
<category id="category1" name="category1" >
<tool name="Pattern">
<object type="Participant[$name='part1']" id="part1.id" />
<object type="Participant[$name='part2']" id="part2.id" />
</tool>
</category>
</toolPalette>
i didn't know if there is a solution to resolve this problem.
thanks in advance
|
|
|
|
Powered by
FUDForum. Page generated in 4.41296 seconds