Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Oriented Architecture Tools Platform (STP) » Creation tool for combined figures
Creation tool for combined figures [message #594062] Thu, 04 October 2007 12:38 Go to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi,

I would like to do something similar as in the BPMN editor but I can't get
it.

I have two figures. Figure "Step" and figure "Activity". The figure "Step"
is a compartment for the figure "Activity".

In the ecore model the relation between "Step" and "Activity" is that
"StepImplementation" is an aggregation of "Step" and "StepImplementation"
is the generalisation of "Activity".

<eClassifiers xsi:type="ecore:EClass" name="Step">
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="autoAbortBehaviour" eType="#//AutoAbortBehaviour"/>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="autoCancelBehaviour" eType="#//AutoCancelBehaviour"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EString"
iD="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isCompensation"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
eType="#//StepType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter"
upperBound="-1"
eType="#//StaticParameter" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="implementation"
upperBound="-1"
eType="#//StepImplementation" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StepImplementation">
<eStructuralFeatures xsi:type="ecore:EReference" name="cardinality"
eType="#//StepCardinality"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Activity"
eSuperTypes="#//StepImplementation">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="function"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="version"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Flow"
eSuperTypes="#//StepImplementation">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="version"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>

In my GMF palette I have a Step, Activity and Flow creation tool. If I
create a Step I can put an Activity or a Flow implementation in the Step
compartment.

What I know want is a creation tool say StepActivity which creates
direcety a Step with the Activity implementation in the compartment. So I
have to define a CreateCommand which creates a Step and puts automatically
an Activity inside before desplaying...

How can I achieve this?

The difference to the BPMN editor is that it is not an Enumeration put an
aggregation.

Would be great if anyone could help me!

Thanks a lot

Marsha
Re: Creation tool for combined figures [message #599909 is a reply to message #594062] Fri, 05 October 2007 16:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Hi Marsha,

I'm not sure we can help you well. You should address the GMF newsgroup
for such questions. I am adding it in CC so that others can help.

I'll take a crack at it anyway:

you should create a Tool (implementing CreationTool I think) and
override the getCommnand method to make it do whatever you want it to do.

Then add it in the palette using the PaletteFactory implementation that
was created for your diagram.

Hope this helps.

Antoine

Marsha wrote:
> Hi,
>
> I would like to do something similar as in the BPMN editor but I can't
> get it.
>
> I have two figures. Figure "Step" and figure "Activity". The figure
> "Step" is a compartment for the figure "Activity".
>
> In the ecore model the relation between "Step" and "Activity" is that
> "StepImplementation" is an aggregation of "Step" and
> "StepImplementation" is the generalisation of "Activity".
>
> <eClassifiers xsi:type="ecore:EClass" name="Step">
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="autoAbortBehaviour" eType="#//AutoAbortBehaviour"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="autoCancelBehaviour" eType="#//AutoCancelBehaviour"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EString"
> iD="true"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="isCompensation" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
> eType="#//StepType"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="parameter"
> upperBound="-1"
> eType="#//StaticParameter" containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="implementation" upperBound="-1"
> eType="#//StepImplementation" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StepImplementation">
> <eStructuralFeatures xsi:type="ecore:EReference" name="cardinality"
> eType="#//StepCardinality"
> containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Activity"
> eSuperTypes="#//StepImplementation">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="function"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="version"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Flow"
> eSuperTypes="#//StepImplementation">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="version"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> </eClassifiers>
>
> In my GMF palette I have a Step, Activity and Flow creation tool. If I
> create a Step I can put an Activity or a Flow implementation in the Step
> compartment.
>
> What I know want is a creation tool say StepActivity which creates
> direcety a Step with the Activity implementation in the compartment. So
> I have to define a CreateCommand which creates a Step and puts
> automatically an Activity inside before desplaying...
>
> How can I achieve this?
>
> The difference to the BPMN editor is that it is not an Enumeration put
> an aggregation.
>
> Would be great if anyone could help me!
>
> Thanks a lot
>
> Marsha
>


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Creation tool for combined figures [message #599915 is a reply to message #599909] Fri, 05 October 2007 17:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Sorry it is eclipse.modeling.gmf, not eclipse.gmf

Antoine Toulme wrote:
> Hi Marsha,
>
> I'm not sure we can help you well. You should address the GMF newsgroup
> for such questions. I am adding it in CC so that others can help.
>
> I'll take a crack at it anyway:
>
> you should create a Tool (implementing CreationTool I think) and
> override the getCommnand method to make it do whatever you want it to do.
>
> Then add it in the palette using the PaletteFactory implementation that
> was created for your diagram.
>
> Hope this helps.
>
> Antoine
>
> Marsha wrote:
>> Hi,
>>
>> I would like to do something similar as in the BPMN editor but I can't
>> get it.
>>
>> I have two figures. Figure "Step" and figure "Activity". The figure
>> "Step" is a compartment for the figure "Activity".
>>
>> In the ecore model the relation between "Step" and "Activity" is that
>> "StepImplementation" is an aggregation of "Step" and
>> "StepImplementation" is the generalisation of "Activity".
>>
>> <eClassifiers xsi:type="ecore:EClass" name="Step">
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="autoAbortBehaviour" eType="#//AutoAbortBehaviour"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="autoCancelBehaviour" eType="#//AutoCancelBehaviour"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"
>> iD="true"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="isCompensation" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>> eType="#//StepType"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="parameter"
>> upperBound="-1"
>> eType="#//StaticParameter" containment="true"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="implementation" upperBound="-1"
>> eType="#//StepImplementation" containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StepImplementation">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="cardinality"
>> eType="#//StepCardinality"
>> containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="Activity"
>> eSuperTypes="#//StepImplementation">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="function"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="version"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="Flow"
>> eSuperTypes="#//StepImplementation">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="version"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> </eClassifiers>
>>
>> In my GMF palette I have a Step, Activity and Flow creation tool. If I
>> create a Step I can put an Activity or a Flow implementation in the
>> Step compartment.
>>
>> What I know want is a creation tool say StepActivity which creates
>> direcety a Step with the Activity implementation in the compartment.
>> So I have to define a CreateCommand which creates a Step and puts
>> automatically an Activity inside before desplaying...
>>
>> How can I achieve this?
>>
>> The difference to the BPMN editor is that it is not an Enumeration put
>> an aggregation.
>>
>> Would be great if anyone could help me!
>>
>> Thanks a lot
>>
>> Marsha
>>
>
>


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Creation tool for combined figures [message #599952 is a reply to message #599915] Tue, 09 October 2007 15:50 Go to previous message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi Antoine,

Thanks for your reply. I already posted the question in the GMF newsgroup,
unfortunately without sucess.

I'm taking the BPMN editor as example, so that is the reason why I thought
that someone may help me.

I'll try your proposition.

Greets,

Marsha
Previous Topic:New to SOA
Next Topic:Looking to do a BPMN > SVG XSLT
Goto Forum:
  


Current Time: Fri Mar 29 06:04:47 GMT 2024

Powered by FUDForum. Page generated in 0.06746 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top