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

balaji1
Champ in-the-making
Champ in-the-making
Tiese.
Please reply to the above question.

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Yes, that's right.

The link is the same: http://svn.codehaus.org/activiti/projects/designer

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

Can you please provide the sequence of steps/classes called when we place a task on BPMN Editor?

For Example Manual Task. How it exactly works and what all the clases called?
How Eeclipse eMF model works?

Please provide these step asap.

Thanks

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

we do nothing special but just follow the Graphiti instructions. There's docs here http://www.eclipse.org/graphiti/ and in Eclipse Help you have a section for Graphiti which explains you need to create a CreateFeature to create business objects, then invoke a second feature called the AddFeature, to add the graphical representation to the canvas. So for each type of node, other classes are involved and these are all in the gui project.

No, I can't possibly explain in a forum post how EMF works, nor am I an expert. Check the website for more info: http://www.eclipse.org/modeling/emf/. In essence there is a model of the diagram in the workspace. Using a TransactionalEditingDomain you can change the model, which is what we do at certain points when the user performs some action. The contents of the model are automatically marshalled to XML by EMF when you press save and then the resulting XML is stored in the resource to which the diagram is linked.

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

Today I checked out the new version (0.6.0) and did the same step as told by you for customising XML. But I found Following differences.

1. While saving the BPMN diagram it generates BPMN formant along with the my own format,which should be fine.
2.  I tried to add my open menu for exporting but the changes are not reflecting.

    ContextMenuEntry subMenu1Export = new ContextMenuEntry(new SaveAcmeModelFeature(getFeatureProvider()), context);

    subMenu1Export.setText("Export to  My XML"); //$NON-NLS-1$

    subMenu1Export.setSubmenu(false);

    Also, I added a new class SaveAcmeModelFeature in GUI project in features package
  
public String getName() {
    return "Save to MyXML 2.0"; //$NON-NLS-1$
  }
    .
The above message is appearing in menu option. Dont know Where exactly I broke the code.


—————————-

2. By the way for the above question for flow of java class in palette.

We need sequence of steps involved or what all are the java classes called if I place some diagram in the editor.
Say, Manual Task. And How the model project from the source is used?
Please provide this information. It would be much helpful for us.

tiesebarrell
Champ in-the-making
Champ in-the-making
1: Could be, depends on the changes you made
2: What's not reflecting? You say the option is there…

2: The model project is a dep for other projects. For details you should run through the Graphiti tutorial in the SDK, it explains it all.

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

Actually, I could see "save to MyXML 2.0"  from the menu option but I m confused how this text appears on the menu.

public String getName() {
return "Save to MyXML 2.0"; //$NON-NLS-1$
}

Also,
ContextMenuEntry subMenu1Export = new ContextMenuEntry(new SaveAcmeModelFeature(getFeatureProvider()), context);

subMenu1Export.setText("Export to My XML"); //$NON-NLS-1$

subMenu1Export.setSubmenu(false);

After adding the above code "Export to BPMN 2.0" got vanished and "Export to My XML" appears. I want both of them to get displayed.
————

2. I understand that graphiti tutorial helps to create palettes. But What I want is how the sequence of steps/java classes called
when I add some task in the BPMN editor. Suppose, If I add Manual Task , What all are the java classes called to perform this task?

tiesebarrell
Champ in-the-making
Champ in-the-making
It appears because you add your feature to the list of features returned. The name is then resolved by invoking getName() on each feature. Graphiti does this for you.

The only classes involved are the two I mentioned: first the CreateFeature, then the AddFeature you define. If you want to look at the stack, place a breakpoint in the CreateManualTaskFeature and the AddManualTaskFeature so you can see how Graphiti does this.

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

The above Classes say when the Manual task is added in the editor. Suppose if I want to delve deeper into the propery set in the task. WHich class to refer?

THanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Depends on the node at hand. All classes that generate property sections are in the gui project in the org.activiti.designer.property package. The names speak for themselves. For specific filters and such, look in the plugin.xml. It's all standard Eclipse extension stuff.