cancel
Showing results for 
Search instead for 
Did you mean: 

How to run the activiti source code?

balaji1
Champ in-the-making
Champ in-the-making
Hi,

1. We have checked out the source code from SVN and installed in SVN.
Can you please tell us how to build this source code?

ALso what will be the outcome of this process?

2. We have proposed to use activiti plugin for our porject. We need to customise the palette shapes and XML tags. Can you please tell us the process to perform.


Please help us to resolve to above issues. We are badly stuck up here.
294 REPLIES 294

tiesebarrell
Champ in-the-making
Champ in-the-making
Yes, you can define multiple extension points in your plugin.xml and you can use multiple extension points from other plugins in your plugin.xml. Just include the correct definitions in plugin.xml

balaji1
Champ in-the-making
Champ in-the-making
HI,

Can you please provide any snippets for  plugin.xml

I created two extension points in GUI project.
Now I want to extend the exportbpmnXML to those extension points.





Thanks

balaji1
Champ in-the-making
Champ in-the-making
HI,

CAn anyone please help for the above query?

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
If you've created you Extension points in your plugin, just extend them in another. Assuming you used an interface (MyInterface) to provide the extension point, your extension will typically look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.6"?>
<plugin>
   <extension
         point="org.acme.extension.MyInterface">
      <MyInterface
            class="org.acme.myplugin.extension.impl.MyInterfaceImpl">
      </MyInterface>
   </extension>
</plugin>

balaji1
Champ in-the-making
Champ in-the-making
HI,

I actually used Extends options. Because I am trying tyo extend class.
Will this holds good for class also?

This plugin.xml belongs to export xml wghere it extends to both the extension points. and I am getting below error.

<plugin>
   <extension
          point="org.activiti.designer.features.SaveBpmnModelFeature">
      <SaveBpmnModelFeature
            class="com.trade.designer.export.workflow.export.tradeWFExportMarshaller">
      </SaveBpmnModelFeature>
   </extension>
</plugin>

error : Element 'SaveBpmnModelFeature' is not legal as a child of element 'extension'.

tiesebarrell
Champ in-the-making
Champ in-the-making
Balaji,

maybe it would be clearer if you tell me what you are trying to accomplish. If you want to simply write an ExportMarshaller, you shouldn't be doing the kinds of things you did above. Plus, the org.activiti.designer.features.SaveBpmnModelFeature class is not an extension point, so this will not work. What's your required functionality?

balaji1
Champ in-the-making
Champ in-the-making
Hi,

Actually I tried the below things.
Hi,
My intention is to create a seperate project called com.trade.designer.export.workflow.export and I have a class called
tradeWFExportMarshaller. I want to use tradeWFExportMarshaller  by implementing the functionality defined in another java classes in GUI project.

For that
1. I have created two extension points on gui project called
a) org.activiti.designer.features.SaveBpmnModelFeature
b) org.activiti.designer.xml.BPMNXMLExport

The schemas are created for the above extension points.

I dont know how use those extension points in  tradeWFExportMarshaller  class.Probably, How to define it in plugin.xml file of
com.trade.designer.export.workflow.export project?

Presently I am facing the above error
error : Element 'SaveBpmnModelFeature' is not legal as a child of element 'extension'.

<plugin>
<extension
point="org.activiti.designer.features.SaveBpmnModelFeature">
<SaveBpmnModelFeature
class="com.trade.designer.export.workflow.export.tradeWFExportMarshaller">
</SaveBpmnModelFeature>
</extension>
</plugin>


Please help.

balaji1
Champ in-the-making
Champ in-the-making
Hello Tiese,


Please help me to the above question.

tiesebarrell
Champ in-the-making
Champ in-the-making
I don't understand why you would create an extension point with those classes. If you want to subclass them, just create a library with the gui project as a dependency and extend the classes. What's lacking in the ExportMarshaller interface which means it isn't enough for your use case? If you need a marshaller, the existing extension point should suffice.

For the SaveBpmnModelFeature element, if you created an extension point, you also decided what elements are allowed, so you should make sure they match up. There are a couple of examples of this principle in the Activiti Designer source code. Look how the ExportMarshaller extension point is defined with its schema in the .eclipse project and compare with the export.bpmn20 implementation of that extension point.

balaji1
Champ in-the-making
Champ in-the-making
HI,

As you said, If we add it as a dependency to extend those classes in gui project. And if I make any changes to my extended classes in new project.How would my code knows it should touch the new ones?

Also we cant extend the BpmnXMLExport class as the function(createBpmnXML) remains private.

Thanks