cancel
Showing results for 
Search instead for 
Did you mean: 

Money Task example, ActivitiUiUtil id error

mark1
Champ in-the-making
Champ in-the-making
Hi

I'm new to Activiti and was trying out a couple of examples in the users guide.

I did successfully  create a simple workflow process using the Activiti Designer Eclipse plug-in and deployed it to the Activiti Explorer application.

When I tried to do the Money Task example I had a problem.

My current environment:

Activiti 5.11.1
Eclipse Juno
Activiti Designer Eclipse plug-in 5.11.1
    but in the POM it seems I have to specify 5.9.1


My Money Task compiles, and I can load it into a different Eclipse work space to try to use. The new Money Task shows up in the palette but when I try to add the task to a workflow it get errors. I can't actually add any tasks, because I always get the same error now.



java.lang.NullPointerException
    at org.activiti.designer.util.eclipse.ActivitiUiUtil.getNextId(ActivitiUiUtil.java:209)
    at org.activiti.designer.features.AbstractCreateBPMNFeature.getNextId(AbstractCreateBPMNFeature.java:58)
    at org.activiti.designer.features.AbstractCreateBPMNFeature.addObjectToContainer(AbstractCreateBPMNFeature.java:107)
    at org.activiti.designer.features.AbstractCreateBPMNFeature.addObjectToContainer(AbstractCreateBPMNFeature.java:161)
    at org.activiti.designer.features.CreateServiceTaskFeature.create(CreateServiceTaskFeature.java:45)
    at org.eclipse.graphiti.features.impl.AbstractCreateFeature.execute(AbstractCreateFeature.java:100)
    at org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext.execute(GenericFeatureCommandWithContext.java:64)
    at org.eclipse.graphiti.internal.command.GFPreparableCommand.doExecute(GFPreparableCommand.java:37)
    at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
    at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:102)
    at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
    at org.eclipse.graphiti.internal.command.CommandExec.executeCommand(CommandExec.java:86)
    at org.eclipse.graphiti.ui.internal.command.CreateModelObjectCommand.execute(CreateModelObjectCommand.java:54)
    at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)

etc…

Thanks
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

I think you are using the wrong version of the integration JAR.
The money task example is updated in Github, you can take a look at that:

https://github.com/Activiti/Activiti-Designer/tree/master/examples/money-tasks

Best regards,

younes1
Champ in-the-making
Champ in-the-making
hi thx,
was same error by me, i download the right jar from git and it works.( or just change version of your actual money task in your pom to 5.11.1).
younes

mark1
Champ in-the-making
Champ in-the-making
Hi thx as well,

This worked for me as well. Once I removed my old test project and started over with a new Activiti project the money task is working fine.

Thanks again