getRuleService deprecated?

cancel
Showing results for 
Search instead for 
Did you mean: 
lucastancapiano
Partner

getRuleService deprecated?

Jump to solution

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 Solution

Accepted Solutions
abhinavmishra14
Advanced

Re: getRuleService deprecated?

Jump to solution

@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 solution in original post

7 Replies
abhinavmishra14
Advanced

Re: getRuleService deprecated?

Jump to solution

@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)
cristinamr
Advanced

Re: getRuleService deprecated?

Jump to solution

@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
lucastancapiano
Partner

Re: getRuleService deprecated?

Jump to solution

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?

abhinavmishra14
Advanced

Re: getRuleService deprecated?

Jump to solution

@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)
abhinavmishra14
Advanced

Re: getRuleService deprecated?

Jump to solution

@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)
cristinamr
Advanced

Re: getRuleService deprecated?

Jump to solution

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
abhinavmishra14
Advanced

Re: getRuleService deprecated?

Jump to solution

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