AnsweredAssumed Answered

Accessing my own Groovy API from ScriptTask

Question asked by sorinello on Apr 23, 2013
Latest reply on Apr 24, 2013 by frederikheremans1

I am creating an integration between a product and Activiti. Everything works fine so now, I am using my own IdentityService implementation, etc.

My product supports natively Groovy, as Activiti does. My product also exposes and API which can be used from Groovy.
My goal is to make my product Groovy API accessible from ScriptTask services.
I am not sure about how this can be achieved, I have searched the forums and also bought Tijs' book Activiti in Action, but it seems I am unable to find useful information.
I don't think it's a good idea to insert my API as a variable when starting a process instance, since some things from the API may change at runtime (context, etc)

As a typical use case I have: When my process reaches the ScriptTask, I would like to use my API to do some external things, like create a page automatically, etc.

ANY advice is more than appreciated.
Best regards,
Sorin B.