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
I doubt your marshaller isn't called: you mentioned before that you got a nullpointer on a variable in your class, so it definitely was called before. I assume you mean to say no output gets generated. That's because an error occurred, as the message says. This is caught in line 260 of your marshaller, so put a breakpoint there. From the message, I'm quite certain it's a NPE.

I don't have time to reproduce the problem, but the reason you're getting that error is probably that one of the CustomProperty elements you're retrieving is null. If you do:

ExtensionUtil.getCustomProperty(serviceTask, "ActId").getSimpleValue()

somewhere, you have to know for sure that ExtensionUtil.getCustomProperty(serviceTask, "ActId") doesn't return null, because then you'll get a NPE calling getSimpleValue(). You should debug your marshaller to see which one is missing. We actually provide a utility for this as well. You can check first if the property exists, so your code would become:

if (ExtensionUtil.hasCustomProperty(serviceTask, "ActId")) {
  ExtensionUtil.getCustomProperty(serviceTask, "ActId").getSimpleValue();
}

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
Thanks for your continous support.
I got the output what I am expecting.

But still, I want to remove this part in the XML. Is it possible.

<ManualTask id="servicetask1" name="Manual Task"></ManualTask>
  <sequenceFlow id="flow1" name="" sourceRef="startevent1"
   targetRef="servicetask1"></sequenceFlow>
  <sequenceFlow id="flow2" name="" sourceRef="servicetask1"
   targetRef="endevent1"></sequenceFlow>
  <EntityDefinition></EntityDefinition>

ALso, Is it possible to have drop down list and Checkboxes,radio button for setting properties for the customised node.If yes,
How?

THanks

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

Do you mean you want to disable all default output of nodes in the diagram? Then you should just remove the code in the marshaller's createXML() method that handles these node types.

unfortunately, not yet. There's an issue you can track which aims for those kinds of controls (see subtasks for what's planned):
http://jira.codehaus.org/browse/ACT-511

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

Jus out of curiosity, What will be the expected date of completion of the below enhancement.
http://jira.codehaus.org/browse/ACT-511

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
It's planned for 5.2, which should be around February.

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

If I want to add one more custom and should have different properties.
Is same process to be followed like money-tasks?

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Yup,

copy the first class to a new one and make sure to change the name of the node. Then adjust the properties and re-install the jar and reload it into Designer

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

I am facing weird compilation problem.

I did the following change in property type class by adding a entry in enum called "DROP_DOWN".

Then I already created money-task project and added designer.integration project buildpath-> projects.

Now in the acme java class , the following code is added
@Property(type = PropertyType.DROP_DOWN, displayName = "IsActiveFlag", required = true)
 

I did maven build to activiti project and then to money-task project.

I am facing below error

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project money-tasks: Compilation failure
[ERROR] /etrade/home/rravindr/Bkup_Actnew_0.6/money-tasks/src/main/java/com/etrade/designer/custom/palette/AcmeMoneyTask.java:[30,31] cannot find symbol
[ERROR] symbol  : variable DROP_DOWN
[ERROR] location: class org.activiti.designer.integration.servicetask.PropertyType

Thanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Eclipse is looking at the JAR file for the integration lib, not at your local project where you created that addition. If I were you, though, I'd hold on for two more weeks because I'll be adding a drop down element in the default options in the next two weeks.

balaji1
Champ in-the-making
Champ in-the-making
Tiese,
What is the solution then?
Because only When I build using maven in acme project I get the above error.

Also, We also giving a try to that Smiley Happy
THanks
Balaji V