cancel
Showing results for 
Search instead for 
Did you mean: 

Own templates

gant
Champ in-the-making
Champ in-the-making
Hi,

In the latest version of Designer, it's possible to create new process models from templates. Activiti does provide several of them. How can I extend the Designer to have my own templates there? There is nothing about that in the user guide.

Thanks,
michael
16 REPLIES 16

firebird0001
Champ in-the-making
Champ in-the-making
How should I implement it? (I tried to make it the same as AcmeMoneyTask, but i still get the same error)

trademak
Star Contributor
Star Contributor
What do you mean with "how should I implement it"?
From what I understood you have a AcmeMoneyJavaDelegation class implemented. So just export the Java project where you implemented this class as a JAR.

Best regards,

firebird0001
Champ in-the-making
Champ in-the-making
I try to follow the user guide. It is said there, that this class should be mentioned in
@Runtime(delegationClass = "org.acme.runtime.AcmeMoneyJavaDelegation")

But I don't have it implemented as I haven't found anything about what should be written in this class. I also haven't found this class in sources for this example.

trademak
Star Contributor
Star Contributor
The AcmeMoneyJavaDelegation class should be a normal JavaDelegate interface implementation just like any Java service task.
So just implement the JavaDelegate interface for the AcmeMoneyJavaDelegation class and add make sure this class is available in the Activiti Explorer classpath.

Best regards,

tiesebarrell
Champ in-the-making
Champ in-the-making
What Tijs says is correct. I checked and this actually isn't quite well documented in the user guide. We should add a more elaborate description in the user guide.

tiesebarrell
Champ in-the-making
Champ in-the-making

tiesebarrell
Champ in-the-making
Champ in-the-making
I've added documentation which will be included in 5.11 release.

https://github.com/Activiti/Activiti/commit/1655a6d06b1a3e295086ac844f0761b8ba8ef9be