I am new at Alfresco development.
I am using alfresco-enterprise-4.2.3.1 and using Kikstart to design a workflow.
Workflow designed and installed successfully in alfresco and I can access that in share.
The issue is when I try to use a People Selection or Group Selection in the forms I get following error when I try to save/start workflow.
Failed to start workflow activiti$esclatedWF:1:1519
I have checked if I remove these type of fields it works ok. Any help will appreciated.
Thanks
Related
I developped an alfresco share module that allows user to create and save a new workflow. The new workflow files (model.xml, workflow.xml) are stored in a specific folder in alfresco repository. All works fine. Now to finalize my module, i want add a button in my share module to allows users to hot deploying the new workflow and run it on alfresco without restarting alfresco.
Is there a possibility to achieve this?
I thought to call a java webscript from my module to hot deploying the workflow. Is this possible?
If you have an example to how achieve this, it'll be very helpful for me.
I resolved my issue.
So to hot deploy workflow into Alfresco, i used Alfresco Java Api services that allowed me to hot deploy the workflow definition. There is a small code t how achieve this.
InputStream input = contentService.getReader(new NodeRef("YOUR_WORKFLOW_DEFINITION_FILE_NODEREF"),ContentModel.TYPE_CONTENT).getContentInputStream();
workflowDeployment = workflowService.deployDefinition("activiti",input,MimetypeMap.MIMETYPE_XML);
Currently i am generating a report (we are getting files are uploaded within a time stamp).
I am getting all files and folders.Iterating the result and checking created date one by one.That is taking too much time approx 8 min to revert with resuls.Can anyone tell me is there any alfresco report api that i can use? or using solr how to fetch the result?
I like to follow an approach which is maybe not really orthodox. Usually, you don't want to report on all documents, only document using a specific type or aspect. So, what I do is to create a Java behaviour on onCreate, onUpdate and onDelete that updates a custom database with only the metadata that I'm interested in. Then, I can connect any OOTB reporting tools such as Pentaho, Jasper or Tableau. You have of couse some other traditional alternatives, such as:
Using this module developed by a community member: http://fcorti.com/alfresco-audit-analysis-reporting/
Or using the module provided by Alfresco: http://docs.alfresco.com/analytics/concepts/analytics-using.html
SOLR/Lucene is not an option, querying DB directly is not an option either (performance wise).
I would suggest using one of the options available (AAAR for instance) or developing something on your own following the same principles.
I did little bit investigation on this and found below link.
http://docs.alfresco.com/4.0/tasks/audit-recording-values.html
I think you can user auditService in alfresco and get your things done.There are few alfresco webservices(related to audit) already available which will allow you to filter response.In case if you need to customize it , than you can create webscript and use auditService in it.
You can use below url for browsing all your alfresco webservice.
http://localhost:8080/alfresco/service/index
I have created a rule programmatically in Java and attached with a space, its working fine whenever a new document is inserted into that space. But what if I already have some documents uploaded in the space and I want to run the Rule. I know i can do this via Explorer as defined in the following article.
http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Flibrary-folder-rules-run.html
But I want to achieve the same using Java code.
Does any one please suggest some solution.
:: I am using Alfresco enterprise 4.0.2
I would recommend you to bind behaviours to policies instead if you are into java:
http://wiki.alfresco.com/wiki/Policy_Component#Binding_Behaviour_to_a_Policy
My personal experience is that you as a developer get much more control over events in the repository using behaviours (opposed to rules). But maybe thats just me :)
I'm fairly new to Flex\AS3
I'm using flash builder 4.5 for php and I'm trying to connect to my DB via remote objects.
I'm following adobes instructions as listed here:
http://help.adobe.com/en_US/flex/accessingdata/WSbde04e3d3e6474c4-668f02f4120d422cf08-7ffe.html#WSbde04e3d3e6474c4-668f02f4120d422cf08-7ffa
I've created the php service, and successfully finished the wizard.
I've tested my service with the Test tool and it is indeed returning my results.
My problem is that it seems that flash builder didn't create the service's files(super+base) at all. For example, when I drag the service into a dropdown component I get an error saying that the service component can't be found.
Does anyone know this issue happens? how can the test tool work if the service classes don't exist?
Thanks in advance,
Ravid
The problem was that I didn't checkout the files before using the wizard so flash builder didn't have write permissions on the files and therefore didn't create the necessary files.
once he had the write permissions - everything worked just fine
I am using AutoMapper to map my business objects to my view model and there is a custom type I wrote that is not mapping correctly resulting in an exception. I am trying to figure out how to setup my system so that I can debug into AutoMapper.DLL. Does anyone know how to do this without downloading the source and building the source first?
If anyone has a link to instructions for doing this or knows how to set this up, I would greatly appreciate it.
AutoMapper has SourceLink enabled and a symbols package on NuGet (the same is true for the MyGet build). So debugging into AM works without building from source. You cannot debug into the mapping code per se, but check the execution plan.