cancel
Showing results for 
Search instead for 
Did you mean: 

New ---- Marshaller

dev1
Champ in-the-making
Champ in-the-making
hi,
i created my own marshaller, which need to be called before the default export marshaller "BPMN20ExportMarshaller.java"…..

How to set the order in which marshaller's are invoked  :?:  :?:

Regards,
DEV
5 REPLIES 5

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

at the moment you can't set the order the marshallers are invoked in. The only solution you could employ is to invoke the default marshaller from your own and disable the default marshaller in the preferences.

dev1
Champ in-the-making
Champ in-the-making
hi,

Once i created the marshaller and tested it I built my marshaller to generate .jar.After adding this jar file to eclipse plugin directory and restarting the eclipse, when i save my activiti diagram, The marshaller created by me doesn't get invoked…

tiesebarrell
Champ in-the-making
Champ in-the-making
Is the marshaller in the list in Eclipse's Window > Preferences > Activiti > Save and is it checked?

dev1
Champ in-the-making
Champ in-the-making
Hi,

Its been long time since i am trying to find workaround for this problem but every time i am unsuccessful  Smiley Sad .

I have created the export marshaller with following data in its plugin.xml ,

<plugin>
   <extension         point="org.activiti.designer.eclipse.extension.export.ExportMarshaller">
      <ExportMarshaller
            class="dev.export.ExportMarshaller1"
      </ExportMarshaller>
   </extension>
</plugin>


To my understanding the source code is written in such a way, that when we save a image automatically all the plugins with extension points as  "org.activiti.designer.eclipse.extension.export.ExportMarshaller" are invoked
..is my understading of the code rite ? Or still some where in the code i have to specify the name of my new marshaller ….

note:-all the above data is according to 0.6.0 version

Regards,
DEV

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

yes, the code is setup that way. However, the marshaller MUST be checked in the preferences so it's active. You can check which marshallers are active by debugging the code that collects the marshallers and then invokes them one by one. If I recall correctly, there's a method somewhere in the ExtensionPointUtil class called getActiveExportMarshallers(). If your marshaller isn't returned from that method, it's either inactive by the preference or it hasn't been setup correctly.