cancel
Showing results for 
Search instead for 
Did you mean: 

getRuleService deprecated?

lucastancapiano
Confirmed Champ
Confirmed Champ

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?

1 ACCEPTED ANSWER

abhinavmishra14
World-Class Innovator
World-Class Innovator

@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>
~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

7 REPLIES 7

abhinavmishra14
World-Class Innovator
World-Class Innovator

@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>
~Abhinav
(ACSCE, AWS SAA, Azure Admin)

@abhinavmishra14: where can I find this kind of information in case in the future I'll have it?

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc


@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...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)


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!! Smiley Very Happy

@lucastancapianomaybe you should put a post in the Alfresco Process Services & Activiti - Forum.

Cheers.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc


@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!! Smiley Very Happy

@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.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

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 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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)