Wednesday, November 3, 2010

Alfresco Task History

Article reference from

Step1 : Download entire code from  taskhistory.zip

Step2: Go to tomcat\webapps\alfresco\WEB-INF replace  faces-config-custom.xml with your downloaded  file.

Step3: Go to tomcat\webapps\alfresco\jsp\content  replace  document-details.jsp with your downloaded  file.

Step4: Go to tomcat\webapps\alfresco\WEB-INF\classes\alfresco\messages add your code into   webclient.properties don't replace the file.

Step5: Go to tomcat\webapps\alfresco\WEB-INF\lib and add custom-jsp.jar

Step6: Restart the server




Tuesday, November 2, 2010

Workflow in Share

Hi

here i  will explain about workflows in share , it will work for enterprise and community editions also with 3.4 version.

Step1: we can start work flow in two ways

a) From actions along right side on an item row in the list of Document Library items

b) By Clicking on the "Start Workflow" action links on document details page


Step2: after click on "start workflow",  you will get start work flow page with drop down on that page like as follows


Step3: For example select Adhoc (Assign task to colleague) from the drop down, then it will displays a form to enter parameters that defines work flow.  


If we need to add new custom work flow  follows these steps ( code from wiki page http://wiki.alfresco.com/wiki/WorkflowSample_Lifecycle)

Step4:  Go to \shared\classes\alfresco\extension folder  rename 

lifecycle_processdefinition.xml.sample to   lifecycle_processdefinition.xml
lifecycle-workflow-context.xml.sample to   lifecycle-workflow-context.xml
lifecycleModel.xml.sample to   lifecycleModel.xml
lifecycle-messages.properties.sample to    lifecycle-messages.properties

if you are not able to find those files copy these code and place those files into   \shared\classes\alfresco\extension folder 


Custom WorkFlow Code

Step5:  type this url in browser http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp

then enter

  deploy alfresco/extension/lifecycle_processdefinition.xml

Click on submit.




Step5: Restart the server then follow above procedure you will get your custom work flow in start workflow drop down list as shown