Hi, I would use the RuleService through java API. Once it was taken from the Service Registry through the method: serviceRegistry.getRuleService() but I see now it is deprecated. What is the current solution to use it?
@lucastancapiano The service itself is not deprecated, but access to it via the ServiceRegistry will be removed in the future.
You can use the bean proxy in your bean configuration. e.g.:
<bean id="my.demo" class="xyz" ..> <property name="ruleService"> <ref bean="RuleService"/> </property> ..... .... </bean>
@abhinavmishra14: where can I find this kind of information in case in the future I'll have it?
But there is a problem using Activiti. Activiti can use only ServiceRegistry inside its custom beans. How I can import RuleService in a alfresco process service without ServiceRegistry?
@cristinamr wrote:@abhinavmishra14: where can I find this kind of information in case in the future I'll have it?
Well there is no specific docs which can tell what's being deprecated. But this doc would have list of services which are available via ServiceRegistry : https://docs.alfresco.com/content-services/latest/develop/reference/java-foundation-ref
The source code is available so you could read the javadocs, in case need more details on services available or deprecated: https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/java/org/alfresco/service/ServiceRegistry.java
@lucastancapiano wrote:But there is a problem using Activiti. Activiti can use only ServiceRegistry inside its custom beans. How I can import RuleService in a alfresco process service without ServiceRegistry?
@lucastancapiano I am not aware of the context of your function/code, but seems you are using APS, try contacting support for more details on what's supported.
Well there is no specific docs which can tell what's being deprecated. But this doc would have list of services which are available..
I've already knew that informtation but thanks anyway!!
@lucastancapianomaybe you should put a post in the Alfresco Process Services & Activiti - Forum.
Cheers.