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
Well, what's null? The most obvious one would be that you have a null checkBox member or the field is null.

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
So the code is rite?

What changes do I need to make not null.

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
I have no idea whether it's correct, but there's nothing I can spot straight away. You'll have to figure out what's null first.

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
I would like to have two controls for a single property.
1. Combo Box
2. Checkbox
I just added one more control to the existing code. Is it the correct way to perform?
The output is not appearing properly. All the controls getting merged.

   
    checkBox = factory.createButton(result,"Test", SWT.CHECK);
    checkBox.setEnabled(true);
    checkBox.setText("Test");
  
  
    comboControl = factory.createCCombo(result,SWT.BORDER_SOLID);
    comboControl.setEnabled(true);


Is it possible to perform? Please tell how?

tiesebarrell
Champ in-the-making
Champ in-the-making
Yes,

that's the way to go. You render your own SWT code to actually add components for each property. For example, with the PERIOD type and the DATA_GRID type, I also render a whole bunch of controls for each property. What you probably didn't do properly is the Layout and LayoutData usage. You need to layout your components relative to each other. Off the top of my head, you would need to do something like this for the second control:

//create second control

FormData data = new FormData()
data.left = new FormAttachment(firstComponent, 10);
control.setLayoutData(data);

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

I followed the below code. But not able to see the Checkbox control.

FormData data;
   
   
    checkBox = factory.createButton(result,"Test", SWT.CHECK);
    checkBox.setEnabled(true);
    checkBox.setText("Test");
  
    FormData data1 = new FormData();
    data1.left = new FormAttachment(checkBox, 10);
    checkBox.setLayoutData(data1);

………


    data = new FormData();
    data.left = new FormAttachment(checkBox,40);
  /*  data.top = new FormAttachment(0);
    data.right = new FormAttachment(100); */
    comboControl.setLayoutData(data);


THanks

tiesebarrell
Champ in-the-making
Champ in-the-making
You're attaching it to itself. That's why I provided the example where the control is set to the *firstControl*. Try reading this article: http://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
Thanks for the article.

I got the checkbox along with the combo. But I need to have this controls to get replicated for 10 times.
For each time Checkbox names should appear same and combo list remains same.

DO I need to add any loop to checkbox?

THanks

tiesebarrell
Champ in-the-making
Champ in-the-making
create a loop (for (int i = 0; i < 10; i++)).
create a parent control for each group of one combo and checkbox with the factory by invoking factory.createFlatFormComposite()
then make sure for each loop you add the checkbox and combo to the *parent*, not the property screen.
for each parent you create, create a new FormData and set data.top = new FormAttachment(previousParent, 10);

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
Below is my code.

final Composite result1 = factory.createFlatFormComposite(parent);
     for(int i=1;i<10;i++)
   {
   
     Composite result = factory.createFlatFormComposite(result1);
       FormData data;
 
    checkBox = factory.createButton(result,"Test", SWT.CHECK);
    checkBox.setEnabled(true);
    checkBox.setText("Open");
   
    checkBox = factory.createButton(result,"Test", SWT.CHECK);
    checkBox.setEnabled(true);
    checkBox.setText("UnAssigned");
…….
….
comboControl = factory.createCCombo(result,SWT.BORDER_SOLID);
comboControl.setEnabled(true);
data = new FormData();
data.top = new FormAttachment(result,10);
    comboControl.setLayoutData(data);
}
IS the above code holds good for my requirement? But still I am not getting my required output.
Can you please tell what needs to be given for "previous parent"?

Thanks