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
You need to give it a name and a base type, such as BaseElement; use the properties screen to fill those attributes. Look at any of the other elements, such as CustomProperty.

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

I actually dunno what key/value to pass in place  of null->null. and what does it signify and what will happen
because of the addition?


Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
The name of the property you want to add and use BaseElement as the base type. It will set the name of the attribute and the base class in the hierarchy.

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
I gave the null->null as Test->BaseElement.
THen I generated gen model. Now where can I locate the classes to manually add?

tiesebarrell
Champ in-the-making
Champ in-the-making
From the gen model you should now run generate all. There will be 4 new projects created. Those will have the code you need.

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
I generated the java code.  3 projects were created for Test,editor. Since I do not want those project. I removed.
Another project called model created and it got replaced with existing model project.

Then I copied the ecore file to src/main/resources dir. Then I launched the eclipse application.

But I cant find any change Smiley Sad

tiesebarrell
Champ in-the-making
Champ in-the-making
There's no visible change. You now have API additions so you can set new properties on model objects. The visual representation of those properties you have to code yourself in the PropertySection extensions

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

If you find time can you please explain how the entire process works like changes in ecore
to adding java classes.
Still I dont know what is the purpose to add key/value in place of null->null in
ecore diagram.

It would be much helpful if you explain the process in step by step and its purpose.

Thanks

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

If you find time can you please explain how the entire process works like changes in ecore
to adding java classes.
Still I dont know what is the purpose to add key/value in place of null->null in
ecore diagram.

It would be much helpful if you explain the process in step by step and its purpose.
Actually, I am trying to add one more property to manual task apart from id and name.

Thanks

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

1) Edit model -> adding / changing elements and attributes
2) Regenerate gen model -> you need a gen model to generate code
3) Regenerate code from the gen model -> creates the changed model code so your additions are in there
4) Copy changed classes from generated projects to the activiti model project -> you need to reference the new classes, so they need to be in the model project
5) Use classes in the PropertySection classes in the activiti gui project -> you want extra fields, so now you can use them

The null -> null is Name -> BaseClass. You are modelling a class hierarchy. Each element represents something that ends up in a class or a class member. The second null therefore is to indicate the type (Java type) of the element or attribute you just added. For example, let's say there already was a Bicycle element in the model. Now you want to add a brandname to it. So you add a new attribute and the null->null becomes brandname -> EString