cancel
Showing results for 
Search instead for 
Did you mean: 

Helper method for checking ServiceTasks implementing class

thilka
Champ in-the-making
Champ in-the-making
Hello,

in ClassDelegate there are helper methods to check if activiti can find and instantiate the class for a service task.

But for really using a class as service task this class must either implement JavaDelegate or ActivityBehaviour.

Could you add a helper method to check if the class implements the correct interface? Otherwise the user can configure some class but does not know if this class is correct until the process is run.
This is more or less a tooling question, but we want to offer the definition of the service class to our customers using our own UI. We could of course check the interfaces of the given class ourselves, but if you change something (e.g. third possible interface), we have to change our implementation as well.

Tobias
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Hi,

The checking of the correct class is deliberately only done at run-time, to allow processes to be deployed using another engine (eg. the way we do it with ANT) than it is executed, possibly not having the correct dependencies on the classpath of the deploying engine.

This is indeed something that can be enforced using tooling.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.