12-30-2016 12:49 PM
Hello everybody,
I want to create a business rule task in my alfresco workflow (not standalone activiti). The first question: is that possible?
I try to do that but when the workflow arrive to the business rule task this error is shown:
org.activiti.engine.ActivitiException: deployment 23701 doesn't contain any rules.
Thanks.
01-01-2017 01:17 PM
Hi,
IMO this should be possible.
To answer the question, we need some information about your project and his structure to be able to troubleshoot the error.
Yann
01-02-2017 03:58 AM
01-02-2017 04:08 AM
Hi,
In an AMP ? you mean for Alfresco ?
In order to get rid of that ActivitiException, you will need to create a deployment containing the drool rule.
In your zip file the JUnit test do it with the following line :
String deploymentID = repositoryService.createDeployment().name("BusinessRuleLoanProcess.bar")
.addZipInputStream(inputStream).deploy().getId();
But there is nothing that do the same in your non-test code.
Yann
01-02-2017 04:40 AM
Yes, i mean Alfresco.
How to add the drool rule to the process (we have not activiti.cfg.xml in Alfresco).
01-02-2017 05:17 AM
Activiti embeded in Alfresco work the same way as the standalone one.
But I think you should take a look at the version embedded with your Alfresco.
You can grab the version in the jar name located in alfresco/WEB-INF/lib folder.
So you have to generate the bar file using your activiti project (the zip you attach to the case) and put that file in your AMP project.
Then you could deploy it to the engine using the code in my last comment. You will need to call that piece of code at startup.
You could look at the alfresco SDK sample : alfresco-sdk-samples/samples/alfresco-simple-module/repo at master · Alfresco/alfresco-sdk-samples ·...
01-04-2017 03:50 AM
Hi Seif _,
Alfresco got an activiti.cfg.xml equivalent in it's core (community-edition/activiti-context.xml at 2c1eff9953d3105e738f7b06ba9ba8a079ca4c24 · Alfresco/commun... )
I checked the code available on github (GitHub - Alfresco/community-edition: Mirror of Alfresco Community Edition (see https://wiki.alfresco... ) and didn't find anything related to the RulesDeployer.
So I'm not sure that activiti feature is available in Alfresco.
Maybe Francesco Corti got some informations about that.
Yann
01-04-2017 10:44 AM
Hi Yann Coulon, Hi Seif _,
The answer is that there is no business rule component for Alfresco Workflow.
I hope this helps.
01-04-2017 10:47 AM
01-04-2017 10:49 AM
You are welcome.
Feel free to ask. 😉
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.