07-19-2021 03:11 PM
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?
07-20-2021 11:48 AM
@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>
07-20-2021 11:48 AM
@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>
07-21-2021 05:41 AM
@abhinavmishra14: where can I find this kind of information in case in the future I'll have it?
07-21-2021 12:00 PM
@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/alfresc...
07-22-2021 03:03 AM
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.
07-22-2021 11:57 AM
@cristinamr wrote:
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.
Glad to hear that @cristinamr , you were asking though so i posted the info.
07-21-2021 06:59 AM
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?
07-21-2021 12:10 PM
@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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.