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?
Solved! Go 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>
@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/alfresc...
@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.
@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.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.