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
Disable the BPMN marshaller in the Eclipse preferences. Enable your own marshaller. Place a breakpoint and press save in the diagram. You should end up in your breakpoint.

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

Can you please tell us the way to perform the above change Smiley Sad

Till the enabling of my own marshaller?

tiesebarrell
Champ in-the-making
Champ in-the-making
You should open the Eclipse preferences, go to the Activiti > Save page and uncheck the BPMN marshaller. Then check the checkbox for your own marshaller at the bottom of the preference page. If your marshaller is not there, you haven't created the extension correctly.

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

I made the following change in the acmeMarshaller export class

1. saveResource(getRelativeURIForDiagram(diagram, "abc.xml"), bais, this.monitor);

2. I have checked "Automatically save to Acme Format 1.15" in windows-> preference in eclipse
and unchecked "Automatically save to Activiti Designer Image".

3. Have set the breakpoint in the following function
  private void marshallBPMNDiagram()

But we still find the control has not yet transferred to Acme marshaller class. Please help us

Thanks

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

you should uncheck the BPMN marshaller, not the image marshaller, but never mind. If you're running against 0.5.0 of Designer, you might not have that option, I believe I only added it in 0.6.0 (currently in SVN). In either case, you'll want to place a breakpoint in the *public* method that gets invoked in the marshaller, not the private one. I noticed in your code that you have your toggle the wrong way around:

if (!validDiagram) {

addProblemToDiagram(diagram, "Could not find the Acme element we require", null);

} else {
//perform marshalling
performMarshalling = false;
}

You should set performMarshalling to true if you want to marshall  Smiley Wink  Notice the condition is !validDiagram, so a negation. Which means in the else clause, you should proceed with marshalling.

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

I changed that flag variable to true.
But still my objective is not achieved Smiley Sad.

I am trying to create a xml called abc.xml with my own tag names. Smiley SadSmiley SadSmiley Sad

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Do you reach the marshaller's marshallDiagram method?

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

No, The control is not coming to Acme marshall class itself.

THanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Are you right clicking or pressing save?

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

I did both seperatelySmiley Happy

But no change.

ALso,
What makes the difference between these two statements?
Both are in the acme marshall class.

1. private static final String FILENAME_PATTERN = ExportMarshaller.PLACEHOLDER_ORIGINAL_FILENAME + ".bpmn20_new.xml";

2. saveResource(getRelativeURIForDiagram(diagram, "abc.xml"), bais, this.monitor);

Thanks